File: rules

package info (click to toggle)
libvdpau-va-gl 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 812 kB
  • sloc: cpp: 5,512; ansic: 2,052; javascript: 37; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 750 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildtools.mk
export DEB_CPPFLAGS_MAINT_APPEND = -DNDEBUG

%:
	dh $@

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
override_dh_auto_configure:
	$(CXX_FOR_BUILD) glsl/shader-bundle-tool.cc -o debian/shader-bundle-tool
	dh_auto_configure -- -DSHADER_BUNDLE_TOOL_EXECUTABLE=$(CURDIR)/debian/shader-bundle-tool
endif

override_dh_auto_test:
	# Cannot run tests without a X11 server (with VAAPI support)

override_dh_makeshlibs:
	dh_makeshlibs -n

override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/libvdpau-va-gl1/usr/lib/$(DEB_HOST_MULTIARCH)
	mv debian/libvdpau-va-gl1/usr/lib/vdpau \
		debian/libvdpau-va-gl1/usr/lib/$(DEB_HOST_MULTIARCH)/.