Changeset View
Changeset View
Standalone View
Standalone View
multimedia/mplayer/Makefile.common
# Contains the build infrastructural definitions for both | # Contains the build infrastructural definitions for both | ||||
# mplayer and mencoder....the variables that we need to set | # mplayer and mencoder....the variables that we need to set | ||||
# before we include bsd.port.pre.mk | # before we include bsd.port.pre.mk | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
MPLAYER_PORT_VERSION= 1.3.0 | MPLAYER_PORT_VERSION= 1.3.0 | ||||
MPLAYER_SNAPSHOT_DATE= 2016-09-12 | MPLAYER_SNAPSHOT_DATE= 2016-12-28 | ||||
PORTREVISION?= 3 | PORTREVISION?= 0 | ||||
MASTER_SITES= LOCAL/riggs/mplayer | MASTER_SITES= LOCAL/riggs/mplayer | ||||
DISTNAME= mplayer-${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g} | DISTNAME= mplayer-${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g} | ||||
WRKSRC= ${WRKDIR}/mplayer-export-${MPLAYER_SNAPSHOT_DATE} | WRKSRC= ${WRKDIR}/mplayer-export-${MPLAYER_SNAPSHOT_DATE} | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
LIB_DEPENDS= libpng.so:graphics/png \ | LIB_DEPENDS= libpng.so:graphics/png \ | ||||
libavcodec.so:multimedia/ffmpeg \ | |||||
libfreetype.so:print/freetype2 | libfreetype.so:print/freetype2 | ||||
USES= compiler:c11 gmake iconv ncurses tar:xz | USES= compiler:c11 gmake iconv ncurses tar:xz | ||||
NOPRECIOUSMAKEVARS= yes # ARCH | NOPRECIOUSMAKEVARS= yes # ARCH | ||||
GNU_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
CONFIGURE_ENV= TMPDIR="${WRKSRC}" | CONFIGURE_ENV= TMPDIR="${WRKSRC}" | ||||
CONFIGURE_ARGS= --cc="${CC}" \ | CONFIGURE_ARGS= --cc="${CC}" \ | ||||
--host-cc="${CC}" \ | --host-cc="${CC}" \ | ||||
--as="${AS}" \ | --as="${AS}" \ | ||||
--mandir="${PREFIX}/man" \ | |||||
--extra-cflags="-I${PREFIX}/include -I${LOCALBASE}/include" \ | --extra-cflags="-I${PREFIX}/include -I${LOCALBASE}/include" \ | ||||
--extra-libs="-L${PREFIX}/lib" \ | --extra-libs="-L${PREFIX}/lib" \ | ||||
--disable-alsa \ | --disable-alsa \ | ||||
--disable-bitmap-font \ | --disable-bitmap-font \ | ||||
--disable-crystalhd \ | --disable-crystalhd \ | ||||
--disable-esd \ | --disable-esd \ | ||||
--disable-faad \ | --disable-faad \ | ||||
--disable-ffmpeg_a \ | |||||
--disable-ggi \ | --disable-ggi \ | ||||
--disable-ggiwmh \ | --disable-ggiwmh \ | ||||
--disable-liba52 \ | --disable-liba52 \ | ||||
--disable-libbs2b \ | --disable-libbs2b \ | ||||
--disable-libdirac-lavc \ | --disable-libdirac-lavc \ | ||||
--disable-libilbc \ | --disable-libilbc \ | ||||
--disable-libnut \ | --disable-libnut \ | ||||
--disable-libvorbis \ | --disable-libvorbis \ | ||||
--disable-live \ | --disable-live \ | ||||
--disable-joystick \ | --disable-joystick \ | ||||
--disable-mad \ | --disable-mad \ | ||||
--disable-libmpeg2 \ | --disable-libmpeg2 \ | ||||
--disable-nemesi \ | --disable-nemesi \ | ||||
--disable-real \ | --disable-real \ | ||||
--enable-ass-internal | --enable-ass-internal | ||||
WANT_GNOME= yes | WANT_GNOME= yes | ||||
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' |