debian swirl logo

Back to the packages list gdk-pixbuf

#!/usr/bin/make -f 

export AUTOPOINT = true

include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.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-get-source.mk

DEB_MAKE_CHECK_TARGET = check
DEB_CONFIGURE_EXTRA_FLAGS := --with-libjasper \
                             --with-x11 \
                             --enable-introspection \
                             --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)

DEB_DH_MAKESHLIBS_ARGS_libgdk-pixbuf2.0-0 += --add-udeb=libgdk-pixbuf2.0-0-udeb -X "/usr/lib/$(DEB_HOST_MULTIARCH)/gdk-pixbuf-2.0" -V -- -c4

common-binary-fixup-arch::
		mkdir -p debian/libgdk-pixbuf2.0-0-udeb/usr/lib/$(DEB_HOST_MULTIARCH)/gdk-pixbuf-2.0/2.10.0
	LD_LIBRARY_PATH= debian/libgdk-pixbuf2.0-0-udeb/usr/lib:$(LD_LIBRARY_PATH) \
			debian/libgdk-pixbuf2.0-0/usr/lib/$(DEB_HOST_MULTIARCH)/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \
			debian/libgdk-pixbuf2.0-0-udeb/usr/lib/$(DEB_HOST_MULTIARCH)/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
			| sed 's;$(CURDIR)/debian/libgdk-pixbuf2.0-0-udeb;;g' \
			> debian/libgdk-pixbuf2.0-0-udeb/usr/lib/$(DEB_HOST_MULTIARCH)/gdk-pixbuf-2.0/2.10.0/loaders.cache

binary-install/libgdk-pixbuf2.0-0::
		set -e; for script in postinst postrm; do \
			sed -e"s/#MULTIARCH#/$(DEB_HOST_MULTIARCH)/g" \
			    debian/$(cdbs_curpkg).$$script.in \
			    > debian/$(cdbs_curpkg).$$script ; \
		done

common-install-arch::
		set -e; for file in libgdk-pixbuf2.0-0.install libgdk-pixbuf2.0-dev.links \
			libgdk-pixbuf2.0-0.triggers; \
		do \
			sed -e"s,\$${DEB_HOST_MULTIARCH},${DEB_HOST_MULTIARCH},g" \
				debian/$${file}.in > debian/$$file; \
		done

# temporary directory for the minimal MIME cache generation
mimedir = debian/build-mime
mimexml = /usr/share/mime/packages/freedesktop.org.xml

clean::
		rm -rf $(mimedir)

binary-install/libgdk-pixbuf2.0-0-udeb::
	# generate a minimal MIME cache for the udeb
		mkdir -p $(mimedir)/packages
		[ -f $(mimexml) ]
		xsltproc -nonet debian/keep-png-only.xsl $(mimexml) \
			> $(mimedir)/packages/png.freedesktop.org.xml
		update-mime-database $(mimedir)
		dh_install -plibgdk-pixbuf2.0-0-udeb $(mimedir)/mime.cache usr/share/mime

Builds:

gir1.2-gdkpixbuf-2.0
gdk pixbuf library - gobject-introspection
libgdk-pixbuf2.0-0-dbg
gdk pixbuf library - debug symbols
libgdk-pixbuf2.0-0
gdk pixbuf library
libgdk-pixbuf2.0-0-udeb
gdk pixbuf library - minimal runtime
libgdk-pixbuf2.0-common
gdk pixbuf library - data files
libgdk-pixbuf2.0-dev
gdk pixbuf library (development files)
libgdk-pixbuf2.0-doc
gdk pixbuf library (documentation)