File: rules

package info (click to toggle)
gimp 2.2.13-1etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 94,832 kB
  • ctags: 47,113
  • sloc: ansic: 524,858; xml: 36,798; lisp: 9,870; sh: 9,409; makefile: 7,923; python: 2,674; perl: 2,589; yacc: 520; lex: 334
file content (57 lines) | stat: -rwxr-xr-x 2,330 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# PLEASE NOTE: when building a development version or a version where the minor
# library version changes or has changed but the major so version stays the 
# same, make sure to Build-Conflict on libgimpX.X, Where libgimpX.X contains
# a previous version of the same major version of the library. Otherwise,
# libtool will stupidly relink against the system version of the library
# when installing, and create a dependency on the old version of libgimp.

## WARNING: compiling without -O2 (DEB_BUILD_OPTIONS=noopt) may produce
##undesired effects, especially when scaling JPEG images.

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

## Read version numbers from the changelog (for upstream dev versions)
version=$(shell dpkg-parsechangelog | grep '^Version: ' | sed -e 's/^Version: //' | sed -e 's/-.*//')
major=$(shell echo ${version} | cut -d. -f1-2)
micro=$(shell echo ${version} | cut -d. -f3 | cut -d+ -f1)
nextmicro=$(shell expr ${micro} + 1)


DEB_CONFIGURE_EXTRA_FLAGS := \
	--enable-python --disable-print --enable-default-binary
DEB_BUILDDIR := $(DEB_SRCDIR)/build

DEB_DH_SHLIBDEPS_ARGS_ALL := \
	-Llibgimp2.0 -l$(CURDIR)/debian/libgimp2.0/usr/lib -Xlibcontroller_midi.so

# For the stable branch:
DEB_DH_MAKESHLIBS_ARGS_libgimp2.0 := -V "libgimp2.0 (>= 2.2.0+rel)"
# For the development branch:
#DEB_DH_MAKESHLIBS_ARGS_libgimp2.0 := \
#	-V "libgimp2.0 (>= ${version}), libgimp2.0 (<< ${major}.${nextmicro})"

clean::
	rm -rf build

common-install-impl::
	mkdir -p debian/tmp/usr/share/mime-info/ \
		debian/tmp/usr/share/application-registry/ \
		debian/tmp/usr/share/pixmaps
	install -D -m644 debian/tmp/usr/share/gimp/2.0/misc/gimp.desktop \
		debian/tmp/usr/share/applications/gimp-2.2.desktop
	install -m644 debian/tmp/usr/share/gimp/2.0/misc/gimp.keys \
		debian/tmp/usr/share/mime-info/gimp-2.2.keys
	install -m644 debian/tmp/usr/share/gimp/2.0/misc/gimp.applications \
		debian/tmp/usr/share/application-registry/gimp-2.2.applications

	# Remove compiled python files from the distribution, this is done in
	# postrm using dh_python
	find $(CURDIR)/debian/tmp -name "*.py[co]" -exec xargs rm '{}' ';'

	dh_movefiles

binary-install/gimp-python::
	dh_python -pgimp-python /usr/lib/gimp/2.0/python