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
|
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs
export FORCE_SOURCE_DATE = 1
CONF_OPTS= -Dtest=true \
-Dlzma=true \
-Dbzlib=true \
-Dopenssl=false \
-Dx=false \
-Dfinger=true \
-Dgnutls=true \
-Dnntp=true \
-D88-colors=true \
-D256-colors=true \
-Dgettext=true \
-Dnls=true \
-Dleds=true \
-Dhtml-highlight=true \
-Dfsp=true \
-Dsmb=false \
-Dperl=true \
-Dguile=false \
-Dpython=true \
-Druby=false \
-Dluapkg=lua5.3 \
-Dgssapi=true \
-Dcgi=true \
-Dexmode=true \
-Dbittorrent=true \
-Ddebug=false \
-Dterminfo=true \
-Dlibev=true \
-Dreproducible=true \
-Dbrotli=true \
-Dgopher=true \
-Dgemini=true \
-Dspartan=true \
-Dlibcss=false \
-Dsource-date-epoch=$(SOURCE_DATE_EPOCH)
ifeq (,$(findstring ~,$(DEB_VERSION_UPSTREAM)))
CONF_OPTS += -Dfastmem=true
endif
ifneq (linux,$(DEB_HOST_ARCH_OS))
CONF_OPTS += -Dgpm=false
endif
%:
dh $@ --buildsystem=meson
override_dh_auto_configure:
dh_auto_configure -- $(CONF_OPTS)
override_dh_auto_build:
dh_auto_build -- man html pdf txt
override_dh_installexamples:
dh_installexamples --exclude=.gitignore
override_dh_install:
dh_install -Xmanual.proc
|