File: rules

package info (click to toggle)
brasero 3.12.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 39,836 kB
  • sloc: ansic: 104,363; sh: 4,144; makefile: 1,609; xml: 108
file content (39 lines) | stat: -rwxr-xr-x 1,021 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

SOVERSION := $(shell sed -rn 's/^Package:[[:space:]]*libbrasero-media([0-9-]+)[[:space:]]*$$/\1/p' debian/control)
SHLIBS := 3.0.0

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# 3.12.1 fails to build with -z defs
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

export BRASERO_PLUGIN_DIRECTORY = /usr/lib/${DEB_HOST_MULTIARCH}/brasero$(SOVERSION)/plugins

ifneq ($(DEB_BUILD_ARCH_OS), linux)
CONFFLAGS += --disable-inotify
endif

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-cdrtools \
		--disable-caches \
		--enable-search \
		--enable-introspection \
		--enable-gtk-doc \
		--disable-nautilus \
		$(CONFFLAGS)

execute_before_dh_install:
	find . -name "*.la" -delete

override_dh_makeshlibs:
	dh_makeshlibs -plibbrasero-media$(SOVERSION) -V 'libbrasero-media$(SOVERSION) (>= $(SHLIBS))' -Xplugins -- -c4
	dh_makeshlibs -pbrasero --no-act
	dh_makeshlibs -pbrasero-cdrkit --no-act