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
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independent
# package.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# libace still doesn work on Alpha ...
# I have invested too much time already figuring out
# if it is a problem of libace or of ivtools,
# so for alpha we just don't have ace, who uses it
# anyhow ?
ARCH = $(dpkg --print-architecture)
ifeq "$(ARCH)" "alpha"
ACE =
else
# ACE = --with-ace=/usr/include --with-ace-libs=/usr/lib
endif
DOCS = VERSION CHANGES CHANGES-0.4 CHANGES-0.5 CHANGES-0.6 CHANGES-0.7 CHANGES-0.8 README COPYRIGHT
build: build-stamp
build-stamp:
dh_testdir
cp -p /usr/share/misc/config.* src/scripts/
./configure \
--x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib \
--prefix=`pwd`/debian/tmp/usr/X11R6 \
$(ACE)
# Compile the packages
make Makefile ARCH=LINUX
make Makefiles ARCH=LINUX
make ARCH=LINUX
# BUILD FINISHED
# -----------------------------------------------------------
# reconfigure for the devel package
# build process should be finished now
# we have to reconfigure in order to get a correct
# build environment
# -----------------------------------------------------------
./configure --x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib --prefix=/usr/X11R6
cd src/scripts && make ARCH=LINUX clean && make ARCH=LINUX CONFIGDIRSPEC='-T template -I/usr/X11R6/lib/ivtools/config -DCURDIR=\`pwd\`'\
MAKEMAKESPEC='ARCH=LINUX'
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
# Add here commands to clean up after the build process.
#-$(MAKE) clean
#-$(MAKE) distclean
rm -f src/scripts/config.*
-rm -r `find . -name LINUX`
-rm `find src -name Makefile`
-rm config/InterViews/Makefile config/Makefile config.status
-rm *.log
-rm config.cache
-rm -rf static shared
-make ARCH=LINUX clean
-(cd src/scripts;make clean)
# remove backups
-rm -f `find . -name "*~"`
# remove all Debian leftovers
-rm -rf debian/tmp `find debian/* -type d` debian/files* core
-rm -f debian/*substvars
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp.
make install ARCH=LINUX DESTDIR=`pwd`/debian/tmp
# ln -s ivtools-interviews `pwd`/debian/tmp/usr/doc/ivtools-dev
ln -s ivtools-interviews `pwd`/debian/tmp/usr/share/doc/ivtools-bin
ln -s ivtools-interviews `pwd`/debian/tmp/usr/share/doc/ivtools-unidraw
cp debian/template `pwd`/debian/tmp/usr/X11R6/lib/ivtools/config/
-(cd src/glyphs && make clean)
# don't include the scripts
# Documentation
# install -d `pwd`/debian/tmp/usr/doc/ivtools-doc
# cp src/man/refman3.1/refman.PS `pwd`/debian/tmp/usr/doc/ivtools-dev/
dh_movefiles
#
# remove the directories that are installed into /usr/X11R6/include
#
-rm -r `pwd`/debian/tmp/usr/X11R6/include
#
# ivtools installs the libACE link, we remove it ... hack
#
-rm `pwd`/debian/ivtools-dev/usr/X11R6/lib/libACE.so
chmod a-x debian/ivtools-dev/usr/X11R6/lib/ivtools/Idemo
chmod a-x debian/ivtools-dev/usr/X11R6/lib/ivtools/comterp.err
touch install-stamp
# Build architecture-independent files here.
binary-indep: build install
# dh_testversion
dh_testdir -i
dh_testroot -i
dh_installdocs -p ivtools-dev src/man/refman3.1/refman.PS
-rm `find src/glyphs -name Makefile.depend`
dh_installexamples -p ivtools-dev
dh_installmenu -i
# dh_installemacsen -i
# dh_installinit -i
# dh_installcron -i
# dh_installmanpages -i
# dh_undocumented
dh_installchangelogs -p ivtools-dev
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
# dh_testversion
dh_testdir -a
dh_testroot -a
dh_installdocs -p ivtools-interviews $(DOCS)
# dh_installexamples -a
dh_installmenu ivtools-bin
# dh_installemacsen -a
# dh_installinit -a
# dh_installcron -a
# dh_installmanpages -p ivtools-bin
# dh_undocumented
dh_installchangelogs -p ivtools-interviews
dh_installmime -a
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_makeshlibs -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|