Package: psemu-sound-peops
Severity: important
Tags: patch
Hi,
psemu-sound-peops fails to build on GNU/kFreeBSD because there is no
alsa on this platform (it is linux specific). Please find attached a
patch to not build-depends on libasound2-dev and to not build the -alsa
package on this platform.
It would be nice if you could add it in the next upload.
Thanks in advance,
Aurelien
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Author: aurel32
Status: in BTS
diff -u psemu-sound-peops-1.7/debian/control
psemu-sound-peops-1.7/debian/control
--- psemu-sound-peops-1.7/debian/control
+++ psemu-sound-peops-1.7/debian/control
@@ -2,7 +2,7 @@
Section: games
Priority: optional
Maintainer: Ryan Schultz <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.0.0), libgtk1.2-dev | libgtk-dev, libasound2-dev
+Build-Depends: debhelper (>= 4.0.0), libgtk1.2-dev | libgtk-dev,
libasound2-dev [!kfreebsd-i386]
Standards-Version: 3.6.2
Package: psemu-sound-oss
diff -u psemu-sound-peops-1.7/debian/rules psemu-sound-peops-1.7/debian/rules
--- psemu-sound-peops-1.7/debian/rules
+++ psemu-sound-peops-1.7/debian/rules
@@ -3,6 +3,7 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
configure: configure-stamp
configure-stamp:
@@ -20,7 +21,11 @@
# Add here commands to compile the package.
$(MAKE) -C src
$(MAKE) -C src clean
+ifeq (linux,$(DEB_HOST_ARCH_OS))
$(MAKE) -C src USEALSA=TRUE
+else
+ $(MAKE) -C src USEALSA=FALSE
+endif
$(MAKE) -C src/spucfg-0.1df/src
touch build-stamp
@@ -45,8 +50,10 @@
install -D --mode 0644 src/libspuPeopsOSS.so.1.0.7 \
debian/psemu-sound-oss/usr/lib/games/psemu/lib/libspuPeopsOSS.so.1.0.7
+ifeq (linux,$(DEB_HOST_ARCH_OS))
install -D --mode 0644 src/libspuPeopsALSA.so.1.0.7 \
debian/psemu-sound-alsa/usr/lib/games/psemu/lib/libspuPeopsALSA.so.1.0.7
+endif
install -D --mode 0755 src/spucfg-0.1df/src/cfgPeopsOSS \
debian/psemu-sound-oss/usr/lib/games/psemu/config/cfgPeopsOSS
@@ -67,9 +74,14 @@
dh_fixperms
dh_installdeb
dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ dh_gencontrol -ppsemu-sound-oss
+ dh_md5sums -ppsemu-sound-oss
+ dh_builddeb -ppsemu-sound-oss
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+ dh_gencontrol -ppsemu-sound-alsa
+ dh_md5sums -ppsemu-sound-alsa
+ dh_builddeb -ppsemu-sound-alsa
+endif
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure