| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
|
| 8 |
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) |
| 9 |
ifneq (,$(LDFLAGS)) |
| 10 |
LDFLAGS := $(filter-out %-Bsymbolic-functions,$(LDFLAGS)) |
| 11 |
endif |
| 12 |
endif |
| 13 |
|
| 14 |
include /usr/share/dpkg/pkg-info.mk |
| 15 |
export DEB_CPPFLAGS_MAINT_APPEND = -D_DEBDATE_=\"$(shell \ |
| 16 |
LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +%b-%d-%Y)\" |
| 17 |
|
| 18 |
%: |
| 19 |
dh $@ |
| 20 |
|
| 21 |
override_dh_auto_configure: |
| 22 |
dh_auto_configure -Bbuild -- \ |
| 23 |
--with-xft --with-xshm \ |
| 24 |
--with-xcursor --with-opengl \ |
| 25 |
--enable-release --with-xim \ |
| 26 |
--program-suffix=-1.6 \ |
| 27 |
--without-xrender \ |
| 28 |
--without-xfixes \ |
| 29 |
--without-xinput |
| 30 |
|
| 31 |
override_dh_auto_clean: |
| 32 |
dh_auto_clean -Bbuild |
| 33 |
|
| 34 |
override_dh_auto_build: |
| 35 |
dh_auto_build -Bbuild |
| 36 |
|
| 37 |
override_dh_auto_install: |
| 38 |
dh_auto_install -Bbuild -- \ |
| 39 |
htmldir=/usr/share/doc/html \ |
| 40 |
artdir=/usr/share/doc/html/art \ |
| 41 |
screenshotsdir=/usr/share/doc/html/screenshots |
| 42 |
for file in debian/tmp/usr/lib/*/*.la; do \ |
| 43 |
sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \ |
| 44 |
done |