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
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# Used to enable documentation if dependencies are available
define cond_enable
$(shell if test -x /usr/bin/doxygen && test -x /usr/bin/dot \
&& test -x /usr/bin/pdftex; then echo --enable-documentation; \
else echo --disable-documentation; fi )
endef
CONFIGURE_OPTIONS ?= $(call cond_enable) \
--enable-dri2
%:
dh $@ --with autoreconf
binary: binary-indep binary-arch ;
override_dh_autoreconf:
dh_autoreconf --as-needed
override_dh_auto_configure:
dh_testdir
LDFLAGS="-Wl,--as-needed $$(dpkg-buildflags --get LDFLAGS)" ./configure \
--prefix=/usr --sysconfdir=/etc --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
$(CONFIGURE_OPTIONS)
override_dh_auto_build:
dh_auto_build
override_dh_auto_install:
dh_auto_install
override_dh_installdocs:
dh_installdocs -X.md5
override_dh_bugfiles:
dh_bugfiles -A
# ignore the plugin
override_dh_makeshlibs:
dh_makeshlibs -Xvdpau/libvdpau_trace.so.1
override_dh_strip:
dh_strip --dbg-package=libvdpau1-dbg
get-orig-source:
$(dir $_)libvdpau-get-orig-source
|