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 58 59 60 61 62 63 64 65 66
|
#!/usr/bin/make -f
# Gnome Team
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
# get-orig-source target
GNOME_DOWNLOAD_URL = http://www.gnome.org/~veillard/gamin/sources/$(GNOME_TARBALL)
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/gnome.mk
PY_VERSIONS = $(shell pyversions --requested debian/control)
DEB_BUILDDIR := build
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-O1"
DEB_CONFIGURE_EXTRA_FLAGS += --disable-kqueue
DEB_INSTALL_DOCS_ALL :=
DEB_INSTALL_DOCS_gamin := AUTHORS NEWS README TODO
common-binary-predeb-arch::
dh_python
configure-stamp-%:
mkdir build-$*
cd build-$* && PYTHON=`which $*` $(DEB_CONFIGURE_SCRIPT_ENV) \
$(DEB_CONFIGURE_SCRIPT) \
$(DEB_CONFIGURE_NORMAL_ARGS) \
--disable-maintainer-mode \
$(cdbs_configure_flags) \
$(DEB_CONFIGURE_EXTRA_FLAGS) \
$(DEB_CONFIGURE_USER_FLAGS)
touch $@
configure/python-gamin:: $(addprefix configure-stamp-, $(PY_VERSIONS))
build-stamp-%:
make -C build-$*
touch $@
build/python-gamin:: $(addprefix build-stamp-, $(PY_VERSIONS))
install-stamp-%:
make -C build-$* install DESTDIR=$(CURDIR)/debian/tmp
touch $@
install/python-gamin:: $(addprefix install-stamp-, $(PY_VERSIONS))
binary-install/python-gamin::
# force executable bit on files looking like python scripts
egrep -rlZ '^#!(.*)python' debian/python-gamin/usr/lib/ | xargs -0 chmod a+x --
dh_pysupport
dh_python
clean::
-rm -rf $(DEB_BUILDDIR)
-rm -rf $(addprefix build-, $(PY_VERSIONS))
-rm -rf $(addprefix configure-stamp-, $(PY_VERSIONS))
-rm -rf $(addprefix build-stamp-, $(PY_VERSIONS))
-rm -rf $(addprefix install-stamp-, $(PY_VERSIONS))
|