diff options
author | mich <mich@FreeBSD.org> | 2006-07-03 23:41:32 +0800 |
---|---|---|
committer | mich <mich@FreeBSD.org> | 2006-07-03 23:41:32 +0800 |
commit | 760be3765742cd5ce31bc337a592d8b392a9314e (patch) | |
tree | 3abb21e420de53ec491634bb52bdcfd9226d0304 | |
parent | 91f1488a5ba7f3dc55bc87283c494874280ea791 (diff) | |
download | freebsd-ports-gnome-760be3765742cd5ce31bc337a592d8b392a9314e.tar.gz freebsd-ports-gnome-760be3765742cd5ce31bc337a592d8b392a9314e.tar.zst freebsd-ports-gnome-760be3765742cd5ce31bc337a592d8b392a9314e.zip |
- check to see if OPTIONS are up-to-date before build
-rw-r--r-- | audio/amarok-kde4/Makefile | 14 | ||||
-rw-r--r-- | audio/amarok/Makefile | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/audio/amarok-kde4/Makefile b/audio/amarok-kde4/Makefile index fcf70aed4a42..bd28c34fe674 100644 --- a/audio/amarok-kde4/Makefile +++ b/audio/amarok-kde4/Makefile @@ -17,6 +17,8 @@ LIB_DEPENDS= tag.5:${PORTSDIR}/audio/taglib \ tunepimp:${PORTSDIR}/audio/libtunepimp \ mp4v2:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 +MIN_OPTIONS_VER= ${PORTNAME}-1.4.0a + USE_BZIP2= yes USE_KDEBASE_VER=3 USE_GMAKE= yes @@ -91,6 +93,8 @@ USE_PGSQL= yes CONFIGURE_ARGS+=--enable-postgresql .endif +pre-extract: check-options-version + post-patch: @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} -e 's|LIBS="-ltunepimp $$LIBS"|LIBS="-ltunepimp -liconv $$LIBS"|g' \ @@ -103,4 +107,14 @@ post-install: @${CAT} ${PKGMESSAGE} .endif +check-options-version: +.ifdef(_OPTIONS_READ) + @(if ${PKG_VERSION} -t ${_OPTIONS_READ} ${MIN_OPTIONS_VER} | ${GREP} -q '<'; \ + then ${ECHO_CMD} ""; \ + ${ECHO_CMD} "===> You have unsupported (old) OPTIONS, please do a 'make rmconfig; make'"; \ + ${ECHO_CMD} ""; \ + exit 1; \ + fi) +.endif + .include <bsd.port.post.mk> diff --git a/audio/amarok/Makefile b/audio/amarok/Makefile index fcf70aed4a42..bd28c34fe674 100644 --- a/audio/amarok/Makefile +++ b/audio/amarok/Makefile @@ -17,6 +17,8 @@ LIB_DEPENDS= tag.5:${PORTSDIR}/audio/taglib \ tunepimp:${PORTSDIR}/audio/libtunepimp \ mp4v2:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 +MIN_OPTIONS_VER= ${PORTNAME}-1.4.0a + USE_BZIP2= yes USE_KDEBASE_VER=3 USE_GMAKE= yes @@ -91,6 +93,8 @@ USE_PGSQL= yes CONFIGURE_ARGS+=--enable-postgresql .endif +pre-extract: check-options-version + post-patch: @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} -e 's|LIBS="-ltunepimp $$LIBS"|LIBS="-ltunepimp -liconv $$LIBS"|g' \ @@ -103,4 +107,14 @@ post-install: @${CAT} ${PKGMESSAGE} .endif +check-options-version: +.ifdef(_OPTIONS_READ) + @(if ${PKG_VERSION} -t ${_OPTIONS_READ} ${MIN_OPTIONS_VER} | ${GREP} -q '<'; \ + then ${ECHO_CMD} ""; \ + ${ECHO_CMD} "===> You have unsupported (old) OPTIONS, please do a 'make rmconfig; make'"; \ + ${ECHO_CMD} ""; \ + exit 1; \ + fi) +.endif + .include <bsd.port.post.mk> |