#!/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 debian/cdbs/1/rules/copyright-check.mk include /usr/share/cdbs/1/rules/patchsys-quilt.mk include debian/cdbs/1/class/python-autotools.mk include /usr/share/cdbs/1/rules/debhelper.mk include debian/cdbs/1/rules/buildinfo.mk DEB_UPSTREAM_PACKAGE = hulahop DEB_UPSTREAM_URL = http://dev.laptop.org/pub/sugar/sources/$(DEB_UPSTREAM_PACKAGE) DEB_UPSTREAM_TARBALL_EXTENSION = tar.bz2 DEB_UPSTREAM_TARBALL_MD5 = a62cbb798511811deef682748bec5927 DEB_UPSTREAM_REPACKAGE_EXCLUDE = debian python/config.py python/hulahop.c pkg = python-hulahop # Needed to locate xulrunner LDFLAGS += -L/usr/lib/xulrunner-1.9 # Woraround for type punning causing "size of array 'arg' is negative" CXXFLAGS += -fno-strict-aliasing # Remove autogenerated files. clean:: rm -f python/config.py python/hulahop.c # Minimum usable version of xulrunner python-xpcom-minver = 1.9~rc2 # Needed both by upstream build and at runtime CDBS_DEPENDS_$(pkg) := python-xpcom (>= $(python-xpcom-minver)) CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), $(CDBS_DEPENDS_$(pkg)) # Needed by upstream build process CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), xulrunner-dev (>= $(python-xpcom-minver)), python-gtk2-dev # Resolve, cleanup and apply CDBS-declared dependencies include debian/cdbs/1/rules/package-relations.mk