aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-07-21 05:48:47 +0800
committerbapt <bapt@FreeBSD.org>2012-07-21 05:48:47 +0800
commit07ddf202d517fdd31fb4c828b7e23e12a545df1b (patch)
treeacebbd760bc50123c27c754891d381903b9847cd /multimedia
parent69f0202a96a88ce5303b75037ab189a5dd71ad9d (diff)
downloadfreebsd-ports-graphics-07ddf202d517fdd31fb4c828b7e23e12a545df1b.tar.gz
freebsd-ports-graphics-07ddf202d517fdd31fb4c828b7e23e12a545df1b.tar.zst
freebsd-ports-graphics-07ddf202d517fdd31fb4c828b7e23e12a545df1b.zip
Convert to new options framework
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/spook/Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/multimedia/spook/Makefile b/multimedia/spook/Makefile
index 89bcecb6f15..817ac8a569c 100644
--- a/multimedia/spook/Makefile
+++ b/multimedia/spook/Makefile
@@ -17,10 +17,11 @@ COMMENT= Embedded RTP/RTSP/HTTP video streamer
# TODO: FireWire IIDC support (needs libraw1394, libdc1394).
# TODO: Test with Luigi-ified V4L input drivers e.g. pwc, etc.
-OPTIONS= \
- JPEG "With JPEG encoding support" on \
- MPEG4 "With MPEG4 encoding support" off \
- V4L "With V4L input support" on
+OPTIONS_DEFINE= JPEG MPEG4 V4L DOCS
+OPTIONS_DEFAULT= JPEG V4L
+
+MPEG4_DESC= MPEG4 encoding support
+V4L_DESC= V4L input support
USE_BZIP2= yes
USE_GMAKE= yes
@@ -37,31 +38,31 @@ SUB_FILES= pkg-message
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_JPEG)
+.if ${PORT_OPTIONS:MJPEG}
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
CONFIGURE_ARGS+= --enable-encoder-jpeg
.endif
-.if defined(WITH_MPEG4)
+.if ${PORT_OPTIONS:MMPEG4}
LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid
CONFIGURE_ARGS+= --enable-encoder-mpeg4
.endif
-.if !defined(WITHOUT_V4L)
+.if ${PORT_OPTIONS:MV4L}
BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev.h:${PORTSDIR}/multimedia/v4l_compat
CONFIGURE_ARGS+= --enable-input-v4l
.endif
PLIST_FILES= bin/spook bin/spookctl etc/spook.conf.dist
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= README
.endif
do-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
.endif
@@ -69,4 +70,4 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/spookctl ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/spook.conf.dist ${PREFIX}/etc
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>