Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2015 13:16:06 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380001 - head/audio/bcg729
Message-ID:  <201502261316.t1QDG6xW089270@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Thu Feb 26 13:16:05 2015
New Revision: 380001
URL: https://svnweb.freebsd.org/changeset/ports/380001
QAT: https://qat.redports.org/buildarchive/r380001/

Log:
  Add option to control dependency on mediastreamer, tuned on by default.

Modified:
  head/audio/bcg729/Makefile
  head/audio/bcg729/pkg-plist

Modified: head/audio/bcg729/Makefile
==============================================================================
--- head/audio/bcg729/Makefile	Thu Feb 26 13:10:09 2015	(r380000)
+++ head/audio/bcg729/Makefile	Thu Feb 26 13:16:05 2015	(r380001)
@@ -13,13 +13,29 @@ COMMENT=	Software G729A encoder and deco
 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>

Modified: head/audio/bcg729/pkg-plist
==============================================================================
--- head/audio/bcg729/pkg-plist	Thu Feb 26 13:10:09 2015	(r380000)
+++ head/audio/bcg729/pkg-plist	Thu Feb 26 13:16:05 2015	(r380001)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502261316.t1QDG6xW089270>