summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2003-06-19 09:08:01 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2003-06-19 09:08:01 +0000
commit05fb49a490f5d0cd9757beb5815e96bd02488f21 (patch)
treee645dad0f042007b53b663e38807f215baf24132
parentThis is an update of linux-divx4 to the latest version which allows (diff)
multimedia/transcode: add experimental DivX 5 support
PR: 53430 Submitted by: Hendrik Scholz <hendrik@scholz.net> (maintainer)
Notes
Notes: svn path=/head/; revision=83301
-rw-r--r--multimedia/transcode/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/multimedia/transcode/Makefile b/multimedia/transcode/Makefile
index 7b5d3b097c31..d7fb12e4890e 100644
--- a/multimedia/transcode/Makefile
+++ b/multimedia/transcode/Makefile
@@ -7,6 +7,7 @@
PORTNAME= transcode
PORTVERSION= 0.6.7
+PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://www.zebra.fh-weingarten.de/~transcode/pre/
@@ -97,6 +98,10 @@ WITH_MJPEG= yes
WITH_LZO= yes
.endif
+.if exists(${LINUXBASE}/usr/lib/libdivxdecore.so)
+WITH_DIVX5= yes
+.endif
+
.if defined(WITH_IMAGEMAGICK)
LIB_DEPENDS+= Magick.5:${PORTSDIR}/graphics/ImageMagick
PLIST_SUB+= WITH_IMAGEMAGICK=""
@@ -222,6 +227,12 @@ PLIST_SUB+= WITH_SUBRIP=""
PLIST_SUB+= WITH_SUBRIP="@comment "
.endif
+.if defined(WITH_DIVX5)
+BUILD_DEPENDS+= ${LINUXBASE}/usr/lib/libdivxdecore.so:${PORTSDIR}/multimedia/linux-divx4linux
+CONFIGURE_ENV+= CFLAGS="-I${LINUXBASE}/usr/include/divx" CPPFLAGS="-I${LINUXBASE}/usr/include/divx"
+.else
+.endif
+
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG}
@@ -303,6 +314,10 @@ pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "You can enable compilation of subtitleripper by defining WITH_SUBRIP."
.endif
+.if !defined(WITH_DIVX5)
+ @${ECHO_MSG}
+ @${ECHO_MSG} "You can enable experimental DivX 5 support by defining WITH_DIVX5."
+.endif
post-patch:
.if ${OSVERSION} <= 500027