aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mencoder
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2010-12-02 09:18:01 +0000
committerBeech Rintoul <beech@FreeBSD.org>2010-12-02 09:18:01 +0000
commite2c8af6ff6c98ac9b496e207b0b28c411dec374b (patch)
tree68a3f72a251d532c6e3b186a4ae00fca17190203 /multimedia/mencoder
parentd94173d3703671d7ab18d0a3b656a0ce75a49b97 (diff)
downloadports-e2c8af6ff6c98ac9b496e207b0b28c411dec374b.tar.gz
ports-e2c8af6ff6c98ac9b496e207b0b28c411dec374b.zip
Notes
Diffstat (limited to 'multimedia/mencoder')
-rw-r--r--multimedia/mencoder/Makefile18
-rw-r--r--multimedia/mencoder/distinfo5
2 files changed, 15 insertions, 8 deletions
diff --git a/multimedia/mencoder/Makefile b/multimedia/mencoder/Makefile
index f4e2e47a7247..f9ba989e0e69 100644
--- a/multimedia/mencoder/Makefile
+++ b/multimedia/mencoder/Makefile
@@ -6,7 +6,7 @@
PORTNAME= mencoder
PORTVERSION= ${MPLAYER_PORT_VERSION}
-PORTREVISION= 3
+PORTREVISION= 0
COMMENT= Convenient video file and movie encoder
RESTRICTED= Port has restricted dependencies
@@ -79,6 +79,7 @@ CONFIGURE_ARGS+= --disable-mplayer \
--disable-joystick \
--disable-directfb \
--disable-ssse3 \
+ --disable-mpg123 \
--disable-musepack
ALL_TARGET= mencoder
@@ -130,10 +131,13 @@ post-patch:
'/CFLAGS.*-D_LARGEFILE64_SOURCE/ s/-D_LARGEFILE64_SOURCE/-D_FILE_OFFSET_BITS=64/' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.endif
- @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|; \
+ @${REINPLACE_CMD} \
+ -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|; \
s|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \
- ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
- @${REINPLACE_CMD} -e 's!/usr/local!${PREFIX}!' \
+ -e 's|/usr/local|${LOCALBASE}|' \
+ -e 's|-lbz2|/usr/lib/libbz2.so|' \
+ -e 's|-L$$_prefix/lib|-L${LOCALBASE}/lib|' \
+ -e 's|-I$$_prefix/include|-I${LOCALBASE}/include|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${FIND} -E ${WRKSRC} -type f \
-iregex ".*(configure|.sh|Makefile)" -print0 | \
@@ -147,11 +151,15 @@ post-patch:
'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'
- @cd ${WRKSRC}/libavcodec && ${LN} -s x86 i386 && ${LN} -s x86 amd64
post-configure:
@${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g' \
${WRKSRC}/config.mak
+ @${REINPLACE_CMD} \
+ -e 's#HAVE_FAST_CMOV 1#HAVE_FAST_CMOV 0#g' \
+ -e 's#HAVE_LOG2 1#HAVE_LOG2 0#g' \
+ -e 's#HAVE_LOG2F 1#HAVE_LOG2F 0#g' \
+ ${WRKSRC}/config.h
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${PREFIX}/bin
diff --git a/multimedia/mencoder/distinfo b/multimedia/mencoder/distinfo
index 87b92e58582d..b9b495d2cf4e 100644
--- a/multimedia/mencoder/distinfo
+++ b/multimedia/mencoder/distinfo
@@ -1,3 +1,2 @@
-MD5 (mplayer-1.0rc20100717.tar.bz2) = 3e650938b3729292d1fbee7d72524670
-SHA256 (mplayer-1.0rc20100717.tar.bz2) = 829f149fa74655f84824b4511d69fd93c575e24bc11c429e66ee742642881f0b
-SIZE (mplayer-1.0rc20100717.tar.bz2) = 8988030
+SHA256 (mplayer-1.0rc20101106.tar.bz2) = 00ea68f869435b1a5e363d87cf35fd6711f703aaa05a93f9e4d03a52f3ec8751
+SIZE (mplayer-1.0rc20101106.tar.bz2) = 10014975