aboutsummaryrefslogtreecommitdiff
path: root/audio/xmp
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2001-04-17 11:02:01 +0000
committerPeter Pentchev <roam@FreeBSD.org>2001-04-17 11:02:01 +0000
commit76fa7f79dde3bd6ddbb53504c9d59357e982cea4 (patch)
tree8f414c2f5015664f12a39a16c0a9908143031056 /audio/xmp
parent7fde4254baa64fded7d361f82d9aa047a55008f9 (diff)
downloadports-76fa7f79dde3bd6ddbb53504c9d59357e982cea4.tar.gz
ports-76fa7f79dde3bd6ddbb53504c9d59357e982cea4.zip
Notes
Diffstat (limited to 'audio/xmp')
-rw-r--r--audio/xmp/Makefile15
-rw-r--r--audio/xmp/files/patch-configure.in31
2 files changed, 45 insertions, 1 deletions
diff --git a/audio/xmp/Makefile b/audio/xmp/Makefile
index bdb20495c93b..ae71402bb9be 100644
--- a/audio/xmp/Makefile
+++ b/audio/xmp/Makefile
@@ -19,6 +19,19 @@ USE_XLIB= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-alsa
+CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" CFLAGS="-I${LOCALBASE}/include"
+USE_AUTOCONF= yes
+WANT_ESOUND= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500013
+USE_ESOUND= yes
+CONFIGURE_ARGS+= --disable-oss --enable-esd
+.elif defined(HAVE_ESOUND)
+USE_ESOUND= yes
+CONFIGURE_ARGS+= --enable-esd
+.endif
MAN1= xmp.1
MLINKS= xmp.1 xxmp.1
@@ -26,4 +39,4 @@ MLINKS= xmp.1 xxmp.1
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/docs/xmp.1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/audio/xmp/files/patch-configure.in b/audio/xmp/files/patch-configure.in
new file mode 100644
index 000000000000..783105abe24f
--- /dev/null
+++ b/audio/xmp/files/patch-configure.in
@@ -0,0 +1,31 @@
+--- configure.in.orig Sat Jan 20 02:06:28 2001
++++ configure.in Sun Apr 8 11:32:48 2001
+@@ -142,7 +142,7 @@
+ sys/soundcard.h machine/soundcard.h \
+ sys/ultrasound.h linux/ultrasound.h machine/ultrasound.h \
+ awe_voice.h sys/awe_voice.h linux/awe_voice.h \
+- sys/asoundlib.h esd.h)
++ sys/asoundlib.h)
+
+ dnl -----------------------------------------------------------------------
+ dnl Check OS/architecture independent drivers
+@@ -173,15 +173,10 @@
+ fi])
+ fi
+
+-if test "${ac_cv_header_esd_h}" = "yes"; then
+- AC_CHECK_LIB(esd, esd_play_stream, [
+- if test "${enable_esd}" != no; then
+- if test "${enable_dynamic}" != "yes"; then
+- LIBS="${LIBS} -lesd"
+- fi
+- DRIVERS="${DRIVERS} esd.o"
+- AC_DEFINE(DRIVER_ESD)
+- fi])
++if test "$enable_esd" = yes; then
++ AC_CHECK_LIB(esd, esd_play_stream)
++ DRIVERS="${DRIVERS} esd.o"
++ AC_DEFINE(DRIVER_ESD)
+ fi
+
+ dnl -----------------------------------------------------------------------