File: rules

package info (click to toggle)
xine-lib-1.2 1.2.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 33,784 kB
  • sloc: ansic: 378,965; sh: 5,559; makefile: 2,121; asm: 1,001; objc: 824; pascal: 560; awk: 234; perl: 102; sed: 16
file content (61 lines) | stat: -rwxr-xr-x 1,537 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
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
58
59
60
61
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
  $(error cross compiling is not supported by xine)
endif

# predefine as empty
DEB_BUILD_CONFIG_OPTIONS :=

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	DEB_BUILD_CONFIG_OPTIONS += --disable-optimizations --enable-debug
endif
ifneq (,$(findstring linux,$(DEB_HOST_GNU_TYPE)))
	DEB_BUILD_CONFIG_OPTIONS += --enable-libv4l
endif

# set configure flags here
CONFIGURE_FLAGS := \
	--disable-static \
	--with-external-libmad \
	--with-external-a52dec \
	--with-external-libdts \
	--with-external-ffmpeg \
	--with-external-libmpcdec \
	--with-external-dvdnav \
	--with-libflac \
	--with-wavpack \
	--with-freetype \
	--disable-vidix \
	--enable-directfb \
	--disable-nosefart \
	$(DEB_BUILD_CONFIG_OPTIONS) \
	$(shell dpkg-buildflags --export=configure) \
	LIBMODPLUG_LIBS="$(filter-out -lstdc++ -lm,$(shell pkg-config --libs libmodplug))"

export V=1  # verbose log

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_makeshlibs:
	dh_makeshlibs -V 'libxine2 (>= 1.2.8)'

override_dh_installchangelogs:
	dh_installchangelogs -k ChangeLog

override_dh_installdocs:
	dh_installdocs -plibxine2 -plibxine2-console -plibxine2-dev \
		-plibxine2-ffmpeg -plibxine2-gnome -plibxine2-misc-plugins \
		-plibxine2-vdr -plibxine2-x \
		--link-doc=libxine2-bin
	dh_installdocs --remaining-packages

override_dh_missing:
	dh_missing --fail-missing