aboutsummaryrefslogtreecommitdiff
path: root/audio/bcg729
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2015-02-26 13:16:05 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2015-02-26 13:16:05 +0000
commite9c4d8716b871480f1a2a9dfe725841379614075 (patch)
tree249c70386caaec6124fbb1845eabdfeae7f82c25 /audio/bcg729
parent845d5a579157ab2442e6815869e5ddec29696290 (diff)
downloadports-e9c4d8716b871480f1a2a9dfe725841379614075.tar.gz
ports-e9c4d8716b871480f1a2a9dfe725841379614075.zip
Notes
Diffstat (limited to 'audio/bcg729')
-rw-r--r--audio/bcg729/Makefile22
-rw-r--r--audio/bcg729/pkg-plist8
2 files changed, 23 insertions, 7 deletions
diff --git a/audio/bcg729/Makefile b/audio/bcg729/Makefile
index a292104de7ce..5938a3951e30 100644
--- a/audio/bcg729/Makefile
+++ b/audio/bcg729/Makefile
@@ -13,13 +13,29 @@ COMMENT= Software G729A encoder and decoder library written in C
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= libmediastreamer_base.so:${PORTSDIR}/net/mediastreamer \
- libortp.so:${PORTSDIR}/net/ortp
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-strict
INSTALL_TARGET= install-strip
USES= libtool pathfix pkgconfig
USE_LDCONFIG= yes
+OPTIONS_DEFINE= MEDIASTREAMER
+OPTIONS_DEFAULT= MEDIASTREAMER
+
+MEDIASTREAMER_DESC= Mediastreamer(linphone) support
+
+OPTIONS_SUB= yes
+MEDIASTREAMER_LIB_DEPENDS= libortp.so:${PORTSDIR}/net/ortp \
+ libmediastreamer_base.so:${PORTSDIR}/net/mediastreamer
+
+.include <bsd.port.options.mk>
+
+.if ! ${PORT_OPTIONS:MMEDIASTREAMER}
+# If the option is disabled, force it to not build mediastreamer interface even if
+# configure found the needed dependencies
+pre-configure:
+ @${REINPLACE_CMD} -e '/^@BUILD_MSBCG729_TRUE@/d' \
+ ${WRKSRC}/Makefile.in
+.endif
+
.include <bsd.port.mk>
diff --git a/audio/bcg729/pkg-plist b/audio/bcg729/pkg-plist
index 2f6097ae673e..462ba016d067 100644
--- a/audio/bcg729/pkg-plist
+++ b/audio/bcg729/pkg-plist
@@ -4,8 +4,8 @@ lib/libbcg729.a
lib/libbcg729.so
lib/libbcg729.so.0
lib/libbcg729.so.0.0.0
-lib/mediastreamer/plugins/libmsbcg729.a
-lib/mediastreamer/plugins/libmsbcg729.so
-lib/mediastreamer/plugins/libmsbcg729.so.0
-lib/mediastreamer/plugins/libmsbcg729.so.0.0.0
+%%MEDIASTREAMER%%lib/mediastreamer/plugins/libmsbcg729.a
+%%MEDIASTREAMER%%lib/mediastreamer/plugins/libmsbcg729.so
+%%MEDIASTREAMER%%lib/mediastreamer/plugins/libmsbcg729.so.0
+%%MEDIASTREAMER%%lib/mediastreamer/plugins/libmsbcg729.so.0.0.0
libdata/pkgconfig/libbcg729.pc