diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2017-07-02 22:21:23 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2017-07-02 22:21:23 +0800 |
commit | 6ca743fb2f06f27c7001511ed4b0d112697919a9 (patch) | |
tree | c6a294ba176f41a2b6075b65357429d816ec9652 /audio/xmp | |
parent | 1069a1ebcade48bf9e7e551bc9d8a2a12bfaffb5 (diff) | |
download | freebsd-ports-gnome-6ca743fb2f06f27c7001511ed4b0d112697919a9.tar.gz freebsd-ports-gnome-6ca743fb2f06f27c7001511ed4b0d112697919a9.tar.zst freebsd-ports-gnome-6ca743fb2f06f27c7001511ed4b0d112697919a9.zip |
- Add option to enable the sndio backend
- Add new OSS default option to be able to turn off the OSS backend
- Use localbase USES flag
PR: 220265
Submitted by: tobik
Diffstat (limited to 'audio/xmp')
-rw-r--r-- | audio/xmp/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/audio/xmp/Makefile b/audio/xmp/Makefile index 5e640d72be76..35d8993b8f44 100644 --- a/audio/xmp/Makefile +++ b/audio/xmp/Makefile @@ -3,6 +3,7 @@ PORTNAME= xmp PORTVERSION= 4.1.0 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= audio MASTER_SITES= SF @@ -14,29 +15,34 @@ LICENSE= GPLv2 LIB_DEPENDS= libxmp.so:audio/libxmp -USES= pkgconfig gmake +USES= gmake localbase:ldflags pkgconfig WANT_GNOME= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - CONFIG_FILES= xmp.conf modules.conf -OPTIONS_DEFINE= ALSA PULSEAUDIO +OPTIONS_DEFAULT= OSS +OPTIONS_DEFINE= ALSA OSS PULSEAUDIO SNDIO ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins ALSA_CONFIGURE_ENABLE= alsa +OSS_CONFIGURE_ENABLE= oss + PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio PULSEAUDIO_CONFIGURE_ENABLE= pulseaudio +SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio + post-patch: @${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in +post-patch-SNDIO-on: + @${REINPLACE_CMD} -e 's|openbsd\*)|\*)|' ${WRKSRC}/configure + post-install: @${MKDIR} ${STAGEDIR}${ETCDIR} .for f in ${CONFIG_FILES} |