File: rules

package info (click to toggle)
libgnomeui 2.20.1.1-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 13,400 kB
  • ctags: 7,371
  • sloc: ansic: 40,799; xml: 19,721; sh: 8,821; makefile: 443
file content (25 lines) | stat: -rwxr-xr-x 1,016 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
include /usr/share/gnome-pkg-tools/1/rules/gnome-version.mk
include /usr/share/gnome-pkg-tools/1/rules/clean-la.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

# this relies on the fact that the first package is the shared library to
# retrieve the package name (with SONAME)
libgnomeuiN := $(shell sed -rn 's/^Package:[[:space:]]*(libgnomeui-[0-9]+)[[:space:]]*$$/\1/p' debian/control)
# the debug package should be named libgnomeui-dbg (unversionned); please
# change it next time the package has to go through NEW
DEBUG_PKG := libgnomeui-0-dbg

LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

DEB_DH_STRIP_ARGS += --dbg-package=$(DEBUG_PKG)
DEB_CONFIGURE_EXTRA_FLAGS += --libexecdir=\$${prefix}/lib/$(libgnomeuiN)

binary-install/$(libgnomeuiN)::
	dh_gtkmodules -p$(cdbs_curpkg)