Package: newt Version: 0.52.2-11.1 Severity: normal Tags: patch Hi,
Here's a patch to make this package able to be properly cross built, and adds support for kfreebsd (for the libc-dev dependency). regards, guillem
diff --git a/debian/rules b/debian/rules index 7dd7c5d..ecdc863 100755 --- a/debian/rules +++ b/debian/rules @@ -9,9 +9,6 @@ # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 -DEB_BUILD_GNU_SYSTEM = $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM) -DEB_BUILD_GNU_CPU = $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) - VERSION=0.52.2 SONAME=0.52 PYVERS=$(shell pyversions -vr debian/control) @@ -30,10 +27,12 @@ export DH_COMPAT=5 TAR_DIR=newt-$(VERSION) include /usr/share/dbs/dbs-build.mk -ifeq (,$(DEB_BUILD_GNU_TYPE)) +ifeq (,$(DEB_HOST_ARCH_OS)) include /usr/share/dbs/dpkg-arch.mk endif -ARCH=$(shell dpkg --print-architecture) + +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) +DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU) # get the items created here. binarytarget=binary-devel binary-shared binary-runtime binary-tcl \ @@ -43,21 +42,25 @@ binarytarget=binary-devel binary-shared binary-runtime binary-tcl \ LIBCDEV=libc-dev GPMSUPPORT= -ifneq (,$(findstring linux,$(DEB_BUILD_GNU_SYSTEM))) +ifeq ($(DEB_HOST_ARCH_OS),linux) GPMSUPPORT= --with-gpm-support LIBCDEV=libc6-dev -ifeq ($(DEB_BUILD_GNU_CPU),alpha) +ifeq ($(DEB_HOST_ARCH_CPU),alpha) LIBCDEV=libc6.1-dev endif -ifeq ($(DEB_BUILD_GNU_CPU),ia64) +ifeq ($(DEB_HOST_ARCH_CPU),ia64) LIBCDEV=libc6.1-dev endif endif -ifeq ($(DEB_BUILD_GNU_SYSTEM),gnu) +ifeq ($(DEB_HOST_ARCH_OS),hurd) LIBCDEV=libc0.3-dev endif +ifeq ($(DEB_HOST_ARCH_OS),kfreebsd) +LIBCDEV=libc0.1-dev +endif + ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) NOSTRIP=--with-nostrip=no else

