File: rules

package info (click to toggle)
gnusound 0.6.2-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,488 kB
  • ctags: 1,778
  • sloc: ansic: 21,146; sh: 2,505; xml: 527; makefile: 171; perl: 157
file content (30 lines) | stat: -rwxr-xr-x 1,115 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
# Including this file gets us a simple patch system.  You can just
# drop patches in debian/patches, and they will be automatically
# applied and unapplied.
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/autotools.mk

MANPAGES= gnusound.1

DEB_CONFIGURE_SCRIPT_ENV := LDFLAGS=" -Wl,-z,defs -Wl,-O1"
DEB_AC_AUX_DIR := $(DEB_SRCDIR)/config
DEB_MAKE_INSTALL_TARGET := install prefix=$(CURDIR)/debian/gnusound/usr


build/gnusound::
	mkdir -p debian/gnusound/usr

binary-install/gnusound::
	# Manpages
	dh_installman -pgnusound $(MANPAGES)
	# Better stripping for modules
	find debian/gnusound/usr/lib/gnusound/modules/ ! -name "*.glade" -type f -exec strip --remove-section=.comment --remove-section=.note --strip-unneeded {} \;
	# Wrapper to set LADSPA_PATH
	mv debian/gnusound/usr/bin/gnusound debian/gnusound/usr/bin/gnusound.real
	cp debian/maintfiles/gnusound debian/gnusound/usr/bin/gnusound
	chmod a+x debian/gnusound/usr/bin/gnusound
	dh_link usr/share/man/man1/gnusound.1 usr/share/man/man1/gnusound.real.1