#!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2008 Jonas Smedegaard # 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 /usr/share/cdbs/1/rules/patchsys-quilt.mk include debian/cdbs/1/rules/copyright-check.mk include debian/cdbs/1/class/python-autotools.mk include /usr/share/cdbs/1/rules/debhelper.mk include debian/cdbs/1/rules/buildinfo.mk pkg = python-sugar-toolkit DEB_UPSTREAM_URL = http://dev.laptop.org/pub/sugar/sources/$(DEB_UPSTREAM_PACKAGE) DEB_UPSTREAM_TARBALL_EXTENSION = tar.bz2 DEB_UPSTREAM_TARBALL_MD5 = c3a2c45d6444efcd3fa59c50198f9483 # Drop created dir if empty to please lintian binary-post-install/$(pkg):: rmdir --ignore-fail-on-non-empty --parents $(DEB_DESTDIR)/usr/share/locale # Strip hardcoded rpath binary-strip/$(pkg):: find $(DEB_DESTDIR)/usr/lib -type f -name '*.so' -exec chrpath -d '{}' ';' # Needed by upstream build process CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), libglib2.0-dev, python-gtk2-dev, libsm-dev, libice-dev, libasound2-dev | libasound-dev, gettext, intltool, libxml-parser-perl # Needed for our packaging CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), chrpath # Merge duplicate build-dependencies include debian/cdbs/1/rules/package-relations.mk