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
|
#!/usr/bin/make -f
# -*- makefile -*-
# debian.rules file for the Debian GNU/Linux xpdf package
# Copyright 1996,1997,1998 by Dirk Eddelbuettel <edd@debian.org>
# Copyright 1998-2006 by Hamish Moffatt <hamish@debian.org>
build: build-stamp
build-stamp: patch
dh_testdir
#CC=gcc-4.0 CXX=g++-4.0 ./configure
./configure \
--prefix=/usr \
--sysconfdir=/etc/xpdf \
--mandir=/usr/share/man \
--with-x \
--enable-freetype2 \
--enable-opi \
--enable-wordlist \
--enable-multithreaded \
--with-Xm-includes=$(shell pwd)/lesstif
--with-freetype2-includes=/usr/include/freetype2 \
--with-t1-includes=/usr/include
$(MAKE)
touch build-stamp
clean: clean1 unpatch
clean1:
dh_testdir
-$(MAKE) -i distclean
rm -rf *~ debian/*~ debian/files* build-stamp aconf.h
rm -rf fofi/Makefile splash/Makefile
dh_clean
binary-indep: # Nothing to build
dh_testdir
dh_installdirs -i
ln -sf xpdf-common debian/xpdf/usr/share/doc/xpdf
cp doc/xpdfrc.5 debian/xpdf-common/usr/share/man/man5
cp debian/xpdfrc debian/xpdf-common/usr/share/doc/xpdf-common/examples/sample-xpdfrc
cp debian/update-xpdfrc debian/xpdf-common/usr/sbin
chmod +x debian/xpdf-common/usr/sbin/update-xpdfrc
cp debian/xpdfrc debian/xpdf-common/etc/xpdf
cp debian/xpdf-bug-control debian/xpdf/usr/share/bug/xpdf/control
dh_installdocs -pxpdf-common README debian/README.Debian
dh_installchangelogs -pxpdf-common CHANGES
cp debian/update-xpdfrc.8 debian/xpdf-common/usr/share/man/man8
cp -a debian/lang/* debian/xpdf-common/
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary-arch: build
dh_testdir
dh_installdirs -a
mkdir -p debian/tmp
mkdir -p debian/tmp/usr/share
$(MAKE) install DESTDIR=`pwd`/debian/tmp
ln -sf xpdf-common debian/xpdf-reader/usr/share/doc/xpdf-reader
ln -sf xpdf-common debian/xpdf-utils/usr/share/doc/xpdf-utils
cp debian/zxpdf debian/xpdf-reader/usr/bin
chmod +x debian/xpdf-reader/usr/bin/zxpdf
ln -sf xpdf.1.gz debian/xpdf-reader/usr/share/man/man1/zxpdf.1.gz
ln -sf xpdf.1.gz debian/xpdf-reader/usr/share/man/man1/xpdf.bin.1.gz
cp debian/xpdf.xpm debian/xpdf-reader/usr/share/pixmaps
dh_installdocs -a
dh_movefiles -a
rm -rf debian/tmp
# rename xpdf binary and install wrapper script
mv debian/xpdf-reader/usr/bin/xpdf debian/xpdf-reader/usr/bin/xpdf.bin
cp debian/xpdf-wrapper debian/xpdf-reader/usr/bin/xpdf
chmod +x debian/xpdf-reader/usr/bin/xpdf
cp debian/xpdf.desktop debian/xpdf-reader/usr/share/applications/
dh_installmime -pxpdf-reader
dh_installmenu -pxpdf-reader
dh_strip -a
dh_desktop -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
patch: patch-stamp
patch-stamp:
dpatch apply-all
#dpatch call-all -a=pkg-info >patch-stamp
touch patch-stamp
unpatch:
dpatch deapply-all
rm -rf patch-stamp debian/patched
binary: binary-indep binary-arch
|