debian swirl logo

Back to the packages list gtk2-engines

#!/usr/bin/make -f

buildbasedir := $(CURDIR)/debian/build
DEB_BUILDDIR := $(buildbasedir)/x11
DEB_BUILDDIR_gtk2-engines-udeb := $(buildbasedir)/x11-udeb

include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

GNOME_MODULE := gtk-engines
TARBALL_EXT := tar.bz2

DEB_DESTDIR := $(CURDIR)/debian/tmp/x11
DEB_DESTDIR_gtk2-engines-udeb := $(CURDIR)/debian/tmp/x11-udeb

DEB_DH_INSTALL_ARGS = --sourcedir=$(if $(findstring gtk2-engines-udeb,$(cdbs_curpkg)),$(DEB_DESTDIR_gtk2-engines-udeb),$(DEB_DESTDIR))

# don't run dh_makeshlibs (we don't need shlibs for Gtk modules)
DEB_DH_MAKESHLIBS_ARGS_ALL += --no-act

# FIXME: This is required because of some automake weirdness
LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,-Bsymbolic -Wl,--as-needed

DEB_CONFIGURE_EXTRA_FLAGS += --enable-animation --disable-lua
DEB_CONFIGURE_UDEB_FLAGS = $(DEB_CONFIGURE_EXTRA_FLAGS)

configure/gtk2-engines-udeb:: $(DEB_BUILDDIR_gtk2-engines-udeb)/config.status
$(DEB_BUILDDIR_gtk2-engines-udeb)/config.status:
		cd $(DEB_BUILDDIR_gtk2-engines-udeb) && \
			$(DEB_CONFIGURE_SCRIPT_ENV) \
				$(DEB_CONFIGURE_SCRIPT) \
					$(DEB_CONFIGURE_NORMAL_ARGS) \
					$(cdbs_configure_flags) \
					$(DEB_CONFIGURE_EXTRA_FLAGS) \
					$(DEB_CONFIGURE_UDEB_FLAGS) \
					$(DEB_CONFIGURE_USER_FLAGS)

build/gtk2-engines-udeb::
		make -C $(DEB_BUILDDIR_gtk2-engines-udeb)

install/gtk2-engines-udeb::
	make -C $(DEB_BUILDDIR_gtk2-engines-udeb) install DESTDIR= $(DEB_DESTDIR_gtk2-engines-udeb)

binary-install/gtk2-engines::
		cd debian/gtk2-engines/usr/lib && \
			mkdir $(DEB_HOST_MULTIARCH) && \
			mv gtk-2.0 $(DEB_HOST_MULTIARCH)/
		dh_gtkmodules -pgtk2-engines

binary-install/gtk2-engines-udeb::
		dh_gtkmodules -pgtk2-engines-udeb

clean::
		rm -rf $(buildbasedir)

Builds:

gtk2-engines
theme engines for gtk+ 2.x
gtk2-engines-udeb
theme engines for gtk+ 2.x in the debian installer