summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-04-03 18:31:22 +0000
committerjschauma <jschauma@pkgsrc.org>2003-04-03 18:31:22 +0000
commit83f1baca862fb183f003a20b3aa6127b49f463cc (patch)
tree16bd29cbca60e6caf58404cccec71eb219900a21 /audio
parentd2d5b6a324cd0cae303fe04293482d64bad13b26 (diff)
downloadpkgsrc-83f1baca862fb183f003a20b3aa6127b49f463cc.tar.gz
Make this compile on Linux. Only tested on i386, but should work
on linux-sparc, linux-alpha, linux-ppc etc. assuming the target is correct.
Diffstat (limited to 'audio')
-rw-r--r--audio/mpg123/Makefile.common44
1 files changed, 26 insertions, 18 deletions
diff --git a/audio/mpg123/Makefile.common b/audio/mpg123/Makefile.common
index 3cce54cae8f..53b61e55a99 100644
--- a/audio/mpg123/Makefile.common
+++ b/audio/mpg123/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2003/03/13 03:07:02 jschauma Exp $ -*- Makefile -*-
+# $NetBSD: Makefile.common,v 1.4 2003/04/03 18:31:22 jschauma Exp $ -*- Makefile -*-
DISTNAME= mpg123-0.59r
MPG123_VERSION= 0.59.18
CATEGORIES= audio
@@ -21,29 +21,37 @@ USE_BUILDLINK2= # defined
# for OBJECT_FMT
.include "../../mk/bsd.prefs.mk"
-.if (${MACHINE_ARCH} == "i386")
-. if (${OBJECT_FMT} == "ELF")
-ALL_TARGET= netbsd-i386-elf${TARGET_SUFFIX}
+.if ${OPSYS} == "SunOS"
+ALL_TARGET= solaris-gcc${TARGET_SUFFIX}
+.elif ${OPSYS} == "IRIX"
+ALL_TARGET= sgi
+.elif ${OPSYS} == "Linux"
+. if (${MACHINE_ARCH} == "i386")
+ALL_TARGET= linux
+. elif (${MACHINE_ARCH} == "powerpc")
+ALL_TARGET= linux-ppc
. else
+ALL_TARGET= ${LOWER_OPSYS}-${MACHINE_ARCH}
+. endif
+.else
+. if (${MACHINE_ARCH} == "i386")
+. if (${OBJECT_FMT} == "ELF")
+ALL_TARGET= netbsd-i386-elf${TARGET_SUFFIX}
+. else
ALL_TARGET= netbsd-i386${TARGET_SUFFIX}
-. endif # ELF
-.elif (${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32")
-. if defined(MPG123_ARM_FIXED64) && ${MPG123_ARM_FIXED64} == "YES"
+. endif # ELF
+. elif (${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32")
+. if defined(MPG123_ARM_FIXED64) && ${MPG123_ARM_FIXED64} == "YES"
ALL_TARGET= netbsd-arm-64${TARGET_SUFFIX}
-. else
+. else
ALL_TARGET= netbsd-arm${TARGET_SUFFIX}
-. endif # MPG123_ARM_FIXED64
-.elif (${MACHINE_ARCH} == "m68k")
+. endif # MPG123_ARM_FIXED64
+. elif (${MACHINE_ARCH} == "m68k")
ALL_TARGET= netbsd-m68k${TARGET_SUFFIX}
-.else
+. else
ALL_TARGET= ${LOWER_OPSYS}${TARGET_SUFFIX}
-.endif
-
-.if ${OPSYS} == "SunOS"
-ALL_TARGET= solaris-gcc${TARGET_SUFFIX}
-.elif ${OPSYS} == "IRIX"
-ALL_TARGET= sgi
-.endif
+. endif # MACHINE_ARCH
+.endif # OPSYS
.if defined(USE_INET6) && ${USE_INET6} == "YES"
CPPFLAGS+= -DINET6