summaryrefslogtreecommitdiff
path: root/audio/amarok-kde4
diff options
context:
space:
mode:
authorMichael Landin <mich@FreeBSD.org>2006-07-03 15:41:32 +0000
committerMichael Landin <mich@FreeBSD.org>2006-07-03 15:41:32 +0000
commitff45513d0bf64876eb21aa8b18231725b0a1efa7 (patch)
treec0bb95211584d4f73a19fc937da6582a4b58f0fb /audio/amarok-kde4
parent- Update www/p5-HTML-Template-Compiled from version 0.68 to 0.69 (diff)
- check to see if OPTIONS are up-to-date before build
Diffstat (limited to 'audio/amarok-kde4')
-rw-r--r--audio/amarok-kde4/Makefile14
1 files changed, 14 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>