Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong
GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/packages/extras-buildpkgs/libvdpau/debian/rules
13271 views
#!/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)

CONFIGURE_OPTIONS ?= --disable-documentation \
		     --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_bugfiles:
	dh_bugfiles -A

# ignore the plugin
override_dh_makeshlibs:
	dh_makeshlibs -Xvdpau/libvdpau_trace.so.1