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 70 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}" | ||||
pre-patch: | |||||
jbeich: For shared targets Makefile.common is probably a better place. If the target is already defined… | |||||
@${LN} -s `cd ${.CURDIR}/../ffmpeg && ${MAKE} -V WRKSRC` ${WRKSRC}/ffmpeg | |||||
jbeichUnsubmitted 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… | |||||
riggsAuthorUnsubmitted 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… | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} \ | @${REINPLACE_CMD} \ | ||||
-e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|; \ | -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|; \ | ||||
s|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ | s|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ | ||||
-e 's|/usr/local|${LOCALBASE}|' \ | -e 's|/usr/local|${LOCALBASE}|' \ | ||||
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \ | -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ | ||||
-e 's|-lbz2|/usr/lib/libbz2.so|' \ | -e 's|-lbz2|/usr/lib/libbz2.so|' \ | ||||
Show All 29 Lines |
For shared targets Makefile.common is probably a better place. If the target is already defined try:
or