diff -Nru graphite2-1.2.4/debian/changelog graphite2-1.2.4/debian/changelog --- graphite2-1.2.4/debian/changelog 2013-11-29 19:12:43.000000000 +0000 +++ graphite2-1.2.4/debian/changelog 2013-12-06 13:24:14.000000000 +0000 @@ -1,3 +1,9 @@ +graphite2 (1.2.4-1ubuntu1) trusty; urgency=low + + * Allow the package to cross build. + + -- Matthias Klose Fri, 06 Dec 2013 14:23:52 +0100 + graphite2 (1.2.4-1) unstable; urgency=low * New upstream release diff -Nru graphite2-1.2.4/debian/rules graphite2-1.2.4/debian/rules --- graphite2-1.2.4/debian/rules 2013-06-02 12:07:03.000000000 +0000 +++ graphite2-1.2.4/debian/rules 2013-12-06 13:27:31.000000000 +0000 @@ -2,6 +2,11 @@ include /usr/share/dpkg/architecture.mk +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + cross_defines = \ + -DCMAKE_TOOLCHAIN_FILE=$(wildcard /usr/share/cmake-*/Modules/MultiArchCross.cmake) +endif + %: dh $@ --builddirectory=build @@ -53,7 +58,7 @@ dh_auto_clean override_dh_auto_configure: - dh_auto_configure -- -DCMAKE_BUILD_TYPE:STRING=Release -DGRAPHITE2_NTRACING:bool=1 -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) + dh_auto_configure -- -DCMAKE_BUILD_TYPE:STRING=Release -DGRAPHITE2_NTRACING:bool=1 -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) $(cross_defines) find . -type f ! -name "rules" ! -name "changelog" \ -exec sed -i -e 's/\-O3//g' {} \;