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
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2007-2008 Jonas Smedegaard <dr@jones.dk>
# NB! Local CDBS tweaks in use. More info in README.cdbs-tweaks
DEB_BUILDDIR = build
DEB_PYTHON_SYSTEM = pycentral
ifneq (,$(DEB_MAINTAINER_MODE))
# Enable stuff not policy compliant (eg. unsuitable for build daemons)
DEB_COPYRIGHT_CHECK_STRICT = yes
DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes
endif
include debian/cdbs/1/rules/upstream-tarball.mk
include debian/cdbs/1/rules/copyright-check.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include debian/cdbs/1/class/python-autotools.mk
include debian/cdbs/1/rules/buildinfo.mk
pkg = python-sugar
DEB_UPSTREAM_URL = http://dev.laptop.org/pub/sugar/sources/$(DEB_UPSTREAM_PACKAGE)
DEB_UPSTREAM_TARBALL_EXTENSION = tar.bz2
DEB_UPSTREAM_TARBALL_MD5 = c5790a18fd9ee86a49ffa727505294f5
# Strip hardcoded rpath
binary-strip/$(pkg)::
find $(DEB_DESTDIR)/usr/lib -type f -name '*.so' -exec chrpath -d '{}' ';'
# Cleanup a few empty subdirs missed by py-compile.mk cleanup routines
clean::
-[ ! -d $(DEB_BUILDDIR) ] || for flavor in $(cdbs_python_curpkg_build_versions); do \
(cd $(DEB_BUILDDIR) && rmdir -p $$flavor/src/sugar); \
done
-[ ! -d $(DEB_BUILDDIR) ] || rmdir $(DEB_BUILDDIR)
# Needed by upstream build process
# pygtk << 2.9 contained gobject
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), python-gtk2-dev, python-gobject-dev (>= 2) | python-gtk2-dev (<< 2.9), intltool
# Needed for our packaging
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), chrpath
# Merge duplicate build-dependencies
include debian/cdbs/1/rules/package-relations.mk
|