aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/transcode
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-06-19 17:08:01 +0800
committerdaichi <daichi@FreeBSD.org>2003-06-19 17:08:01 +0800
commitc67f4a84a3db888cfa9dcd6d40f47a8174845a74 (patch)
tree9126ef60a54563807c9aada89bbaeb2f851e008c /multimedia/transcode
parenta1e62bc364c423f1347ea2b3c1ac655f316a6430 (diff)
downloadfreebsd-ports-gnome-c67f4a84a3db888cfa9dcd6d40f47a8174845a74.tar.gz
freebsd-ports-gnome-c67f4a84a3db888cfa9dcd6d40f47a8174845a74.tar.zst
freebsd-ports-gnome-c67f4a84a3db888cfa9dcd6d40f47a8174845a74.zip
multimedia/transcode: add experimental DivX 5 support
PR: 53430 Submitted by: Hendrik Scholz <hendrik@scholz.net> (maintainer)
Diffstat (limited to 'multimedia/transcode')
-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