Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2014 15:11:01 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r352010 - head/net/openh323
Message-ID:  <201404241511.s3OFB15B087362@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Apr 24 15:11:01 2014
New Revision: 352010
URL: http://svnweb.freebsd.org/changeset/ports/352010
QAT: https://qat.redports.org/buildarchive/r352010/

Log:
  - Optionize

Modified:
  head/net/openh323/Makefile

Modified: head/net/openh323/Makefile
==============================================================================
--- head/net/openh323/Makefile	Thu Apr 24 15:01:05 2014	(r352009)
+++ head/net/openh323/Makefile	Thu Apr 24 15:11:01 2014	(r352010)
@@ -29,19 +29,15 @@ CPPFLAGS+=	-I${LOCALBASE}/include -I${WR
 LDFLAGS+=	-L${LOCALBASE}/lib
 MAKE_ENV=	BUILDTIME="YES"
 
-.include <bsd.port.pre.mk>
-
-.ifdef (WITH_FFMPEG)
-LIB_DEPENDS+=	libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
-CONFIGURE_ARGS+=	--enable-rfc2190avcodec=${LOCALBASE}/include/ffmpeg
-.endif
+OPTIONS_DEFINE=		FFMPEG SPEEX
+FFMPEG_LIB_DEPENDS=	libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
+FFMPEG_CONFIGURE_ON=	--enable-rfc2190avcodec=${LOCALBASE}/include/ffmpeg
+
+SPEEX_LIB_DEPENDS=	libspeex.so:${PORTSDIR}/audio/speex
+SPEEX_CONFIGURE_ON=	--enable-localspeex=no
+SPEEX_CONFIGURE_OFF=	--enable-localspeex=yes
 
-.ifdef (WITH_SPEEX)
-LIB_DEPENDS+=	libspeex.so:${PORTSDIR}/audio/speex
-CONFIGURE_ARGS+=	--enable-localspeex=no
-.else
-CONFIGURE_ARGS+=	--enable-localspeex=yes
-.endif
+.include <bsd.port.pre.mk>
 
 .if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "powerpc") || (${ARCH} == "sparc64")
 CFLAGS+=	-fPIC



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