Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 export DEB_CFLAGS_MAINT_APPEND := -Wall -DNO_BUILDSTAMP
5 BDIR = -O--builddirectory=build
6
7 SSL=gnu
8 # uncomment the next line if you want openssl version
9 #SSL=ssl
10
11 ifeq ($(SSL),gnu)
12 CONFTLS := --with-gnutls=/usr
13 else
14 CONFTLS := --with-ssl
15 endif
16
17 override_dh_auto_configure:
18 ifeq ($(SSL),gnu)
19 sed -i -e s/libssl-dev/libgnutls28-dev/g debian/control
20 else
21 sed -i -e s/libgnutls28-dev/libssl-dev/g debian/control
22 endif
23
24 env cf_cv_SYSTEM_MAIL=/usr/sbin/sendmail \
25 LIBS="-lbsd" \
26 dh_auto_configure $(BDIR) --verbose -- \
27 --enable-8bit-toupper \
28 --enable-cgi-links \
29 --enable-cjk \
30 --enable-debug \
31 --enable-default-colors \
32 --enable-exec-links \
33 --enable-exec-scripts \
34 --enable-externs \
35 --enable-forms-options \
36 --enable-gzip-help \
37 --enable-htmlized-cfg \
38 --enable-ipv6 \
39 --enable-japanese-utf8 \
40 --enable-justify-elts \
41 --enable-justify-elts \
42 --enable-nested-tables \
43 --enable-nls \
44 --enable-nsl-fork \
45 --enable-partial \
46 --enable-persistent-cookies \
47 --enable-prettysrc \
48 --enable-read-eta \
49 --enable-scrollbar \
50 --enable-source-cache \
51 --enable-syslog \
52 --sysconfdir=/etc/lynx \
53 --with-brotli \
54 --with-bzlib \
55 --without-included-gettext \
56 --with-screen=ncursesw \
57 --with-zlib \
58 COMPRESS=/usr/bin/compress \
59 ZIP=/usr/bin/zip \
60 $(CONFTLS)
61
62 override_dh_autoreconf:
63 dh_autoreconf $(BDIR) autoreconf-dickey -- -f -i
64
65 override_dh_auto_install:
66 dh_auto_install $(BDIR) --verbose -- install-full
67 cd debian/tmp/usr/share/lynx_help && rm -vf COPYING COPYHEADER
68 cd debian/tmp/usr/share/lynx_doc && rm -rvf CHANGES \
69 COPYHEADER.asc COPYING COPYING.asc samples test
70 sed -i -e '/^# *\$$LynxId: /d' \
71 -e '/^# *LYNX_VERSION *"/d' \
72 -e '/^# *LYNX_DATE *"/d' \
73 debian/tmp/etc/lynx/lynx.*
74
75 override_dh_link:
76 rm -fv debian/lynx/usr/share/doc/lynx/changelog
77 dh_link $(BDIR)
78
79 %:
80 dh $@ --builddirectory=build