2013-09-20 22:57:48 +02:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
2002-10-20 15:45:32 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ogmtools
|
2005-04-03 04:50:49 +02:00
|
|
|
PORTVERSION= 1.5
|
2014-05-13 12:17:04 +02:00
|
|
|
PORTREVISION= 12
|
2002-11-28 01:09:51 +01:00
|
|
|
CATEGORIES= multimedia audio
|
2002-10-20 15:45:32 +02:00
|
|
|
MASTER_SITES= http://www.bunkus.org/videotools/ogmtools/
|
|
|
|
|
2007-04-01 09:50:30 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2003-02-23 20:58:35 +01:00
|
|
|
COMMENT= Tools to extract from/get info about/create OGG media streams
|
2002-10-20 15:45:32 +02:00
|
|
|
|
2013-10-19 18:03:48 +02:00
|
|
|
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
2002-10-20 15:45:32 +02:00
|
|
|
|
2014-07-29 23:43:17 +02:00
|
|
|
USES= tar:bzip2
|
2002-10-20 15:45:32 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-ogg-prefix=${LOCALBASE} \
|
|
|
|
--with-vorbis-prefix=${LOCALBASE}
|
|
|
|
|
2012-05-30 16:22:59 +02:00
|
|
|
OPTIONS_DEFINE= DVDREAD
|
|
|
|
OPTIONS_DEFAULT= DVDREAD
|
|
|
|
DVDREAD_DESC= DVD title chapter extraction via libdvdread
|
|
|
|
|
2013-10-19 18:03:48 +02:00
|
|
|
DVDREAD_LIB_DEPENDS= libdvdread.so:${PORTSDIR}/multimedia/libdvdread
|
|
|
|
DVDREAD_CONFIGURE_ON= --with-dvdread \
|
|
|
|
--with-dvdread-includes=${LOCALBASE} \
|
|
|
|
--with-dvdread-libs=${LOCALBASE}
|
|
|
|
DVDREAD_CONFIGURE_OFF= --without-dvdread
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2002-11-13 23:18:36 +01:00
|
|
|
post-patch:
|
2002-10-20 15:45:32 +02:00
|
|
|
# disable GNU auto* tools
|
2002-11-13 23:18:36 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f -name "Makefile.in" | ${XARGS} \
|
2002-10-20 15:45:32 +02:00
|
|
|
-n 10 ${REINPLACE_CMD} -E -e \
|
2002-11-13 23:18:36 +01:00
|
|
|
's!^(ACLOCAL|AUTOCONF|AUTOMAKE|AUTOHEADER).+$$!\1=${TRUE}!'
|
2003-01-11 01:44:32 +01:00
|
|
|
# C{,XX}FLAGS safeness
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's|^(CFLAGS).*(-DLINUX)|\1=${CFLAGS} \2|' \
|
|
|
|
${WRKSRC}/avilib/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's|^(CFLAGS[[:space:]]*)=|\1+=|; \
|
|
|
|
s|^(CXXFLAGS[[:space:]]*)=|\1+=|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2002-11-13 23:18:36 +01:00
|
|
|
|
|
|
|
post-configure:
|
2002-10-20 15:45:32 +02:00
|
|
|
# malloc.h -> stdlib.h
|
2003-11-09 21:11:33 +01:00
|
|
|
# stdint.h -> inttypes.h
|
2002-10-20 15:45:32 +02:00
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} \
|
|
|
|
-n 10 ${REINPLACE_CMD} -E -e \
|
2003-11-09 21:11:33 +01:00
|
|
|
's!malloc.h!stdlib.h!; \
|
|
|
|
s|stdint.h|inttypes.h|'
|
2002-10-20 15:45:32 +02:00
|
|
|
|
2012-05-30 16:22:59 +02:00
|
|
|
.include <bsd.port.mk>
|