freebsd-ports/multimedia/ogmtools/Makefile

54 lines
1.5 KiB
Makefile
Raw Normal View History

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= ogmtools
2005-04-03 04:50:49 +02:00
PORTVERSION= 1.5
PORTREVISION= 12
CATEGORIES= multimedia audio
MASTER_SITES= http://www.bunkus.org/videotools/ogmtools/
MAINTAINER= multimedia@FreeBSD.org
2003-02-23 20:58:35 +01:00
COMMENT= Tools to extract from/get info about/create OGG media streams
2013-10-19 18:03:48 +02:00
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
USES= tar:bzip2
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:
# disable GNU auto* tools
2002-11-13 23:18:36 +01:00
@${FIND} ${WRKSRC} -type f -name "Makefile.in" | ${XARGS} \
-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:
# malloc.h -> stdlib.h
2003-11-09 21:11:33 +01:00
# stdint.h -> inttypes.h
@${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|'
2012-05-30 16:22:59 +02:00
.include <bsd.port.mk>