aboutsummaryrefslogtreecommitdiff
path: root/audio/alsa-plugins/Makefile
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-08-09 15:20:35 +0000
committerJohn Marino <marino@FreeBSD.org>2014-08-09 15:20:35 +0000
commit46b7762a82cdc0c94eeafd3a686bad427433ccb4 (patch)
treee69277546fcd8c9ef3f433ee70374b1ae0d9db62 /audio/alsa-plugins/Makefile
parentc9c0fba3555ebe2bc14b5a4b9a85b7922a1c5083 (diff)
downloadports-46b7762a82cdc0c94eeafd3a686bad427433ccb4.tar.gz
ports-46b7762a82cdc0c94eeafd3a686bad427433ccb4.zip
Notes
Diffstat (limited to 'audio/alsa-plugins/Makefile')
-rw-r--r--audio/alsa-plugins/Makefile79
1 files changed, 28 insertions, 51 deletions
diff --git a/audio/alsa-plugins/Makefile b/audio/alsa-plugins/Makefile
index 613aab2c828f..807cad449d66 100644
--- a/audio/alsa-plugins/Makefile
+++ b/audio/alsa-plugins/Makefile
@@ -2,86 +2,63 @@
# $FreeBSD$
PORTNAME= alsa-plugins
-PORTVERSION= 1.0.27
-PORTREVISION= 3
+PORTVERSION= 1.0.28
CATEGORIES= audio
MASTER_SITES= ALSA/plugins \
GENTOO/distfiles
-MAINTAINER= aragon@phat.za.net
+MAINTAINER= jbeich@vfemail.net
COMMENT= ALSA compatibility library plugins
+LICENSE= LGPL21 # or any later version
+
LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
GNU_CONFIGURE= yes
USES= tar:bzip2 pkgconfig libtool:keepla
-LDFLAGS+= -L${LOCALBASE}/lib
EXTRA_PATCHES+= ${FILESDIR}/alsa-plugins.patch
+INSTALL_TARGET= install-strip
+CPPFLAGS+= -I${.CURDIR}/../alsa-lib/files
+LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFAULT=BUFSZ_P2 IO_PTR
OPTIONS_DEFINE= JACK FFMPEG PULSEAUDIO SAMPLERATE SPEEX
-OPTIONS_SUB= ${OPTIONS_DEFINE}
+OPTIONS_SUB= yes
OPTIONS_GROUP= OSS
OPTIONS_GROUP_OSS=IO_PTR BLKCNT_P2 BUFSZ_P2 VERBOSE
IO_PTR_DESC= Precise playback/recording pointer
BLKCNT_P2_DESC= Restrict number of fragments to ^2 aligned
-BUFSZ_P2_DESC= Restrict buffer size to ^2 aligned (breaks aplay)
+BUFSZ_P2_DESC= Restrict buffer size to ^2 aligned
VERBOSE_DESC= Print debugging messages
-.include <bsd.port.options.mk>
+IO_PTR_CFLAGS= -DFREEBSD_OSS_USE_IO_PTR
+BLKCNT_P2_CFLAGS=-DFREEBSD_OSS_BLKCNT_P2
+BUFSZ_P2_CFLAGS=-DFREEBSD_OSS_BUFSZ_P2
+VERBOSE_CFLAGS= -DFREEBSD_OSS_DEBUG_VERBOSE
-.if ${PORT_OPTIONS:MIO_PTR}
-CFLAGS+= -DFREEBSD_OSS_USE_IO_PTR
-.endif
-
-.if ${PORT_OPTIONS:MBLKCNT_P2}
-CFLAGS+= -DFREEBSD_OSS_BLKCNT_P2
-.endif
-
-.if ${PORT_OPTIONS:MBUFSZ_P2}
-CFLAGS+= -DFREEBSD_OSS_BUFSZ_P2
-.endif
+JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
+JACK_CONFIGURE_ENABLE= jack
-.if ${PORT_OPTIONS:MVERBOSE}
-CFLAGS+= -DFREEBSD_OSS_DEBUG_VERBOSE
-.endif
+FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
+FFMPEG_CONFIGURE_ENABLE=avcodec
+FFMPEG_CPPFLAGS= -I${LOCALBASE}/include
-.if ${PORT_OPTIONS:MJACK}
-.if empty(PORT_OPTIONS:MSAMPLERATE)
-IGNORE= JACK audio support requires SAMPLERATE
-.endif
-LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack
-.else
-CONFIGURE_ARGS+= --disable-jack
-.endif
+PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
+PULSEAUDIO_CONFIGURE_ENABLE=pulseaudio
-.if ${PORT_OPTIONS:MFFMPEG}
-CONFIGURE_ARGS+= --enable-avcodec
-CFLAGS+= -I${LOCALBASE}/include
-LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
-.else
-CONFIGURE_ARGS+= --disable-avcodec
-.endif
+SAMPLERATE_LIB_DEPENDS= libsamplerate.so:${PORTSDIR}/audio/libsamplerate
+SAMPLERATE_CONFIGURE_ENABLE=samplerate
-.if ${PORT_OPTIONS:MPULSEAUDIO}
-LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio
-.else
-CONFIGURE_ARGS+= --disable-pulseaudio
-.endif
+SPEEX_LIB_DEPENDS= libspeex.so:${PORTSDIR}/audio/speex
+SPEEX_CONFIGURE_ON= --with-speex=lib
+SPEEX_CONFIGURE_OFF= --without-speex
-.if ${PORT_OPTIONS:MSAMPLERATE}
-LIB_DEPENDS+= libsamplerate.so:${PORTSDIR}/audio/libsamplerate
-.else
-CONFIGURE_ARGS+= --disable-samplerate
-.endif
+.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MSPEEX}
-CONFIGURE_ARGS+= --with-speex=lib
-LIB_DEPENDS+= libspeex.so:${PORTSDIR}/audio/speex
-.else
-CONFIGURE_ARGS+= --without-speex
+.if ${PORT_OPTIONS:MJACK} && empty(PORT_OPTIONS:MSAMPLERATE)
+IGNORE= JACK audio support requires SAMPLERATE
.endif
post-patch: .SILENT