2007-08-05 23:27:31 +02:00
|
|
|
# Contains the build infrastructural definitions for both
|
|
|
|
# mplayer and mencoder....the variables that we need to set
|
|
|
|
# before we include bsd.port.pre.mk
|
2011-08-21 10:11:55 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2007-08-05 23:27:31 +02:00
|
|
|
|
2016-02-27 18:48:11 +01:00
|
|
|
MPLAYER_PORT_VERSION= 1.3.0
|
2018-12-24 20:31:19 +01:00
|
|
|
MPLAYER_SNAPSHOT_DATE= 2018-12-24
|
2016-04-09 20:48:45 +02:00
|
|
|
MASTER_SITES= LOCAL/riggs/mplayer
|
|
|
|
DISTNAME= mplayer-${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g}
|
|
|
|
WRKSRC= ${WRKDIR}/mplayer-export-${MPLAYER_SNAPSHOT_DATE}
|
2007-08-05 23:27:31 +02:00
|
|
|
|
2010-08-03 14:37:29 +02:00
|
|
|
LICENSE= GPLv2
|
2015-08-23 18:41:23 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2010-08-03 14:37:29 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png \
|
2016-12-30 08:28:12 +01:00
|
|
|
libavcodec.so:multimedia/ffmpeg \
|
2016-04-01 16:16:16 +02:00
|
|
|
libfreetype.so:print/freetype2
|
2007-08-05 23:27:31 +02:00
|
|
|
|
2016-02-27 18:48:11 +01:00
|
|
|
USES= compiler:c11 gmake iconv ncurses tar:xz
|
2016-12-19 02:08:39 +01:00
|
|
|
NOPRECIOUSMAKEVARS= yes # ARCH
|
2016-12-30 08:28:12 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2015-03-25 18:36:47 +01:00
|
|
|
CONFIGURE_ENV= TMPDIR="${WRKSRC}"
|
2012-01-15 23:31:53 +01:00
|
|
|
CONFIGURE_ARGS= --cc="${CC}" \
|
|
|
|
--host-cc="${CC}" \
|
|
|
|
--as="${AS}" \
|
2016-12-30 08:28:12 +01:00
|
|
|
--mandir="${PREFIX}/man" \
|
2012-01-15 23:31:53 +01:00
|
|
|
--extra-cflags="-I${PREFIX}/include -I${LOCALBASE}/include" \
|
|
|
|
--extra-libs="-L${PREFIX}/lib" \
|
2013-12-15 19:50:51 +01:00
|
|
|
--disable-alsa \
|
2017-01-02 22:15:34 +01:00
|
|
|
--disable-ass-internal \
|
2011-04-01 13:09:36 +02:00
|
|
|
--disable-bitmap-font \
|
2013-12-15 19:50:51 +01:00
|
|
|
--disable-crystalhd \
|
2014-04-27 16:22:25 +02:00
|
|
|
--disable-esd \
|
2013-12-15 19:50:51 +01:00
|
|
|
--disable-faad \
|
2016-12-30 08:28:12 +01:00
|
|
|
--disable-ffmpeg_a \
|
2014-04-27 16:22:25 +02:00
|
|
|
--disable-ggi \
|
|
|
|
--disable-ggiwmh \
|
2012-01-15 23:31:53 +01:00
|
|
|
--disable-liba52 \
|
2012-07-11 17:07:50 +02:00
|
|
|
--disable-libbs2b \
|
2013-12-15 19:50:51 +01:00
|
|
|
--disable-libilbc \
|
|
|
|
--disable-libnut \
|
2013-03-23 16:45:25 +01:00
|
|
|
--disable-libvorbis \
|
2013-12-15 19:50:51 +01:00
|
|
|
--disable-live \
|
|
|
|
--disable-joystick \
|
|
|
|
--disable-mad \
|
2014-04-27 16:22:25 +02:00
|
|
|
--disable-libmpeg2 \
|
2013-12-15 19:50:51 +01:00
|
|
|
--disable-nemesi \
|
2016-08-09 20:03:57 +02:00
|
|
|
--disable-real \
|
2017-01-01 19:55:22 +01:00
|
|
|
--yasm=''
|
2010-04-21 15:07:23 +02:00
|
|
|
|
2016-12-30 08:28:12 +01:00
|
|
|
common-post-patch:
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|; \
|
|
|
|
s|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \
|
|
|
|
-e 's|/usr/local|${LOCALBASE}|' \
|
|
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
|
|
-e 's|-lbz2|/usr/lib/libbz2.so|' \
|
|
|
|
-e 's|-lncurses|/usr/lib/libncurses.so|' \
|
|
|
|
-e 's|-liconv|${ICONV_LIB}|' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
@${FIND} -E ${WRKSRC} -type f \
|
|
|
|
-iregex ".*(configure|.sh|Makefile)" -print0 | \
|
|
|
|
${XARGS} -x -0 -n 10 \
|
|
|
|
${REINPLACE_CMD} -E \
|
|
|
|
-e 's|[[:space:]]gcc[-[:digit:]\.]+| ${CC}|' \
|
|
|
|
-e 's|[[:space:]]gcc| ${CC}|' \
|
|
|
|
-e 's|\$$\(CC\)|${CC}|' \
|
|
|
|
-e 's|/usr/X11R6|${LOCALBASE}|' \
|
|
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|'
|
|
|
|
@${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \
|
|
|
|
's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \
|
|
|
|
s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${DEFAULT_DVD_DEVICE:S/dev\//dev\/\\\:/}|g ; \
|
|
|
|
s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${DEFAULT_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g'
|