diff options
author | makc <makc@FreeBSD.org> | 2012-10-28 20:12:51 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2012-10-28 20:12:51 +0800 |
commit | 8454eb8ef5039bc4b72929c06254ef0b2d5a7553 (patch) | |
tree | b8d672b9a19addba4adec91a7c7e89e9fb1dcfa6 /audio/kid3-kde4/Makefile | |
parent | 04d4091b861aeb583e90bf942bb5f44184d3f1e9 (diff) | |
download | freebsd-ports-gnome-8454eb8ef5039bc4b72929c06254ef0b2d5a7553.tar.gz freebsd-ports-gnome-8454eb8ef5039bc4b72929c06254ef0b2d5a7553.tar.zst freebsd-ports-gnome-8454eb8ef5039bc4b72929c06254ef0b2d5a7553.zip |
Add option for recently added Chromaprint
Feature safe: yes
Diffstat (limited to 'audio/kid3-kde4/Makefile')
-rw-r--r-- | audio/kid3-kde4/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/audio/kid3-kde4/Makefile b/audio/kid3-kde4/Makefile index 11df8f869924..6c5d7a14d2b7 100644 --- a/audio/kid3-kde4/Makefile +++ b/audio/kid3-kde4/Makefile @@ -2,6 +2,7 @@ PORTNAME= kid3 PORTVERSION= 2.2 +PORTREVISION= 1 CATEGORIES= audio kde MASTER_SITES= SF @@ -15,12 +16,10 @@ LATEST_LINK= ${PORTNAME}-kde4 USE_KDE4= kdelibs kdeprefix kdehier automoc4 USE_QT4= qmake_build moc_build rcc_build uic_build USE_CMAKE= yes -# libchromaprint has not been ported yet -CMAKE_ARGS= -DWITH_CHROMAPRINT=off USE_GETTEXT= yes MAKE_JOBS_SAFE= yes -OPTIONS_DEFINE= FLAC ID3LIB MP4V2 VORBIS TAGLIB +OPTIONS_DEFINE= FLAC ID3LIB MP4V2 VORBIS TAGLIB CHROMAPRINT OPTIONS_DEFAULT= ${OPTIONS_DEFINE} FLAC_DESC= Support for FLAC files @@ -28,6 +27,7 @@ ID3LIB_DESC= Support for mp3 files MP4V2_DESC= Support for mp4 files VORBIS_DESC= Support for Ogg/Vorbis files TAGLIB_DESC= Support for various audio formats +CHROMAPRINT_DESC= Support for Chromaprint audio fingerprints .include <bsd.port.options.mk> @@ -67,6 +67,14 @@ LIB_DEPENDS+= tag.1:${PORTSDIR}/audio/taglib CMAKE_ARGS+= -DWITH_TAGLIB=OFF .endif +.if ${PORT_OPTIONS:MCHROMAPRINT} +CMAKE_ARGS+= -DWITH_CHROMAPRINT=ON \ + -DWITH_FFMPEG=ON +LIB_DEPENDS+= chromaprint:${PORTSDIR}/audio/chromaprint +.else +CMAKE_ARGS+= -DWITH_CHROMAPRINT=OFF +.endif + pre-configure: ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/CMakeLists.txt |