diff options
author | roam <roam@FreeBSD.org> | 2001-04-17 11:02:01 +0000 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2001-04-17 11:02:01 +0000 |
commit | 56d079e788912dad3f272c39fe6df88e7a0169b0 (patch) | |
tree | dca0bcfd3c6cc3f88dbdea4fbd5614ea1da8f476 /audio/xmp | |
parent | d00ab0103e1a7e456bf7093d94a59a9fb43119e2 (diff) | |
download | FreeBSD-ports-56d079e788912dad3f272c39fe6df88e7a0169b0.zip FreeBSD-ports-56d079e788912dad3f272c39fe6df88e7a0169b0.tar.gz |
Fix build.
PR: 26439
Submitted by: maintainer
Diffstat (limited to 'audio/xmp')
-rw-r--r-- | audio/xmp/Makefile | 15 | ||||
-rw-r--r-- | audio/xmp/files/patch-configure.in | 31 |
2 files changed, 45 insertions, 1 deletions
diff --git a/audio/xmp/Makefile b/audio/xmp/Makefile index bdb2049..ae71402 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 0000000..783105a --- /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 ----------------------------------------------------------------------- |