Changeset View
Changeset View
Standalone View
Standalone View
multimedia/mencoder/Makefile
# Created by: Thomas E. Zander | # Created by: Thomas E. Zander | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= mencoder | PORTNAME= mencoder | ||||
PORTVERSION= ${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g} | PORTVERSION= ${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g} | ||||
PORTREVISION= 2 | |||||
CATEGORIES= multimedia audio | CATEGORIES= multimedia audio | ||||
MAINTAINER= riggs@FreeBSD.org | MAINTAINER= riggs@FreeBSD.org | ||||
COMMENT= Convenient video file and movie encoder | COMMENT= Convenient video file and movie encoder | ||||
.include "${.CURDIR}/../mplayer/Makefile.common" | .include "${.CURDIR}/../mplayer/Makefile.common" | ||||
OPTIONS_DEFINE= AMR_NB AMR_WB BLURAY CDIO DEBUG DV DVDNAV FAAC FONTCONFIG \ | OPTIONS_DEFINE= AMR_NB AMR_WB BLURAY CDIO DEBUG DV DVDNAV FAAC FONTCONFIG \ | ||||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
pre-everything:: | pre-everything:: | ||||
@${ECHO_MSG} "N - O - T - E" | @${ECHO_MSG} "N - O - T - E" | ||||
@${ECHO_MSG} "" | @${ECHO_MSG} "" | ||||
@${ECHO_MSG} "There are some knobs which *can* *not* be selected via the" | @${ECHO_MSG} "There are some knobs which *can* *not* be selected via the" | ||||
@${ECHO_MSG} "OPTIONS framework. At the moment, these settings are:" | @${ECHO_MSG} "OPTIONS framework. At the moment, these settings are:" | ||||
@${ECHO_MSG} "DEFAULT_DVD_DEVICE=${DEFAULT_DVD_DEVICE}" | @${ECHO_MSG} "DEFAULT_DVD_DEVICE=${DEFAULT_DVD_DEVICE}" | ||||
@${ECHO_MSG} "DEFAULT_CDROM_DEVICE=${DEFAULT_CDROM_DEVICE}" | @${ECHO_MSG} "DEFAULT_CDROM_DEVICE=${DEFAULT_CDROM_DEVICE}" | ||||
post-patch: | post-patch: common-post-patch | ||||
jbeich: For shared targets Makefile.common is probably a better place. If the target is already defined… | |||||
@${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' | |||||
Done Inline ActionsArchLinux and Debian get by fine without such a hack. If this is about configure anomaly then stop pretending it's GNU compatible which would avoid _LATE_CONFIGURE_ARGS logic then pass --mandir manually like multimedia/ffmpeg. jbeich: ArchLinux and Debian get by fine without such a hack. If this is about configure anomaly then… | |||||
Done Inline ActionsA while ago, it was necessary to have an ffmpeg copy in-tree (in the 2.x series) as mplayer used non-public interfaces to ffmpeg. Apparently, it compiles fine now without it. So, this part is removed entirely. riggs: A while ago, it was necessary to have an ffmpeg copy in-tree (in the 2.x series) as mplayer… | |||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${STAGEDIR}${PREFIX}/bin | ${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${STAGEDIR}${PREFIX}/bin | ||||
${INSTALL_MAN} ${WRKSRC}/DOCS/man/en/mplayer.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/mencoder.1 | ${INSTALL_MAN} ${WRKSRC}/DOCS/man/en/mplayer.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/mencoder.1 | ||||
@${MKDIR} ${STAGEDIR}${DATADIR} | @${MKDIR} ${STAGEDIR}${DATADIR} | ||||
@${CHMOD} 755 ${STAGEDIR}${DATADIR} | @${CHMOD} 755 ${STAGEDIR}${DATADIR} | ||||
@${MKDIR} ${STAGEDIR}${DATADIR}/tools | @${MKDIR} ${STAGEDIR}${DATADIR}/tools | ||||
@${CHMOD} 755 ${STAGEDIR}${DATADIR}/tools | @${CHMOD} 755 ${STAGEDIR}${DATADIR}/tools | ||||
.for tool in ${TOOLFILES} | .for tool in ${TOOLFILES} | ||||
${INSTALL_SCRIPT} ${WRKSRC}/TOOLS/${tool} ${STAGEDIR}${DATADIR}/tools | ${INSTALL_SCRIPT} ${WRKSRC}/TOOLS/${tool} ${STAGEDIR}${DATADIR}/tools | ||||
.endfor | .endfor | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |
For shared targets Makefile.common is probably a better place. If the target is already defined try:
or