debian swirl logo

Back to the packages list gimp

#!/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.
# TODO: maybe set LD_LIBRARY_PATH instead?

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/class/gnome.mk
#include /usr/share/gnome-pkg-tools/1/rules/check-dist.mk

# explicitly set PYTHON to be the versioned python binary, since dh_python2
# will just end up depending on the pythonX.X package, and we don't want a
# version mismatch between the installed python binary and the private python
# modules.
DEB_CONFIGURE_EXTRA_FLAGS := --disable-static \
				--enable-python \
				--enable-default-binary \
				--enable-gtk-doc PYTHON=/usr/bin/`pyversions -d` \
				--without-webkit
DEB_BUILDDIR := $(DEB_SRCDIR)/builddir

DEB_DH_SHLIBDEPS_ARGS_ALL := -Llibgimp2.0 -l$(CURDIR)/debian/libgimp2.0/usr/lib
# exclude this since we manually add the Suggests in debian/control:
DEB_DH_SHLIBDEPS_ARGS_gimp := -Xusr/lib/gimp/2.0/modules/libcontroller-midi.so
DEB_DH_MAKESHLIBS_ARGS_gimp := -X/usr/lib/gimp/2.0/modules/
DEB_DH_MAKESHLIBS_ARGS_libgimp2.0 += -V -- -c4

clean::
		rm -rf $(DEB_BUILDDIR)

common-install-impl::
	# Remove all libtool .la files
		find $(CURDIR)/debian/tmp/usr/lib -name "*.la" -delete

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

Builds:

gimp-data
data files for gimp
gimp-dbg
debugging symbols for gimp
gimp
the gnu image manipulation program
libgimp2.0-dev
headers and other files for compiling plugins for gimp
libgimp2.0-doc
developers' documentation for the gimp library
libgimp2.0
libraries for the gnu image manipulation program