2004-11-19 18:23:48 +00:00
|
|
|
# New ports collection makefile for: ogmrip
|
|
|
|
# Date created: 2004-11-19
|
|
|
|
# Whom: Herve Quiroz <hq@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ogmrip
|
2008-07-17 23:12:07 +00:00
|
|
|
PORTVERSION= 0.12.1
|
2004-11-19 18:23:48 +00:00
|
|
|
CATEGORIES= multimedia
|
2007-10-05 21:55:11 +00:00
|
|
|
MASTER_SITES= SF
|
2004-11-19 18:23:48 +00:00
|
|
|
|
2007-01-21 00:53:10 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-11-19 18:23:48 +00:00
|
|
|
COMMENT= Application and libraries for encoding DVDs into DivX/OGM files
|
|
|
|
|
2008-06-15 01:15:20 +00:00
|
|
|
BUILD_DEPENDS= mencoder:${PORTSDIR}/multimedia/mencoder \
|
2006-10-09 22:30:35 +00:00
|
|
|
gsed:${PORTSDIR}/textproc/gsed
|
2007-10-05 21:55:11 +00:00
|
|
|
LIB_DEPENDS= enca.5:${PORTSDIR}/converters/enca \
|
2008-06-15 01:15:20 +00:00
|
|
|
dvdread.5:${PORTSDIR}/multimedia/libdvdread
|
2007-10-05 21:55:11 +00:00
|
|
|
RUN_DEPENDS= lame:${PORTSDIR}/audio/lame \
|
2006-05-21 23:37:11 +00:00
|
|
|
oggenc:${PORTSDIR}/audio/vorbis-tools \
|
2007-10-05 21:55:11 +00:00
|
|
|
mencoder:${PORTSDIR}/multimedia/mencoder \
|
2007-12-14 18:45:21 +00:00
|
|
|
ogmmerge:${PORTSDIR}/multimedia/ogmtools
|
2007-01-20 01:42:08 +00:00
|
|
|
|
2008-06-15 01:15:20 +00:00
|
|
|
OPTIONS= GUI "Build the GTK+ GUI" on \
|
|
|
|
HAL "Enable Hardware Abstract Layer (HAL) support" off \
|
|
|
|
ENCHANT "Enable spell checking for text subtitles" off \
|
|
|
|
MATROSKA "Enable Matroska container support" off \
|
|
|
|
MP4 "Enable Mpeg-4 container support" off \
|
|
|
|
THEORA "Enable Ogg Theora video codec support" off \
|
|
|
|
FAAC "Enable Advance Audio Coding (AAC) support" off \
|
|
|
|
SRT "Enable SRT text subtitles support" off \
|
|
|
|
DEBUG "Enable debug" off
|
|
|
|
|
2007-12-14 18:45:21 +00:00
|
|
|
USE_GNOME= glib20 gnomehack libxml2
|
2007-10-05 21:55:11 +00:00
|
|
|
USE_GETTEXT= yes
|
2005-03-14 15:25:42 +00:00
|
|
|
USE_GMAKE= yes
|
2007-10-05 21:55:11 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2007-12-14 18:45:21 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
ac_cv_path_EJECT_PROG="/usr/sbin/cdcontrol"
|
2007-10-05 21:55:11 +00:00
|
|
|
USE_LDCONFIG= yes
|
2004-11-19 18:23:48 +00:00
|
|
|
|
2007-10-05 21:55:11 +00:00
|
|
|
MAN1= dvdcpy.1
|
2004-11-19 18:23:48 +00:00
|
|
|
|
2007-02-10 22:30:50 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_GUI)
|
2008-06-15 01:15:20 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-gtk-support --disable-libnotify-support
|
2007-02-10 22:30:50 +00:00
|
|
|
PLIST_SUB+= GUI_SUPPORT="@comment "
|
|
|
|
.else
|
2008-06-15 01:15:20 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-gtk-support --enable-libnotify-support
|
|
|
|
LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify
|
|
|
|
USE_GNOME+= gconf2 intlhack libglade2
|
2007-02-10 22:30:50 +00:00
|
|
|
GCONF_SCHEMAS= ogmrip.schemas
|
2008-06-15 01:15:20 +00:00
|
|
|
PLIST_SUB+= GUI_SUPPORT=""
|
2007-02-10 22:30:50 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_HAL)
|
|
|
|
CONFIGURE_ARGS+= --enable-hal-support
|
|
|
|
LIB_DEPENDS+= hal:${PORTSDIR}/sysutils/hal
|
|
|
|
PLIST_SUB+= HAL_SUPPORT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-hal-support
|
|
|
|
PLIST_SUB+= HAL_SUPPORT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-06-15 01:15:20 +00:00
|
|
|
.if defined(WITH_ENCHANT)
|
|
|
|
CONFIGURE_ARGS+= --enable-enchant-support
|
|
|
|
LIB_DEPENDS+= enchant:${PORTSDIR}/textproc/enchant
|
|
|
|
PLIST_SUB+= ENCHANT_SUPPORT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-enchant-support
|
|
|
|
PLIST_SUB+= ENCHANT_SUPPORT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-02-10 22:30:50 +00:00
|
|
|
.if defined(WITH_MATROSKA)
|
2008-06-15 01:15:20 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-mkv-support
|
2007-02-10 22:30:50 +00:00
|
|
|
RUN_DEPENDS+= mkvmerge:${PORTSDIR}/multimedia/mkvtoolnix
|
|
|
|
PLIST_SUB+= MATROSKA_SUPPORT=""
|
|
|
|
.else
|
2008-06-15 01:15:20 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-mkv-support
|
2007-02-10 22:30:50 +00:00
|
|
|
PLIST_SUB+= MATROSKA_SUPPORT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-06-15 01:15:20 +00:00
|
|
|
.if defined(WITH_MP4)
|
|
|
|
CONFIGURE_ARGS+= --enable-mp4-support
|
|
|
|
RUN_DEPENDS+= mp4box:${PORTSDIR}/multimedia/gpac-mp4box
|
|
|
|
PLIST_SUB+= MP4_SUPPORT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mp4-support
|
|
|
|
PLIST_SUB+= MP4_SUPPORT="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_THEORA)
|
|
|
|
CONFIGURE_ARGS+= --enable-theora-support
|
|
|
|
LIB_DEPENDS+= theora:${PORTSDIR}/multimedia/libtheora
|
|
|
|
PLIST_SUB+= THEORA_SUPPORT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-theora-support
|
|
|
|
PLIST_SUB+= THEORA_SUPPORT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-02-10 22:30:50 +00:00
|
|
|
.if defined(WITH_FAAC)
|
|
|
|
CONFIGURE_ARGS+= --enable-aac-support
|
|
|
|
RUN_DEPENDS+= faac:${PORTSDIR}/audio/faac
|
|
|
|
PLIST_SUB+= FAAC_SUPPORT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-aac-support
|
|
|
|
PLIST_SUB+= FAAC_SUPPORT="@comment "
|
|
|
|
.endif
|
2004-11-19 18:23:48 +00:00
|
|
|
|
2007-02-10 22:30:50 +00:00
|
|
|
.if defined(WITH_SRT)
|
|
|
|
CONFIGURE_ARGS+= --enable-srt-support
|
|
|
|
RUN_DEPENDS+= gocr:${PORTSDIR}/graphics/gocr
|
2008-06-15 01:15:20 +00:00
|
|
|
MAN1+= subp2pgm.1 subptools.1
|
2007-02-10 22:30:50 +00:00
|
|
|
PLIST_SUB+= SRT_SUPPORT=""
|
2005-02-24 02:04:26 +00:00
|
|
|
.else
|
2007-02-10 22:30:50 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-srt-support
|
|
|
|
PLIST_SUB+= SRT_SUPPORT="@comment "
|
2005-02-24 02:04:26 +00:00
|
|
|
.endif
|
|
|
|
|
2008-06-15 01:15:20 +00:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-maintainer-mode --enable-devel-mode
|
2005-03-03 01:22:23 +00:00
|
|
|
.endif
|
|
|
|
|
2008-06-15 01:15:20 +00: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 21:37:07 +00:00
|
|
|
|
2007-10-05 21:55:11 +00:00
|
|
|
post-patch:
|
2008-01-03 11:39:17 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g ; \
|
|
|
|
s|^CPPFLAGS=|#CPPFLAGS=|g ; \
|
|
|
|
s|^LDFLAGS=|#LDFLAGS|g' ${WRKSRC}/configure
|
2007-10-05 21:55:11 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS|#SUBDIRS|g' ${WRKSRC}/docs/Makefile.in
|
|
|
|
|
2004-11-25 02:10:48 +00:00
|
|
|
post-install:
|
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD} ""
|
|
|
|
|
2004-11-19 18:23:48 +00:00
|
|
|
.include <bsd.port.post.mk>
|