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
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
# 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
32-ARCHS=amd64
ifneq (,$(findstring $(DEB_HOST_ARCH), $(32-ARCHS)))
EXTRA_CONFIGURE += configure32
EXTRA_BUILD += build32
EXTRA_INSTALL += install32
endif
%:
dh $@
binary: binary-indep binary-arch ;
override_dh_auto_configure: $(EXTRA_CONFIGURE)
dh_testdir
./configure --prefix=/usr $(CONFIGURE_OPTIONS)
configure32:
dh_testdir
mkdir debian/32
cd debian/32 && CC="$(CC) -m32" CXX="$(CXX) -m32" \
../../configure --prefix=/usr --libdir=/usr/lib32 \
$(CONFIGURE_OPTIONS)
override_dh_auto_build: $(EXTRA_BUILD)
dh_auto_build
build32:
dh_auto_build --sourcedirectory=debian/32
override_dh_auto_install: $(EXTRA_INSTALL)
dh_auto_install
install32:
dh_auto_install --sourcedirectory=debian/32
clean:
dh clean
rm -rf debian/32
get-orig-source:
$(dir $_)libvdpau-get-orig-source
|