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
|
|
|
|
|
2011-10-18 15:06:42 +02:00
|
|
|
LICENSE= GPLv2 LGPL21
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
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
|
|
|
|
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
|
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
|
|
|
|
2014-07-25 22:36:54 +02:00
|
|
|
USES= desktop-file-utils gmake libtool pathfix pkgconfig
|
2013-03-28 04:28:30 +01:00
|
|
|
USE_GNOME= glib20 intlhack libxml2
|
2007-10-05 23:55:11 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-11-19 19:23:48 +01:00
|
|
|
|
2014-06-07 14:26:32 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2015-02-23 02:20:56 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
2014-06-07 14:26:32 +02:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-10-14 15:45:27 +02:00
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2007-02-10 23:30:50 +01:00
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
2009-10-14 15:45:27 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-gtk-support --enable-dbus-support \
|
|
|
|
--enable-libnotify-support
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS+= libdbus-glib-1.so:devel/dbus-glib \
|
|
|
|
libnotify.so:devel/libnotify
|
2010-09-21 10:06:46 +02:00
|
|
|
USE_GNOME+= gconf2 libglade2
|
2007-02-10 23:30:50 +01:00
|
|
|
GCONF_SCHEMAS= ogmrip.schemas
|
2012-06-05 22:58:39 +02:00
|
|
|
PLIST_SUB+= GTK2_SUPPORT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gtk-support --disable-dbus-support \
|
|
|
|
--disable-libnotify-support
|
|
|
|
PLIST_SUB+= GTK2_SUPPORT="@comment "
|
2007-02-10 23:30:50 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MENCHANT}
|
2008-06-15 03:15:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-enchant-support
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS+= libenchant.so:textproc/enchant
|
2008-06-15 03:15:20 +02:00
|
|
|
PLIST_SUB+= ENCHANT_SUPPORT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-enchant-support
|
|
|
|
PLIST_SUB+= ENCHANT_SUPPORT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MMATROSKA}
|
2008-06-15 03:15:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-mkv-support
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS+= mkvmerge:multimedia/mkvtoolnix
|
2007-02-10 23:30:50 +01:00
|
|
|
PLIST_SUB+= MATROSKA_SUPPORT=""
|
|
|
|
.else
|
2008-06-15 03:15:20 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-mkv-support
|
2007-02-10 23:30:50 +01:00
|
|
|
PLIST_SUB+= MATROSKA_SUPPORT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MMP4BOX}
|
2008-06-15 03:15:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-mp4-support
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS+= mp4box:multimedia/gpac-mp4box
|
2012-06-05 22:58:39 +02:00
|
|
|
PLIST_SUB+= MP4BOX_SUPPORT=""
|
2008-06-15 03:15:20 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mp4-support
|
2012-06-05 22:58:39 +02:00
|
|
|
PLIST_SUB+= MP4BOX_SUPPORT="@comment "
|
2008-06-15 03:15:20 +02:00
|
|
|
.endif
|
|
|
|
|
2014-06-07 14:26:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
USES+= gettext
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MTHEORA}
|
2008-06-15 03:15:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-theora-support
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS+= libtheora.so:multimedia/libtheora
|
2008-06-15 03:15:20 +02:00
|
|
|
PLIST_SUB+= THEORA_SUPPORT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-theora-support
|
|
|
|
PLIST_SUB+= THEORA_SUPPORT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MFAAC}
|
2007-02-10 23:30:50 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-aac-support
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS+= faac:audio/faac
|
2007-02-10 23:30:50 +01:00
|
|
|
PLIST_SUB+= FAAC_SUPPORT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-aac-support
|
|
|
|
PLIST_SUB+= FAAC_SUPPORT="@comment "
|
|
|
|
.endif
|
2004-11-19 19:23:48 +01:00
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MSRT}
|
2007-02-10 23:30:50 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-srt-support
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS+= gocr:graphics/gocr
|
2008-06-15 03:15:20 +02:00
|
|
|
MAN1+= subp2pgm.1 subptools.1
|
2007-02-10 23:30:50 +01:00
|
|
|
PLIST_SUB+= SRT_SUPPORT=""
|
2005-02-24 03:04:26 +01:00
|
|
|
.else
|
2007-02-10 23:30:50 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-srt-support
|
|
|
|
PLIST_SUB+= SRT_SUPPORT="@comment "
|
2005-02-24 03:04:26 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-05 22:58:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2008-06-15 03:15:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-maintainer-mode --enable-devel-mode
|
2005-03-03 02:22:23 +01:00
|
|
|
.endif
|
|
|
|
|
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>
|