Package: esound Version: 0.2.36-3 Severity: wishlist Tags: patch User: [EMAIL PROTECTED] Usertags: crossbuilt
In line with the other cross-building support bugs: http://lists.debian.org/debian-devel/2007/11/msg00116.html This patch is necessary to allow esound to cross-build in Debian and follows advice from autotools-dev to ensure that --build is used for native builds. Thanks. *** ../crossbuild.diff --- esound-0.2.36.debian/debian/rules +++ esound-0.2.36.emdebian/debian/rules @@ -1,5 +1,12 @@ #!/usr/bin/make -f +DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif DEB_BUILD_ARCH:=$(shell dpkg --print-installation-architecture) INSTALL:=$(shell pwd)/debian/tmp @@ -25,7 +32,7 @@ build-debstamp: dh_testdir mkdir build-normal - cd build-normal && CFLAGS="-O2" ../configure --prefix=/usr --sysconfdir=/etc/esound --disable-dependency-tracking --with-tags= --disable-alsa --with-libwrap $(CONFIG_OPTS) + cd build-normal && CFLAGS="-O2" ../configure $(CROSS) --prefix=/usr --sysconfdir=/etc/esound --disable-dependency-tracking --with-tags= --disable-alsa --with-libwrap $(CONFIG_OPTS) $(MAKE) -C build-normal all (cd docs && for i in *.pod; do pod2man --center="Debian GNU/Linux" --release="etch" $$i > `basename $$i .pod`.1; done) touch $@ @@ -33,7 +40,7 @@ build-alsa-debstamp: dh_testdir mkdir build-alsa - cd build-alsa && CFLAGS="-O2" ../configure --prefix=/usr --sysconfdir=/etc/esound --enable-alsa --disable-dependency-tracking --with-tags= --with-libwrap + cd build-alsa && CFLAGS="-O2" ../configure $(CROSS) --prefix=/usr --sysconfdir=/etc/esound --enable-alsa --disable-dependency-tracking --with-tags= --with-libwrap $(MAKE) -C build-alsa esd-config libesd.la touch $@ -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages esound depends on: ii esound-common 0.2.36-3 Enlightened Sound Daemon - Common ii libaudiofile0 0.2.6-7 Open-source version of SGI's audio ii libc6 2.7-6 GNU C Library: Shared libraries ii libesd0 0.2.36-3 Enlightened Sound Daemon - Shared ii libwrap0 7.6.dbs-14 Wietse Venema's TCP wrappers libra esound recommends no packages. -- no debconf information
signature.asc
Description: Digital signature

