File: rules

package info (click to toggle)
mlterm 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,356 kB
  • ctags: 10,052
  • sloc: ansic: 136,170; sh: 9,666; java: 2,296; makefile: 1,889; perl: 1,603; cpp: 1,102; xml: 42; sed: 16
file content (94 lines) | stat: -rwxr-xr-x 2,922 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
#
# Modified to make a template file for a multi-binary package with separated
# build-arch and build-indep targets  by Bill Allombert 2001

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS


MLTERM_COMMON=$(CURDIR)/debian/mlterm-common
MLTERM=$(CURDIR)/debian/mlterm
MLTERM_TINY=$(CURDIR)/debian/mlterm-tiny
MLTERM_TOOLS=$(CURDIR)/debian/mlterm-tools
MLTERM_IM_UIM=$(CURDIR)/debian/mlterm-im-uim
MLTERM_IM_M17NLIB=$(CURDIR)/debian/mlterm-im-m17nlib
MLTERM_IM_SCIM=$(CURDIR)/debian/mlterm-im-scim
MLTERM_IM_IBUS=$(CURDIR)/debian/mlterm-im-ibus
MLTERM_IM_FCITX=$(CURDIR)/debian/mlterm-im-fcitx

OPTS_COMMON=--x-includes=/usr/X11R6/include \
            --x-libraries=/usr/X11R6/lib \
            --disable-rpath \
            --enable-ssh2 \
            --enable-fribidi \
            --enable-vt52 \
            --enable-ind
          # --enable-utmp \

OPTS_TINY=$(OPTS_COMMON) \
          --with-type-engines=xcore \
          --with-tools=no \
          --with-scrollbars=sample

OPTS_MAIN=$(OPTS_COMMON) \
          --with-imagelib=gdk-pixbuf --with-type-engines=xcore,xft,cairo \
          --enable-optimize-redrawing \
          --with-tools=mlclient,mlconfig,mlterm-menu,mlcc,mlterm-zoom \
          --with-scrollbars=sample,extra,pixmap_engine \
          --enable-uim \
          --enable-m17nlib \
          --enable-scim \
          --enable-fcitx \
          --enable-ibus \
          --enable-wnn \
          --enable-canna

%:
	dh $@ --with autotools_dev

override_dh_auto_clean:
	dh_auto_clean
	rm -rf main-tiny

override_dh_auto_configure:
	# Make mlterm-common, mlterm, mlterm-tools, mlterm-im-*
	dh_auto_configure -- $(OPTS_MAIN) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS) -Wl,--as-needed"

override_dh_auto_build:
	dh_auto_build

	# Make mlterm-tiny
	dh_auto_configure -- $(OPTS_TINY) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS) -Wl,--as-needed"
	cp -a main main-tiny
	rm -f xwindow/*.o main-tiny/*.o
	$(MAKE) -C xwindow
	$(MAKE) -C main-tiny VPATH=$(CURDIR)/main-tiny

	# configure again for installation (later)
	dh_auto_configure -- $(OPTS_MAIN) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS) -Wl,--as-needed"

override_dh_install:
	# mlterm-common:
	dh_install -pmlterm-common -Xuim -Xm17 -Xscim -Xibus -Xfcitx -Xwnn -Xcanna -Xman1
	rm $(MLTERM_COMMON)/usr/lib/*/libkik.so
	rm $(MLTERM_COMMON)/usr/lib/*/libmkf.so
	for i in main font aafont key termcap xim color menu ; \
	  do install -m 644 debian/config-$$i \
	  $(MLTERM_COMMON)/etc/mlterm/$$i ; done
	# the rest:
	dh_install -Nmlterm-common

override_dh_auto_test:

override_dh_makeshlibs:
	dh_makeshlibs -Xusr/lib/$(DEB_HOST_MULTIARCH)/mlterm -Xusr/lib/$(DEB_HOST_MULTIARCH)/mkf

override_dh_installdocs:
	dh_installdocs --link-doc=mlterm-common