File: rules

package info (click to toggle)
gmerlin-avdecoder 1.2.0~dfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 7,828 kB
  • sloc: ansic: 92,076; sh: 11,014; makefile: 729; sed: 16
file content (60 lines) | stat: -rwxr-xr-x 2,328 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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2008 Christian Marillat <marillat@debian.org>
# Copyright © 2010, 2012 Jonas Smedegaard <dr@jones.dk>
# Copyright © 2011-2016 IOhannes m zmölnig <umlaeute@debian.org>
#
# Description: Main Debian packaging script for gmerlin_avdecoder
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

include /usr/share/cdbs/1/rules/upstream-tarball.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/rules/utils.mk

LDFLAGS+=-Wl,--as-needed

DEB_UPSTREAM_URL = http://downloads.sourceforge.net/gmerlin

DEB_UPSTREAM_REPACKAGE_EXCLUDES = ./lib/libw32dll/
DEB_UPSTREAM_REPACKAGE_EXCLUDES += ./lib/GSM610/
DEB_UPSTREAM_REPACKAGE_EXCLUDES += ./lib/os.c
DEB_UPSTREAM_REPACKAGE_EXCLUDES += ./lib/os_inet_aton.c

DEB_UPSTREAM_TARBALL_MD5 = c1ea663e9da631453eec4ac79138b6c5

DEB_CONFIGURE_EXTRA_FLAGS := --docdir=\$${prefix}/share/doc/libgmerlin-avdec1/ \
 --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --disable-vdpau
DEB_DH_MAKESHLIBS_ARGS_ALL := -- -v$(DEB_UPSTREAM_VERSION)

# bootstrap autotools files (CDBS normally only updates them)
DEB_MAKE_CLEAN_TARGET = distclean
DEB_AUTOMAKE_ARGS = --add-missing --copy

DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(missing|config(ure|\.guess|\.sub)|debian/(changelog|copyright(|_hints|_newhints)))$


.PHONY: storefiles restorefiles

post-patches:: storefiles

clean::
	rm -f m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4
	rm -f Makefile config.log config.status lib/Makefile
	rm -f po/de.gmo

binary-install/gmerlin-plugins-avdecoder::
	find $(CURDIR)/debian/gmerlin-plugins-avdecoder/usr/lib/ -name '*.la' -delete