summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/herrie/files/herrie-chost_issue.patch')
-rw-r--r--media-sound/herrie/files/herrie-chost_issue.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/media-sound/herrie/files/herrie-chost_issue.patch b/media-sound/herrie/files/herrie-chost_issue.patch
new file mode 100644
index 000000000000..1949972baa6a
--- /dev/null
+++ b/media-sound/herrie/files/herrie-chost_issue.patch
@@ -0,0 +1,29 @@
+This patch sets the OS variable according to the CHOST given by the environment,
+thus enabling cross-compilation.
+
+Index: herrie-1.8/configure
+===================================================================
+--- herrie-1.8.orig/configure
++++ herrie-1.8/configure
+@@ -50,6 +50,21 @@ CFG_VORBIS=yes
+ CFG_XSPF=yes
+ DOIT=@
+
++case "$CHOST" in
++ *-darwin*)
++ OS=Darwin
++ ;;
++ *-linux*)
++ OS=Linux
++ ;;
++ *-freebsd*)
++ OS=FreeBSD
++ ;;
++ *-solaris*)
++ OS=SunOS
++ ;;
++esac
++
+ # Operating system defaults
+ [ "$OS" != "" ] || OS=`uname`
+ case $OS in