2013-03-23 16:45:25 +01:00
|
|
|
# Created by: Thomas E. Zander
|
2007-08-07 14:42:44 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mencoder
|
2016-04-09 20:48:45 +02:00
|
|
|
PORTVERSION= ${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g}
|
2020-07-12 11:30:28 +02:00
|
|
|
PORTREVISION= 2
|
2015-08-23 18:41:23 +02:00
|
|
|
CATEGORIES= multimedia audio
|
2012-04-17 20:50:38 +02:00
|
|
|
|
2015-08-23 18:41:23 +02:00
|
|
|
MAINTAINER= riggs@FreeBSD.org
|
2007-08-07 14:42:44 +02:00
|
|
|
COMMENT= Convenient video file and movie encoder
|
|
|
|
|
2015-08-23 18:41:23 +02:00
|
|
|
.include "${.CURDIR}/../mplayer/Makefile.common"
|
2007-08-07 14:42:44 +02:00
|
|
|
|
2017-01-02 22:15:34 +01:00
|
|
|
OPTIONS_DEFINE= AMR_NB AMR_WB ASS BLURAY CDIO DEBUG DV DVDNAV FAAC FONTCONFIG \
|
2015-01-24 19:32:07 +01:00
|
|
|
FRIBIDI GIF GNUTLS GSM IPV6 JACK LADSPA LIBMNG LZO \
|
2017-01-01 19:55:22 +01:00
|
|
|
MAD NAS OPENAL OPENJPEG OPUS PULSEAUDIO \
|
2018-04-15 10:23:54 +02:00
|
|
|
RTMP SMB SPEEX THEORA TWOLAME V4L VPX \
|
2015-08-01 19:16:39 +02:00
|
|
|
X264 XVID
|
2013-03-23 16:45:25 +01:00
|
|
|
|
2017-01-02 22:15:34 +01:00
|
|
|
OPTIONS_DEFAULT=ASS DVDNAV FONTCONFIG GIF GNUTLS X264 XVID
|
2015-08-31 23:26:40 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE_i386= RTCPU
|
|
|
|
OPTIONS_DEFINE_amd64= RTCPU
|
2015-09-01 22:08:53 +02:00
|
|
|
OPTIONS_DEFINE_powerpc= RTCPU
|
2015-08-31 23:26:40 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFAULT_i386= RTCPU
|
|
|
|
OPTIONS_DEFAULT_amd64= RTCPU
|
2015-09-01 22:08:53 +02:00
|
|
|
OPTIONS_DEFAULT_powerpc=RTCPU
|
2013-03-23 16:45:25 +01:00
|
|
|
|
2017-01-02 22:15:34 +01:00
|
|
|
ASS_DESC?= Subtitles rendering via libass
|
2013-03-23 16:45:25 +01:00
|
|
|
BLURAY_DESC?= BluRay support
|
2016-09-05 09:14:56 +02:00
|
|
|
DVDNAV_DESC?= DVD navigation features support
|
2013-04-16 17:01:00 +02:00
|
|
|
LZO_DESC?= Enable external liblzo library
|
2015-08-31 23:26:40 +02:00
|
|
|
RTCPU_DESC?= Use runtime CPU detection
|
2007-08-07 14:42:44 +02:00
|
|
|
|
2012-09-01 17:22:09 +02:00
|
|
|
RESTRICTED= Port has restricted dependencies
|
|
|
|
|
2007-08-07 14:42:44 +02:00
|
|
|
PATCHDIR= ${.CURDIR}/../mplayer/files
|
2012-01-15 23:31:53 +01:00
|
|
|
FILESDIR= ${PATCHDIR}
|
2007-08-07 14:42:44 +02:00
|
|
|
DATADIR= ${PREFIX}/share/mplayer
|
|
|
|
|
2010-04-21 15:07:23 +02:00
|
|
|
TOOLFILES= aconvert.sh binary_codecs.sh calcbpp.pl \
|
|
|
|
checktree.sh countquant.pl divx2svcd.sh \
|
|
|
|
dvd2divxscript.pl edgedetect.fp edgeenh.fp \
|
|
|
|
emboss.fp mencvcd.sh midentify.sh \
|
2012-01-15 23:31:53 +01:00
|
|
|
mpconsole.sh mphelp_check.py mplmult.sh \
|
|
|
|
plotpsnr.pl psnr-video.sh qepdvcd.sh \
|
|
|
|
subedit.pl subsearch.sh vobshift.py \
|
|
|
|
w32codec_dl.pl wma2ogg.pl
|
2007-08-07 14:42:44 +02:00
|
|
|
|
2017-04-16 16:51:14 +02:00
|
|
|
USES+= alias iconv pkgconfig python shebangfix
|
2013-12-15 19:50:51 +01:00
|
|
|
SHEBANG_FILES= TOOLS/calcbpp.pl TOOLS/checktree.sh TOOLS/countquant.pl \
|
|
|
|
TOOLS/divx2svcd.sh TOOLS/dvd2divxscript.pl TOOLS/mencvcd.sh \
|
|
|
|
TOOLS/mphelp_check.py TOOLS/plotpsnr.pl TOOLS/psnr-video.sh \
|
2017-04-16 16:51:14 +02:00
|
|
|
TOOLS/qepdvcd.sh TOOLS/subedit.pl TOOLS/vobshift.py \
|
|
|
|
TOOLS/w32codec_dl.pl TOOLS/wma2ogg.pl
|
|
|
|
|
|
|
|
PYTHON_NO_DEPENDS= yes
|
2007-08-07 14:42:44 +02:00
|
|
|
|
2013-12-15 19:50:51 +01:00
|
|
|
.include "${.CURDIR}/../mplayer/Makefile.optvars"
|
|
|
|
.include <bsd.port.pre.mk>
|
2007-08-07 14:42:44 +02:00
|
|
|
|
2010-04-21 15:07:23 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-mplayer \
|
2010-04-25 10:29:23 +02:00
|
|
|
--disable-libdca \
|
2007-08-07 14:42:44 +02:00
|
|
|
--disable-x11 \
|
2010-04-21 15:07:23 +02:00
|
|
|
--disable-vdpau \
|
2007-08-07 14:42:44 +02:00
|
|
|
--disable-rtc \
|
|
|
|
--disable-arts \
|
|
|
|
--disable-caca \
|
|
|
|
--disable-lirc \
|
|
|
|
--disable-sdl \
|
|
|
|
--disable-svga \
|
|
|
|
--disable-aa \
|
2007-12-13 00:26:37 +01:00
|
|
|
--disable-joystick \
|
2009-01-06 19:57:27 +01:00
|
|
|
--disable-directfb \
|
2010-12-02 10:18:01 +01:00
|
|
|
--disable-mpg123 \
|
2012-02-11 00:26:29 +01:00
|
|
|
--disable-enca \
|
2010-10-05 07:57:28 +02:00
|
|
|
--disable-musepack
|
2007-08-07 14:42:44 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS+= libmp3lame.so:audio/lame
|
2013-12-15 19:50:51 +01:00
|
|
|
|
2010-04-21 15:07:23 +02:00
|
|
|
ALL_TARGET= mencoder
|
|
|
|
|
2007-08-07 14:42:44 +02:00
|
|
|
.include "${.CURDIR}/../mplayer/Makefile.options"
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "N - O - T - E"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "There are some knobs which *can* *not* be selected via the"
|
2014-06-07 15:24:16 +02:00
|
|
|
@${ECHO_MSG} "OPTIONS framework. At the moment, these settings are:"
|
|
|
|
@${ECHO_MSG} "DEFAULT_DVD_DEVICE=${DEFAULT_DVD_DEVICE}"
|
|
|
|
@${ECHO_MSG} "DEFAULT_CDROM_DEVICE=${DEFAULT_CDROM_DEVICE}"
|
2007-08-07 14:42:44 +02:00
|
|
|
|
2016-12-30 08:28:12 +01:00
|
|
|
post-patch: common-post-patch
|
2007-08-07 14:42:44 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-12-29 09:39:33 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/DOCS/man/en/mplayer.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/mencoder.1
|
2013-12-15 19:50:51 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
@${CHMOD} 755 ${STAGEDIR}${DATADIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/tools
|
|
|
|
@${CHMOD} 755 ${STAGEDIR}${DATADIR}/tools
|
2007-08-07 14:42:44 +02:00
|
|
|
.for tool in ${TOOLFILES}
|
2014-12-29 09:39:33 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TOOLS/${tool} ${STAGEDIR}${DATADIR}/tools
|
2007-08-07 14:42:44 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|