From 365ac5b74f39ee2ca3d4add0c1faad03aefd1c9d Mon Sep 17 00:00:00 2001 From: dinoex Date: Sat, 30 Mar 2002 04:57:15 +0000 Subject: - Changes so it should run on Alpha - Add Option WITHOUT_DIVX, cause libdivx* do not build - configure with "--enable-iconv" - Fix overwriting of LIB_DEPENDS when WITHOUT_VORBIS was not defined - Changed dependency so installed sdl12 is found. PR: 34075 Submitted by: holger@eit.uni-kl.de --- graphics/avifile/Makefile | 24 ++++++++++++++--------- graphics/avifile/files/patch-libvideorenderer.cpp | 20 +++++++++++++++++++ graphics/avifile/pkg-plist | 4 ++-- 3 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 graphics/avifile/files/patch-libvideorenderer.cpp (limited to 'graphics/avifile') diff --git a/graphics/avifile/Makefile b/graphics/avifile/Makefile index 4b802db0ebb..e8311d3e799 100644 --- a/graphics/avifile/Makefile +++ b/graphics/avifile/Makefile @@ -7,6 +7,7 @@ PORTNAME= avifile PORTVERSION= 0.6.0.20011220 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= http://avifile.sourceforge.net/ \ @@ -17,7 +18,10 @@ EXTRACT_SUFX= .tgz MAINTAINER= holger@eit.uni-kl.de BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm -LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl12 +.if !defined(WITHOUT_DIVX) +LIB_DEPENDS+= divxdecore.1:${PORTSDIR}/graphics/libdivxdecore-devel +LIB_DEPENDS+= divxencore.0:${PORTSDIR}/graphics/libdivxencore +.endif USE_QT_VER= 2 USE_XLIB= yes @@ -30,7 +34,7 @@ USE_LIBTOOL= yes LIBTOOLFILES= acinclude.m4 CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \ CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib" -CONFIGURE_ARGS= --with-gnu-ld +CONFIGURE_ARGS= --with-gnu-ld --enable-iconv PLIST_SUB= LIB_VERSION="${LIB_VERSION}" VERSION="${VERSION}" @@ -60,7 +64,7 @@ PLIST_SUB+= MAD="@comment " # libvorbis; thus, libogg .if !defined(WITHOUT_VORBIS) -LIB_DEPENDS= vorbis.1:${PORTSDIR}/audio/libvorbis +LIB_DEPENDS+= vorbis.1:${PORTSDIR}/audio/libvorbis PLIST_SUB+= VORBIS="" .else @@ -77,6 +81,9 @@ pre-everything:: .if !defined(WITHOUT_MAD) @${ECHO_MSG} "You can disable mad support by defining WITHOUT_MAD." .endif +.if !defined(WITHOUT_DIVX) + @${ECHO_MSG} "You can disable divx support by defining WITHOUT_DIVX." +.endif .if !defined(WITHOUT_VORBIS) @${ECHO_MSG} "You can disable vorbis support by defining WITHOUT_VORBIS." .endif @@ -88,14 +95,12 @@ packet 'pth' is installed.";\ ${FALSE};\ fi -post-patch: - @${PERL} -pi -e "s|decore.h|divx/decore.h|; \ - s|encore2.h|divx/encore.h|" ${WRKSRC}/plugins/libdivx4/* - pre-configure: @${PERL} -pi -e "s|-lqt|-lqt2|g;s|qt-mt|qt2-mt|g;\ - s|^(PACKAGE=avifile).*|\1|" \ - ${WRKSRC}/configure + s|^(PACKAGE=avifile).*|\1|;s|||; \ + s|||" ${WRKSRC}/configure + @${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -pi -e \ + "s|decore.h|divx/decore.h|; s|encore2.h|divx/encore.h|" @${PERL} -pi -e "s|-ljpeg|-L${LOCALBASE}/lib -ljpeg|g" \ ${WRKSRC}/samples/mjpeg_plugin/Makefile.in @${FIND} ${WRKSRC} \( -name Makefile.in -o -name configure \) | \ @@ -123,6 +128,7 @@ post-install: .include .if ${ARCH} == "i386" +LIB_DEPENDS+= SDL-1.1:${PORTSDIR}/devel/sdl12 RUN_DEPENDS+= ${CODEC_DETECTION_FILE}:${CODEC_PORT} CONFIGURE_ARGS+= --enable-x86opt --with-win32-path=${LOCALBASE}/lib/win32 diff --git a/graphics/avifile/files/patch-libvideorenderer.cpp b/graphics/avifile/files/patch-libvideorenderer.cpp new file mode 100644 index 00000000000..d7d335fb535 --- /dev/null +++ b/graphics/avifile/files/patch-libvideorenderer.cpp @@ -0,0 +1,20 @@ +--- lib/video/renderer.cpp.orig Sat Jan 19 18:52:21 2002 ++++ lib/video/renderer.cpp Sat Jan 19 18:53:21 2002 +@@ -1166,7 +1166,7 @@ + cout<<"iconv open error"<