aboutsummaryrefslogtreecommitdiffstats
path: root/net/openh323
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-04-24 23:11:01 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-04-24 23:11:01 +0800
commitf99a0608c5978db0897e2a50dbb43d035ec265e9 (patch)
treed12107691b3d13e7e44a8c00b16cef0b6a678714 /net/openh323
parentb8fe4b0c3b65f135236ecb3cd6994dc772127014 (diff)
downloadfreebsd-ports-gnome-f99a0608c5978db0897e2a50dbb43d035ec265e9.tar.gz
freebsd-ports-gnome-f99a0608c5978db0897e2a50dbb43d035ec265e9.tar.zst
freebsd-ports-gnome-f99a0608c5978db0897e2a50dbb43d035ec265e9.zip
- Optionize
Diffstat (limited to 'net/openh323')
-rw-r--r--net/openh323/Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/net/openh323/Makefile b/net/openh323/Makefile
index 7a6091918561..57767dc77f83 100644
--- a/net/openh323/Makefile
+++ b/net/openh323/Makefile
@@ -29,19 +29,15 @@ CPPFLAGS+= -I${LOCALBASE}/include -I${WRKSRC}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV= BUILDTIME="YES"
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= FFMPEG SPEEX
+FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
+FFMPEG_CONFIGURE_ON= --enable-rfc2190avcodec=${LOCALBASE}/include/ffmpeg
-.ifdef (WITH_FFMPEG)
-LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
-CONFIGURE_ARGS+= --enable-rfc2190avcodec=${LOCALBASE}/include/ffmpeg
-.endif
+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