From cde62bf8127bc5dc6768d9639625bea1b9a08829 Mon Sep 17 00:00:00 2001 From: lioux Date: Sun, 7 Jan 2001 14:36:04 +0000 Subject: 1) Add audio/lame as a LIB_DEPENDS 2) Have this port use the port's system shared version of the lame library instead of building its own static version. Add both some detection code and necessary hooks to avifile's configure system (defensive programming) using some patches 3) Add a simple stale port's tree defensive check. After the library dependency phase, if one gets a lame library but no shared library ... bogus. The avifile depending on the new version of lame port was added after the aforementioned. Warn the user about it. A side effect (of LIB_DEPENDS) is that the new lame dependency is always built even if there is an old version of lame installed. 4) PORTREVISION bump Approved by: maintainer --- graphics/avifile/Makefile | 17 ++++++++++++++++- graphics/win32-codecs/Makefile | 17 ++++++++++++++++- multimedia/avifile/Makefile | 17 ++++++++++++++++- multimedia/win32-codecs/Makefile | 17 ++++++++++++++++- 4 files changed, 64 insertions(+), 4 deletions(-) diff --git a/graphics/avifile/Makefile b/graphics/avifile/Makefile index 2140e94..d4d2eff 100644 --- a/graphics/avifile/Makefile +++ b/graphics/avifile/Makefile @@ -7,6 +7,7 @@ PORTNAME= avifile PORTVERSION= 0.53.1 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://ernie.eit.uni-kl.de/avifile/ \ http://divx.euro.ru/ \ @@ -18,7 +19,8 @@ EXTRACT_ONLY= avifile-${PORTVERSION}.tar.gz MAINTAINER= holger@eit.uni-kl.de -LIB_DEPENDS= SDL-1.1.2:${PORTSDIR}/devel/sdl-devel +LIB_DEPENDS= SDL-1.1.2:${PORTSDIR}/devel/sdl-devel \ + mp3lame.1:${PORTSDIR}/audio/lame BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip WRKSRC= ${WRKDIR}/${PORTNAME}-0.53 @@ -41,6 +43,7 @@ CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \ CONFIGURE_ARGS= --with-qt-includes=${X11BASE}/include/qt2 \ --with-qt-libraries=${X11BASE}/lib \ --with-win32-path=${LOCALBASE}/lib/win32 \ + --with-mp3-lame \ --enable-release PLIST_SUB= LIB_VERSION="${LIB_VERSION}" @@ -58,6 +61,18 @@ DIFF?= /usr/bin/diff .include +.if make(lib-depends) +.if !exists(${LOCALBASE}/lib/libmp3lame.so) && exists(${LOCALBASE}/bin/lame) +lib-depends: + @${ECHO_MSG} ====> + @${ECHO_MSG} ====> Error: You have an old version of lame installed. + @${ECHO_MSG} ====> You need at least port version 3.70_1! + @${ECHO_MSG} ====> Please deinstall lame first, then build avifile. + @${ECHO_MSG} ====> + @${FALSE} +.endif +.endif + post-extract: @${LOCALBASE}/bin/unzip ${DISTDIR}/binaries-${CODEC_VERSION}.zip \ -d ${WRKDIR}/codecs diff --git a/graphics/win32-codecs/Makefile b/graphics/win32-codecs/Makefile index 2140e94..d4d2eff 100644 --- a/graphics/win32-codecs/Makefile +++ b/graphics/win32-codecs/Makefile @@ -7,6 +7,7 @@ PORTNAME= avifile PORTVERSION= 0.53.1 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://ernie.eit.uni-kl.de/avifile/ \ http://divx.euro.ru/ \ @@ -18,7 +19,8 @@ EXTRACT_ONLY= avifile-${PORTVERSION}.tar.gz MAINTAINER= holger@eit.uni-kl.de -LIB_DEPENDS= SDL-1.1.2:${PORTSDIR}/devel/sdl-devel +LIB_DEPENDS= SDL-1.1.2:${PORTSDIR}/devel/sdl-devel \ + mp3lame.1:${PORTSDIR}/audio/lame BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip WRKSRC= ${WRKDIR}/${PORTNAME}-0.53 @@ -41,6 +43,7 @@ CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \ CONFIGURE_ARGS= --with-qt-includes=${X11BASE}/include/qt2 \ --with-qt-libraries=${X11BASE}/lib \ --with-win32-path=${LOCALBASE}/lib/win32 \ + --with-mp3-lame \ --enable-release PLIST_SUB= LIB_VERSION="${LIB_VERSION}" @@ -58,6 +61,18 @@ DIFF?= /usr/bin/diff .include +.if make(lib-depends) +.if !exists(${LOCALBASE}/lib/libmp3lame.so) && exists(${LOCALBASE}/bin/lame) +lib-depends: + @${ECHO_MSG} ====> + @${ECHO_MSG} ====> Error: You have an old version of lame installed. + @${ECHO_MSG} ====> You need at least port version 3.70_1! + @${ECHO_MSG} ====> Please deinstall lame first, then build avifile. + @${ECHO_MSG} ====> + @${FALSE} +.endif +.endif + post-extract: @${LOCALBASE}/bin/unzip ${DISTDIR}/binaries-${CODEC_VERSION}.zip \ -d ${WRKDIR}/codecs diff --git a/multimedia/avifile/Makefile b/multimedia/avifile/Makefile index 2140e94..d4d2eff 100644 --- a/multimedia/avifile/Makefile +++ b/multimedia/avifile/Makefile @@ -7,6 +7,7 @@ PORTNAME= avifile PORTVERSION= 0.53.1 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://ernie.eit.uni-kl.de/avifile/ \ http://divx.euro.ru/ \ @@ -18,7 +19,8 @@ EXTRACT_ONLY= avifile-${PORTVERSION}.tar.gz MAINTAINER= holger@eit.uni-kl.de -LIB_DEPENDS= SDL-1.1.2:${PORTSDIR}/devel/sdl-devel +LIB_DEPENDS= SDL-1.1.2:${PORTSDIR}/devel/sdl-devel \ + mp3lame.1:${PORTSDIR}/audio/lame BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip WRKSRC= ${WRKDIR}/${PORTNAME}-0.53 @@ -41,6 +43,7 @@ CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \ CONFIGURE_ARGS= --with-qt-includes=${X11BASE}/include/qt2 \ --with-qt-libraries=${X11BASE}/lib \ --with-win32-path=${LOCALBASE}/lib/win32 \ + --with-mp3-lame \ --enable-release PLIST_SUB= LIB_VERSION="${LIB_VERSION}" @@ -58,6 +61,18 @@ DIFF?= /usr/bin/diff .include +.if make(lib-depends) +.if !exists(${LOCALBASE}/lib/libmp3lame.so) && exists(${LOCALBASE}/bin/lame) +lib-depends: + @${ECHO_MSG} ====> + @${ECHO_MSG} ====> Error: You have an old version of lame installed. + @${ECHO_MSG} ====> You need at least port version 3.70_1! + @${ECHO_MSG} ====> Please deinstall lame first, then build avifile. + @${ECHO_MSG} ====> + @${FALSE} +.endif +.endif + post-extract: @${LOCALBASE}/bin/unzip ${DISTDIR}/binaries-${CODEC_VERSION}.zip \ -d ${WRKDIR}/codecs diff --git a/multimedia/win32-codecs/Makefile b/multimedia/win32-codecs/Makefile index 2140e94..d4d2eff 100644 --- a/multimedia/win32-codecs/Makefile +++ b/multimedia/win32-codecs/Makefile @@ -7,6 +7,7 @@ PORTNAME= avifile PORTVERSION= 0.53.1 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://ernie.eit.uni-kl.de/avifile/ \ http://divx.euro.ru/ \ @@ -18,7 +19,8 @@ EXTRACT_ONLY= avifile-${PORTVERSION}.tar.gz MAINTAINER= holger@eit.uni-kl.de -LIB_DEPENDS= SDL-1.1.2:${PORTSDIR}/devel/sdl-devel +LIB_DEPENDS= SDL-1.1.2:${PORTSDIR}/devel/sdl-devel \ + mp3lame.1:${PORTSDIR}/audio/lame BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip WRKSRC= ${WRKDIR}/${PORTNAME}-0.53 @@ -41,6 +43,7 @@ CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \ CONFIGURE_ARGS= --with-qt-includes=${X11BASE}/include/qt2 \ --with-qt-libraries=${X11BASE}/lib \ --with-win32-path=${LOCALBASE}/lib/win32 \ + --with-mp3-lame \ --enable-release PLIST_SUB= LIB_VERSION="${LIB_VERSION}" @@ -58,6 +61,18 @@ DIFF?= /usr/bin/diff .include +.if make(lib-depends) +.if !exists(${LOCALBASE}/lib/libmp3lame.so) && exists(${LOCALBASE}/bin/lame) +lib-depends: + @${ECHO_MSG} ====> + @${ECHO_MSG} ====> Error: You have an old version of lame installed. + @${ECHO_MSG} ====> You need at least port version 3.70_1! + @${ECHO_MSG} ====> Please deinstall lame first, then build avifile. + @${ECHO_MSG} ====> + @${FALSE} +.endif +.endif + post-extract: @${LOCALBASE}/bin/unzip ${DISTDIR}/binaries-${CODEC_VERSION}.zip \ -d ${WRKDIR}/codecs -- cgit v1.1