b999017f3a
- Switch to USES=localbase - Switch to options helpers - Regenerate patches
86 lines
2.6 KiB
Makefile
86 lines
2.6 KiB
Makefile
# Created by: Herve Quiroz <hq@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ogmrip
|
|
PORTVERSION= 1.0.1
|
|
PORTREVISION= 8
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Application and libraries for encoding DVDs into DivX/OGM files
|
|
|
|
LICENSE= GPLv2+ # from source, though COPYING says LGPLv2
|
|
|
|
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
|
|
|
|
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
|
|
|
|
OPTIONS_DEFINE= GTK2 ENCHANT MATROSKA MP4BOX NLS THEORA FAAC SRT DEBUG
|
|
OPTIONS_DEFAULT=GTK2
|
|
OPTIONS_SUB= yes
|
|
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
|
|
|
|
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
|
|
|
|
ENCHANT_CONFIGURE_ENABLE=enchant-support
|
|
ENCHANT_LIB_DEPENDS= libenchant.so:textproc/enchant
|
|
|
|
MATROSKA_CONFIGURE_ENABLE=mkv-support
|
|
MATROSKA_RUN_DEPENDS= mkvmerge:multimedia/mkvtoolnix
|
|
|
|
MP4BOX_CONFIGURE_ENABLE=mp4-support
|
|
MP4BOX_RUN_DEPENDS= mp4box:multimedia/gpac-mp4box
|
|
|
|
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
|
|
|
|
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} ""
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/local/s|^CFLAGS=|#CFLAGS=|g ; \
|
|
/local/s|^CPPFLAGS=|#CPPFLAGS=|g ; \
|
|
/local/s|^LDFLAGS=|#LDFLAGS=|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS|#SUBDIRS|g' ${WRKSRC}/docs/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
'/PROGRAM/s|MP4Box|mp4box|g' ${WRKSRC}/libogmrip/ogmrip-mp4.c
|
|
|
|
.include <bsd.port.mk>
|