summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortv <tv>2004-10-11 18:02:59 +0000
committertv <tv>2004-10-11 18:02:59 +0000
commitbbe2a174307976e3a565623d40a6360bfdefd977 (patch)
tree0b8259796073edf2258226e49b45ba54421fe234
parent6c1fd29705d75f6cc878bfe9e5e4d16d1f58952e (diff)
downloadpkgsrc-bbe2a174307976e3a565623d40a6360bfdefd977.tar.gz
Allow this to build on Interix in client-only mode.
-rw-r--r--audio/esound/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/audio/esound/Makefile b/audio/esound/Makefile
index 03db196fb45..35941c0335c 100644
--- a/audio/esound/Makefile
+++ b/audio/esound/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2004/10/03 00:13:05 tv Exp $
+# $NetBSD: Makefile,v 1.54 2004/10/11 18:02:59 tv Exp $
DISTNAME= esound-0.2.35
PKGREVISION= 1
@@ -19,7 +19,6 @@ PKGCONFIG_OVERRIDE= esound.pc.in
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
-MAKE_ENV+= AM_CPPFLAGS='-DDEV_DSP=\"${DEVOSSAUDIO}\"'
BUILD_DEFS+= USE_INET6
@@ -34,11 +33,18 @@ CONFIGURE_ARGS+= --enable-ipv6
CONFIGURE_ARGS+= --disable-ipv6
.endif
+.if ${OPSYS} == "Interix"
+# no sound output device, but can support a remote esound server
+CONFIGURE_ARGS+= --disable-local-sound
+.else
+.include "../../mk/ossaudio.buildlink3.mk"
+MAKE_ENV+= AM_CPPFLAGS='-DDEV_DSP=\"${DEVOSSAUDIO}\"'
SUBST_CLASSES= oss
SUBST_STAGE.oss= post-patch
SUBST_FILES.oss= configure
SUBST_SED.oss= -e 's,-lossaudio,${LIBOSSAUDIO},g'
SUBST_MESSAGE.oss= "Fixing oss."
+.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/esound
@@ -46,6 +52,4 @@ post-install:
${PAX} -rw -pp -pm . ${PREFIX}/share/doc/html/esound
.include "../../audio/libaudiofile/buildlink3.mk"
-.include "../../mk/ossaudio.buildlink3.mk"
-
.include "../../mk/bsd.pkg.mk"