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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
|
#!/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
include /usr/share/dpatch/dpatch.make
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
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_IIIMF=$(CURDIR)/debian/mlterm-im-iiimf
MLTERM_IM_M17NLIB=$(CURDIR)/debian/mlterm-im-m17nlib
MLTERM_IM_SCIM=$(CURDIR)/debian/mlterm-im-scim
build: build-arch
build-arch: build-arch-stamp
build-arch-stamp: patch-stamp
dh_testdir
# Make mlterm-common, mlterm, mlterm-tools
CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
--x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib \
--disable-rpath \
--libexecdir=/usr/lib/mlterm \
--sysconfdir=/etc --mandir=/usr/share/man \
--with-imagelib=gdk-pixbuf2 --with-type-engines=xcore,xft \
--enable-fribidi \
--enable-uim \
--enable-m17nlib \
--enable-scim \
--with-tools=mlclient,mlconfig,mlterm-menu,mlcc,mlterm-zoom \
--with-scrollbars=sample,extra,pixmap_engine
# --enable-utmp \
# --enable-iiimf \
(cd contrib/tool/mlcc ; ./configure --prefix=/usr --disable-rpath)
$(MAKE)
# Make mlterm-tiny
CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
--x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib \
--disable-rpath \
--libexecdir=/usr/lib/mlterm \
--sysconfdir=/etc --mandir=/usr/share/man \
--with-type-engines=xcore \
--enable-fribidi \
--with-scrollbars=sample
# --enable-utmp \
cp -a xwindow xwindow-tiny
rm -f xwindow-tiny/*.o
$(MAKE) -C xwindow-tiny PROG=mlterm-tiny
# configure again for installation (later)
CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
--x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib \
--disable-rpath \
--libexecdir=/usr/lib/mlterm \
--sysconfdir=/etc --mandir=/usr/share/man \
--with-imagelib=gdk-pixbuf2 --with-type-engines=xcore,xft \
--enable-fribidi \
--with-tools=mlclient,mlconfig,mlterm-menu,mlcc,mlterm-zoom \
--with-scrollbars=sample,extra,pixmap_engine
# --enable-utmp \
(cd contrib/tool/mlcc ; ./configure --prefix=/usr --disable-rpath)
touch build-stamp
clean: clean-patched unpatch
clean-patched:
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp build-stamp
-$(MAKE) distclean
-$(MAKE) -C contrib/tool/mlterm-zoom distclean
-$(MAKE) -C contrib/scrollbar/pixmap_engine distclean
-$(MAKE) -C contrib/scrollbar/extra distclean
-$(MAKE) -C inputmethod/uim distclean
#-$(MAKE) -C inputmethod/iiimf distclean
-$(MAKE) -C inputmethod/m17nlib distclean
-$(MAKE) -C inputmethod/scim distclean
rm -rf xwindow-tiny
rm -f mkf/kiklib
rm -f config.log config.cache config.status mkf/config.log \
mkf/config.status kiklib/config.log kiklib/config.status \
contrib/scrollbar/extra/Makefile etc/Makefile kiklib/src/Makefile \
kiklib/src/kik_config.h kiklib/libtool kiklib/Makefile \
man/Makefile mkf/lib/Makefile mkf/libtool mkf/Makefile \
mlterm/Makefile scrollbar/sample/Makefile tool/mlclient/Makefile \
tool/mlconfig/Makefile xwindow/Makefile common/c_config.h \
Makefile libtool xwindow/mlterm-tiny xwindow/x_imagelib_gdk.o
rm -f kiklib/config.log kiklib/config.status
rm -f contrib/scrollbar/extra/Makefile etc/Makefile kiklib/src/Makefile
rm -f tool/mlconfig/po/*.gmo
rm -f xwindow/version.h
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k -s
dh_installdirs -s
# mlterm-common
$(MAKE) install DESTDIR=$(MLTERM_COMMON)
TERMINFO=$(MLTERM_COMMON)/usr/share/terminfo tic doc/term/mlterm.ti
for i in main font aafont key termcap xim color menu ; \
do install -m 644 debian/config-$$i \
$(MLTERM_COMMON)/etc/mlterm/$$i ; done
for i in mlterm_16x16.xpm mlterm_32x32.xpm mlterm_48x48.xpm ; \
do install -m 644 doc/icon/$$i \
$(MLTERM_COMMON)/usr/share/pixmaps/$$i ; done
for i in 24colors-1 24colors-2 fvwm gnome gnome2 kde twm wmaker ; \
do install -m 644 contrib/icon/mlterm-icon-$$i.png \
$(MLTERM_COMMON)/usr/share/pixmaps/mlterm-icon-$$i.png ; done
install -m 644 debian/mlterm-icon-24colors-1.xpm \
$(MLTERM_COMMON)/usr/share/pixmaps
install -m 644 debian/mlterm.desktop \
$(MLTERM_COMMON)/usr/share/applications
#for i in Bluecurve BrushedMetal Crux LihthouseBlue ShinyMetal \
# Smokey-Blue ; \
# do install -d $(MLTERM_COMMON)/usr/share/mlterm/scrollbars/$$i ; \
# install -m 644 contrib/scrollbar/$$i/[^C]* \
# $(MLTERM_COMMON)/usr/share/mlterm/scrollbars/$$i ; done
rm $(MLTERM_COMMON)/usr/lib/*.so
rm $(MLTERM_COMMON)/usr/lib/*.a
rm $(MLTERM_COMMON)/usr/lib/*.la
rm $(MLTERM_COMMON)/usr/lib/mlterm/*.a
rm $(MLTERM_COMMON)/usr/lib/mlterm/*.la
# mlterm-tools
mv $(MLTERM_COMMON)/usr/bin/mlcc $(MLTERM_TOOLS)/usr/bin/
mv $(MLTERM_COMMON)/usr/bin/mlclient $(MLTERM_TOOLS)/usr/bin/
mv $(MLTERM_COMMON)/usr/share/man/man1/mlclient.1 \
$(MLTERM_TOOLS)/usr/share/man/man1/
mv $(MLTERM_COMMON)/usr/lib/mlterm/mlterm-zoom \
$(MLTERM_TOOLS)/usr/lib/mlterm/
mv $(MLTERM_COMMON)/usr/lib/mlterm/mlterm-menu \
$(MLTERM_TOOLS)/usr/lib/mlterm/
mv $(MLTERM_COMMON)/usr/lib/mlterm/mlconfig \
$(MLTERM_TOOLS)/usr/lib/mlterm/
# mlterm
mv $(MLTERM_COMMON)/usr/bin/mlterm $(MLTERM)/usr/bin/
#$(MAKE) -C inputmethod/uim install DESTDIR=$(MLTERM)
/usr/bin/install -c inputmethod/uim/.libs/libim-uim.so $(MLTERM_IM_UIM)/usr/lib/mlterm/libim-uim.so
#/usr/bin/install -c inputmethod/iiimf/.libs/libim-iiimf.so $(MLTERM_IM_IIIMF)/usr/lib/mlterm/libim-iiimf.so
/usr/bin/install -c inputmethod/m17nlib/.libs/libim-m17nlib.so $(MLTERM_IM_M17NLIB)/usr/lib/mlterm/libim-m17nlib.so
/usr/bin/install -c inputmethod/scim/.libs/libim-scim.so $(MLTERM_IM_SCIM)/usr/lib/mlterm/libim-scim.so
cp $(MLTERM_COMMON)/usr/share/man/man1/mlterm.1 \
$(MLTERM)/usr/share/man/man1/
# mlterm-tiny
$(MAKE) -C xwindow-tiny install DESTDIR=$(MLTERM_TINY) PROG=mlterm-tiny
mv $(MLTERM_TINY)/usr/bin/mlterm-tiny $(MLTERM_TINY)/usr/bin/mlterm
mv $(MLTERM_COMMON)/usr/share/man/man1/mlterm.1 \
$(MLTERM_TINY)/usr/share/man/man1/
rm -r $(MLTERM_COMMON)/usr/bin $(MLTERM_COMMON)/usr/share/man
dh_install -s
# Must not depend on anything. This is to be called by
# binary-arch/binary-indep
# in another 'make' thread.
binary-common:
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms # -Xusr/bin/mlterm
# dh_perl
# dh_python
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture dependant packages using the common target.
binary-arch: build-arch install
$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
binary: binary-arch
.PHONY: build clean binary-arch binary install patch unpatch clean-patched
|