File: rules

package info (click to toggle)
liblrdf 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 456 kB
  • ctags: 258
  • sloc: ansic: 2,001; makefile: 71; sh: 28
file content (68 lines) | stat: -rwxr-xr-x 2,190 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
62
63
64
65
66
67
68
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2003-2004 Robert Jordens <rjo@gmx.de>
# Copyright © 2010-2011, 2013, 2016-2017 Jonas Smedegaard <dr@jones.dk>
# Description: Main Debian packaging script for liblrdf
#
# 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/>.

DEB_AUTO_UPDATE_LIBTOOL = pre
DEB_AUTO_UPDATE_AUTOCONF = ,
DEB_AUTO_UPDATE_AUTOHEADER = ,
DEB_AUTO_UPDATE_ACLOCAL = ,
DEB_AUTO_UPDATE_AUTOMAKE = ,

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk

# Recent d-shlibs needed for libraptor2-dev quirk
CDBS_BUILD_DEPENDS +=, d-shlibs (>= 0.79~), ladspa-sdk, libraptor2-dev

# put aside upstream-shipped temp files during build but after copyright-check
DEB_UPSTREAM_CRUFT_MOVE = \
 INSTALL \
 Makefile.in \
 aclocal.m4 \
 config.guess \
 config.h.in \
 config.sub \
 configure \
 depcomp \
 examples/Makefile.in \
 install-sh \
 libtool \
 ltmain.sh \
 m4/libtool.m4 \
 m4/ltoptions.m4 \
 m4/ltsugar.m4 \
 m4/ltversion.m4 \
 m4/lt~obsolete.m4 \
 missing \
 mkinstalldirs \
 src/Makefile.in
DEB_ACLOCAL_ARGS = -Im4 --install --force
DEB_AUTOMAKE_ARGS = --add-missing --copy --foreign --force
clean::
	rm -f compile stamp-h

binary-post-install/liblrdf0::
	d-shlibmove --commit \
		--movedev "debian/tmp/usr/include/*" usr/include/ \
		--movedev "debian/tmp/usr/lib/pkgconfig/*.pc" usr/lib/pkgconfig/ \
		--moveshl debian/tmp/usr/share/ladspa/rdf/ladspa.rdfs usr/share/ladspa/rdf/ \
		debian/tmp/usr/lib/liblrdf.so

binary-predeb/liblrdf0-dev::
	find debian/liblrdf0-dev/ -type f -name '*.la' -delete