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
|
#!/usr/bin/make -f
SHARED_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libgdamm-[0-9\.]+-[0-9][0-9a-z]*)[[:space:]]*$$/\1/p' debian/control)
SHVER := 4.99.11
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed
%:
dh $@ --with gnome
override_dh_auto_configure:
# maintainer-mode doesn't work yet so we don't actually build docs from source
# https://bugzilla.gnome.org/789123
# dh_auto_configure -- --enable-maintainer-mode --enable-documentation
dh_auto_configure -- --enable-documentation
override_dh_auto_install:
dh_auto_install
find debian/tmp -name '*.la' -print -delete
find debian/tmp -name jquery.js -print -delete
override_dh_install-indep:
ln -sf /usr/share/javascript/jquery/jquery.js \
debian/tmp/usr/share/doc/libgdamm-5.0/reference/html/jquery.js
dh_install
override_dh_installexamples:
$(MAKE) -C examples clean
dh_installexamples -X.deps -X.dirstamp -XMakefile
override_dh_missing:
dh_missing --fail-missing
override_dh_compress:
dh_compress -X reference -X examples
override_dh_makeshlibs:
dh_makeshlibs -V"$(SHARED_PKG) (>= $(SHVER))" -- -c4
|