2013-03-28 04:28:30 +01:00
|
|
|
# Created by: Herve Quiroz <hq@FreeBSD.org>
|
2004-11-19 19:23:48 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ogmrip
|
2014-06-07 14:26:32 +02:00
|
|
|
PORTVERSION= 1.0.1
|
2017-11-19 12:37:26 +01:00
|
|
|
PORTREVISION= 8
|
2004-11-19 19:23:48 +01:00
|
|
|
CATEGORIES= multimedia
|
2009-10-04 12:08:21 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}
|
2004-11-19 19:23:48 +01:00
|
|
|
|
2007-01-21 01:53:10 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-11-19 19:23:48 +01:00
|
|
|
COMMENT= Application and libraries for encoding DVDs into DivX/OGM files
|
|
|
|
|
2017-11-29 17:13:41 +01:00
|
|
|
LICENSE= GPLv2+ # from source, though COPYING says LGPLv2
|
2011-10-18 15:06:42 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= mencoder:multimedia/mencoder \
|
|
|
|
mplayer:multimedia/mplayer \
|
|
|
|
gsed:textproc/gsed
|
|
|
|
LIB_DEPENDS= libenca.so:converters/enca \
|
|
|
|
libpng.so:graphics/png \
|
|
|
|
libtiff.so:graphics/tiff \
|
|
|
|
libdvdread.so:multimedia/libdvdread
|
|
|
|
RUN_DEPENDS= lame:audio/lame \
|
|
|
|
oggenc:audio/vorbis-tools \
|
|
|
|
mencoder:multimedia/mencoder \
|
|
|
|
mplayer:multimedia/mplayer \
|
|
|
|
ogmmerge:multimedia/ogmtools
|
2007-01-20 02:42:08 +01:00
|
|
|
|
2017-11-29 17:13:41 +01:00
|
|
|
USES= desktop-file-utils gmake libtool localbase:ldflags pathfix pkgconfig
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GNOME= glib20 intlhack libxml2
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2014-06-07 14:26:32 +02:00
|
|
|
OPTIONS_DEFINE= GTK2 ENCHANT MATROSKA MP4BOX NLS THEORA FAAC SRT DEBUG
|
2016-05-23 22:35:01 +02:00
|
|
|
OPTIONS_DEFAULT=GTK2
|
2017-11-29 17:13:41 +01:00
|
|
|
OPTIONS_SUB= yes
|
2012-06-05 22:58:39 +02:00
|
|
|
ENCHANT_DESC= Enable spell checking for text subtitles
|
|
|
|
MATROSKA_DESC= Enable Matroska container support
|
|
|
|
MP4BOX_DESC= Enable Mpeg-4 container support
|
|
|
|
THEORA_DESC= Enable Ogg Theora video codec support
|
|
|
|
SRT_DESC= Enable SRT text subtitles support
|
2008-06-15 03:15:20 +02:00
|
|
|
|
2017-11-29 17:13:41 +01:00
|
|
|
GTK2_CONFIGURE_ENABLE= gtk-support dbus-support libnotify-support
|
|
|
|
GTK2_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
|
|
|
|
libnotify.so:devel/libnotify
|
|
|
|
GTK2_USE= GNOME=gconf2,libglade2
|
|
|
|
GTK2_VARS= GCONF_SCHEMAS=ogmrip.schemas
|
2004-11-19 19:23:48 +01:00
|
|
|
|
2017-11-29 17:13:41 +01:00
|
|
|
ENCHANT_CONFIGURE_ENABLE=enchant-support
|
|
|
|
ENCHANT_LIB_DEPENDS= libenchant.so:textproc/enchant
|
2014-06-07 14:26:32 +02:00
|
|
|
|
2017-11-29 17:13:41 +01:00
|
|
|
MATROSKA_CONFIGURE_ENABLE=mkv-support
|
|
|
|
MATROSKA_RUN_DEPENDS= mkvmerge:multimedia/mkvtoolnix
|
2009-10-14 15:45:27 +02:00
|
|
|
|
2017-11-29 17:13:41 +01:00
|
|
|
MP4BOX_CONFIGURE_ENABLE=mp4-support
|
|
|
|
MP4BOX_RUN_DEPENDS= mp4box:multimedia/gpac-mp4box
|
2007-02-10 23:30:50 +01:00
|
|
|
|
2017-11-29 17:13:41 +01:00
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
|
|
|
|
THEORA_CONFIGURE_ENABLE=theora-support
|
|
|
|
THEORA_LIB_DEPENDS= libtheora.so:multimedia/libtheora
|
|
|
|
|
|
|
|
FAAC_CONFIGURE_ENABLE= aac-support
|
|
|
|
FAAC_RUN_DEPENDS= faac:audio/faac
|
|
|
|
|
|
|
|
SRT_CONFIGURE_ENABLE= srt-support
|
|
|
|
SRT_RUN_DEPENDS= gocr:graphics/gocr
|
|
|
|
|
|
|
|
DEBUG_CONFIGURE_ON= --enable-maintainer-mode --enable-devel-mode
|
2005-03-03 02:22:23 +01:00
|
|
|
|
2008-06-15 03:15:20 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "This port requires a version of MEncoder compiled with XviD and/or"
|
|
|
|
@${ECHO_MSG} "x264 support if you want to use these codecs."
|
|
|
|
@${ECHO_MSG} ""
|
2007-03-14 22:37:07 +01:00
|
|
|
|
2007-10-05 23:55:11 +02:00
|
|
|
post-patch:
|
2009-10-04 12:08:21 +02:00
|
|
|
@${REINPLACE_CMD} -e '/local/s|^CFLAGS=|#CFLAGS=|g ; \
|
|
|
|
/local/s|^CPPFLAGS=|#CPPFLAGS=|g ; \
|
2017-01-03 20:58:37 +01:00
|
|
|
/local/s|^LDFLAGS=|#LDFLAGS=|g' ${WRKSRC}/configure
|
2007-10-05 23:55:11 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS|#SUBDIRS|g' ${WRKSRC}/docs/Makefile.in
|
2009-02-21 01:10:57 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/PROGRAM/s|MP4Box|mp4box|g' ${WRKSRC}/libogmrip/ogmrip-mp4.c
|
2007-10-05 23:55:11 +02:00
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.include <bsd.port.mk>
|