blob: 0e0a6b53f0bd0779b621ab6a4c4ed2497b8e10bf (
plain)
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
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2011-2021 IOhannes m zmölnig <zmoelnig@iem.at>
# Description: Main Debian packaging script for gmerlin-encoders
DPKG_EXPORT_BUILDFLAGS = 1
DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_BUILD_MAINT_OPTIONS
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk
export DEB_CPPFLAGS_MAINT_APPEND =
export DEB_LDFLAGS_MAINT_APPEND =
export FLAC_VERSION=$(shell dpkg-query --show --showformat='$${source:Upstream-Version}' libflac-dev)
## only link what is needed
DEB_LDFLAGS_MAINT_APPEND += -Wl,--as-needed
%:
dh $@
execute_before_dh_autoreconf:
./autogen.sh
override_dh_auto_configure:
dh_auto_configure -- \
--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
--enable-static=no \
--with-cpuflags=none \
--disable-faac \
$(DEB_CONFIGURE_EXTRA_FLAGS)
# Suppress scanning documentation images causing false alarms.
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
debian/.*|icons/.*|doc/img/.*|skins/.*/.*|po/.*\.gmo
# licensecheck v1
.PHONY: licensecheck
licensecheck:
LANG=C.UTF-8 licensecheck \
-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
--check '.*' --recursive --deb-machine --lines 0 * \
> debian/copyright_newhints
cmp debian/copyright_hints debian/copyright_newhints \
&& rm debian/copyright_newhints
|