diff -Nru nux-2.10.0/debian/rules nux-2.10.0/debian/rules --- nux-2.10.0/debian/rules 2012-04-23 15:10:41.000000000 +0300 +++ nux-2.10.0/debian/rules 2012-04-23 15:10:42.000000000 +0300 @@ -4,6 +4,8 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) gles2_architectures := armel armhf %: @@ -12,13 +14,19 @@ # build documentation as I didn't find a proper way to avoid make clean to not # remove doc/ override_dh_auto_configure: +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + export PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config +endif ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures))) - dh_auto_configure -- --enable-documentation=no --enable-opengles-20 + dh_auto_configure -- --enable-documentation=no --enable-opengles-20 --disable-tests else dh_auto_configure -- --enable-documentation=no endif NUX_ABIVERSION := $(shell sed -rn 's/^\#define[[:space:]]+NUX_ABIVERSION[[:space:]]+//p' Nux/ABI.h ) +override_dh_auto_build: + dh_auto_build --parallel + override_dh_install: rm debian/tmp/usr/lib/*la rm -rf debian/tmp/usr/share/nux/gputests/