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
|
#!/usr/bin/make -f
# debian/rules file for texlive-bin
export SHELL=/bin/bash
export CONFIG_SHELL=/bin/sh
# this is for dh_quilt_patch (--with quilt) which reads this
# variable and sets QUILT_PATCHES accordingly
# we set both in case ...
export QUILT_PATCH_DIR=debian/quilt
export QUILT_PATCHES=debian/quilt
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH), alpha)
export LDFLAGS = -Wl,--no-relax
endif
#
# it seems that ARM metafont segfaults due to a problem with armhf's malloc
# see Debian bug #678604
# Building in arm mode helps
#
ifeq ($(DEB_HOST_ARCH), armhf)
export CFLAGS = -marm
endif
# warning: if the --with autoreconf is removed then
# the patch debian/patches/debian-no-linked-scripts
# must be adapted to also patch the Makefile.in!
%:
dh $@ --with quilt --with autoreconf --builddirectory Work
override_dh_autoreconf:
dh_autoreconf --as-needed
override_dh_auto_configure:
dh_auto_configure -- --prefix=/usr \
--datarootdir=/usr/share/texlive \
--disable-native-texlive-build \
--disable-largefile \
--disable-missing \
--with-banner-add=/Debian \
--enable-shared \
--with-system-zlib \
--with-system-libpng \
--with-system-zzlib \
--with-system-gd \
--with-system-freetype2 \
--with-system-xpdf \
--with-system-poppler \
--with-system-graphite \
--with-system-libgs \
--with-freetype2-include=/usr/include/freetype2 \
--with-x \
--with-mf-x-toolkit \
--with-xdvi-x-toolkit=xaw \
--disable-lcdf-typetools \
--disable-biber \
--disable-dvipng \
--disable-musixflx \
--disable-ps2eps \
--disable-psutils \
--disable-luatex \
--disable-t1utils \
--disable-cjkutils \
--disable-chktex \
--disable-dvidvi \
--disable-lacheck \
--disable-tex4htk \
--disable-pmx \
--disable-mtx \
--enable-ipc
override_dh_auto_install:
dh_auto_install -- DESTDIR=$(CURDIR)/debian/tmp
override_dh_install:
dh_install --sourcedir=$(CURDIR)/debian/tmp
# remove texlive directories, they should not be shipped here
rm -rf debian/texlive-binaries/usr/share/texlive
# remove wrongly added info/dir.gz
rm -f debian/texlive-binaries/usr/share/info/dir*
rm debian/texlive-binaries/usr/share/man/man1/latex.1*
rm debian/texlive-binaries/usr/share/man/man1/pdflatex.1*
rm debian/texlive-binaries/usr/share/man/man1/thumbpdf.1*
rm debian/texlive-binaries/usr/share/man/man1/lamed.1*
rm debian/texlive-binaries/usr/share/man/man1/e2pall.1*
rm debian/texlive-binaries/usr/share/man/man1/eplain.1*
rm debian/texlive-binaries/usr/share/man/man1/amstex.1*
# for alternatives treatment we rename usr/bin/bibtex to
# usr/bin/bibtex.original
mv debian/texlive-binaries/usr/bin/bibtex \
debian/texlive-binaries/usr/bin/bibtex.original
mv debian/texlive-binaries/usr/share/man/man1/bibtex.1 \
debian/texlive-binaries/usr/share/man/man1/bibtex.original.1
override_dh_installdocs:
dh_installdocs
dh_installdocs -plibptexenc1 -plibptexenc-dev \
texk/ptexenc/COPYRIGHT texk/ptexenc/README
dh_installdocs -plibkpathsea6 -plibkpathsea-dev \
texk/kpathsea/AUTHORS texk/kpathsea/BUGS \
texk/kpathsea/NEWS texk/kpathsea/PROJECTS \
texk/kpathsea/README
override_dh_installchangelogs:
dh_installchangelogs
dh_installchangelogs -plibkpathsea6 -plibkpathsea-dev \
texk/kpathsea/ChangeLog
dh_installchangelogs -plibptexenc1 -plibptexenc-dev \
texk/ptexenc/ChangeLog
override_dh_compress:
dh_compress -X.pdf
override_dh_makeshlibs:
dh_makeshlibs -plibkpathsea6
dh_makeshlibs -plibptexenc1
override_dh_shlibdeps:
dh_shlibdeps \
-l debian/libkpathsea6/usr/lib \
-l debian/libptexenc1/usr/lib
override_dh_clean:
dh_quilt_unpatch
dh_clean -X.orig
|