File: rules

package info (click to toggle)
gstreamer-vaapi 1.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,528 kB
  • sloc: ansic: 76,257; python: 190; makefile: 20
file content (31 lines) | stat: -rwxr-xr-x 749 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
28
29
30
31
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

CFLAGS += -Wno-error
CXXFLAGS += -Wno-error
LDFLAGS += -Wl,-z,defs -Wl,-O1

# Let's decide the package name and url depending on the distribution
DISTRO = "$(shell dpkg-vendor --query vendor)"

GST_PACKAGE_ORIGIN="https://tracker.debian.org/pkg/gstreamer-vaapi"

ifeq ($(DISTRO),"Debian")
GST_PACKAGE_ORIGIN="https://tracker.debian.org/pkg/gstreamer-vaapi"
endif

ifeq ($(DISTRO),"Ubuntu")
GST_PACKAGE_ORIGIN="https://launchpad.net/ubuntu/+source/gstreamer-vaapi"
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-Dauto_features=enabled -Ddoc=disabled -Dexamples=disabled \
		-Dpackage-origin=$(GST_PACKAGE_ORIGIN)

override_dh_auto_test:
	xvfb-run dh_auto_test || true