diff options
-rw-r--r-- | multimedia/transcode/Makefile | 15 |
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 |