summaryrefslogtreecommitdiffstats
path: root/multimedia/ogmtools/Makefile
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-10-20 13:45:32 +0000
committerlioux <lioux@FreeBSD.org>2002-10-20 13:45:32 +0000
commit007533e7554633e55c5cf82a8ac99a61ddcd4811 (patch)
treed3b8852bc9ab4dae03c265e9dfc761b08bca6f57 /multimedia/ogmtools/Makefile
parent64c2de50e1426655f0c375f5daf4bc7f72b215bd (diff)
downloadFreeBSD-ports-007533e7554633e55c5cf82a8ac99a61ddcd4811.zip
FreeBSD-ports-007533e7554633e55c5cf82a8ac99a61ddcd4811.tar.gz
New port ogmtools version 0.9.51: Tools to extract from/get info
about/create OGG media streams
Diffstat (limited to 'multimedia/ogmtools/Makefile')
-rw-r--r--multimedia/ogmtools/Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/multimedia/ogmtools/Makefile b/multimedia/ogmtools/Makefile
new file mode 100644
index 0000000..90cf911
--- /dev/null
+++ b/multimedia/ogmtools/Makefile
@@ -0,0 +1,63 @@
+# New ports collection makefile for: ogmtools
+# Date created: Sun Oct 20 13:06:13 UTC 2002
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ogmtools
+PORTVERSION= 0.9.51
+CATEGORIES= graphics audio
+MASTER_SITES= http://www.bunkus.org/videotools/ogmtools/
+DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.(.{2})$/\1/}
+
+MAINTAINER= lioux@FreeBSD.org
+
+LIB_DEPENDS= ogg.4:${PORTSDIR}/audio/libogg \
+ vorbis.2:${PORTSDIR}/audio/libvorbis \
+ vorbisenc.2:${PORTSDIR}/audio/libvorbis
+
+USE_BZIP2= yes
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-ogg-prefix=${LOCALBASE} \
+ --with-vorbis-prefix=${LOCALBASE}
+
+MAN1= ogmdemux.1 ogminfo.1 ogmmerge.1 ogmsplit.1
+
+post-configure:
+# disable GNU auto* tools
+ @${FIND} ${WRKSRC} -type f -name "Makefile" | ${XARGS} \
+ -n 10 ${REINPLACE_CMD} -E -e \
+ 's! (autoconf|autoheader|automake|aclocal)(-1.6)?$$! ${TRUE}!'
+# malloc.h -> stdlib.h
+ @${FIND} ${WRKSRC} -type f | ${XARGS} \
+ -n 10 ${REINPLACE_CMD} -E -e \
+ 's!malloc.h!stdlib.h!'
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/libdvdread.so.2)
+WITH_DVDREAD=yes
+.endif
+
+.ifdef(WITH_DVDREAD)
+LIB_DEPENDS+= dvdread.2:${PORTSDIR}/graphics/libdvdread
+
+CONFIGURE_ARGS+= --with-dvdread \
+ --with-dvdread-includes=${LOCALBASE} \
+ --with-dvdread-libs=${LOCALBASE}
+PLIST_SUB+= WITH_DVDREAD=""
+
+MAN1+= dvdxchap.1
+.else
+CONFIGURE_ARGS+= --without-dvdread
+PLIST_SUB+= WITH_DVDREAD="@comment "
+.endif
+
+pre-everything::
+.ifndef(WITH_DVDREAD)
+ @${ECHO_MSG} "===> Define WITH_DVDREAD in order to be able to 'Extract chapter information from DVDs'"
+.endif
+
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud