summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-09-13 12:56:49 +0000
committerbapt <bapt@FreeBSD.org>2015-09-13 12:56:49 +0000
commit1f720532a4297e8b8d7aa1c1a6df425746d30a0a (patch)
treede62a2219ed836f0154fa2a41046cbd129b1f8d7
parentc2b58757e589589dd8e1b77399a7cdbb1a71ac0d (diff)
downloadFreeBSD-ports-1f720532a4297e8b8d7aa1c1a6df425746d30a0a.zip
FreeBSD-ports-1f720532a4297e8b8d7aa1c1a6df425746d30a0a.tar.gz
Convert the automatically discovered esound into a proper option
Approved by: novel (maintainer)
-rw-r--r--audio/mp3blaster/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/audio/mp3blaster/Makefile b/audio/mp3blaster/Makefile
index 25ec6d9..366841a 100644
--- a/audio/mp3blaster/Makefile
+++ b/audio/mp3blaster/Makefile
@@ -18,7 +18,7 @@ CONFIGURE_ARGS= --with-cxxflags="${CXXFLAGS}"
CPPFLAGS+= -I${LOCALBASE}/include -DHAVE_DECL_GETOPT
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
-OPTIONS_DEFINE= LIRC SIDPLAY VORBIS DOCS
+OPTIONS_DEFINE= LIRC SIDPLAY VORBIS DOCS ESOUND
OPTIONS_DEFAULT= SIDPLAY VORBIS
SIDPLAY_DESC= Sidplayer support
@@ -40,13 +40,8 @@ NAS_CONFIGURE_WITH= nas
NAS_LIB_DEPENDS= libaudio.so:${PORTSDIR}/audio/nas
NAS_LDFLAGS= -laudio
-.include <bsd.port.pre.mk>
-.if ${HAVE_GNOME:Mesound} != ""
-USE_GNOME+= esound
-CONFIGURE_ARGS+= --with-esd
-.else
-CONFIGURE_ARGS+= --without-esd
-.endif
+ESOUND_CONFIGURE_WITH= esd
+ESOUND_GNOME= esound
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/share/mp3blaster/win2koi.tbl|${DATADIR}/charmap/win2koi.tbl|' \
@@ -58,4 +53,4 @@ post-install-DOCS-on:
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud