From 7c971233ec530fee72ee07004573ce062ebd0b42 Mon Sep 17 00:00:00 2001 From: makc Date: Wed, 28 Sep 2011 17:50:53 +0000 Subject: Update to 2.0 Add options Add licence PR: ports/160761 Submitted by: Veniamin Gvozdikov --- audio/kid3-kde4/Makefile | 63 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 9 deletions(-) (limited to 'audio/kid3-kde4/Makefile') diff --git a/audio/kid3-kde4/Makefile b/audio/kid3-kde4/Makefile index e534c9188ea7..83dfd3554a99 100644 --- a/audio/kid3-kde4/Makefile +++ b/audio/kid3-kde4/Makefile @@ -6,7 +6,7 @@ # PORTNAME= kid3 -PORTVERSION= 1.6 +PORTVERSION= 2.0 CATEGORIES= audio kde MASTER_SITES= SF PKGNAMESUFFIX= -kde4 @@ -14,13 +14,9 @@ PKGNAMESUFFIX= -kde4 MAINTAINER= makc@FreeBSD.org COMMENT= MP3/Ogg/FLAC tag editor for KDE +LICENSE= GPLv2 + BUILD_DEPENDS= ${LOCALBASE}/share/xml/docbook/4.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml -LIB_DEPENDS= id3-3.8.3:${PORTSDIR}/audio/id3lib \ - FLAC.10:${PORTSDIR}/audio/flac \ - ogg.7:${PORTSDIR}/audio/libogg \ - vorbis.4:${PORTSDIR}/audio/libvorbis \ - tunepimp.5:${PORTSDIR}/audio/libtunepimp \ - mp4v2.10:${PORTSDIR}/multimedia/mp4v2 USE_KDE4= kdelibs kdeprefix kdehier automoc4 USE_QT_VER= 4 @@ -30,7 +26,56 @@ USE_CMAKE= yes USE_GETTEXT= yes MAKE_JOBS_SAFE= yes -CMAKE_ARGS+= -DCMAKE_REQUIRED_INCLUDES:STRING="${LOCALBASE}/include" \ - -DCMAKE_REQUIRED_LIBRARIES:STRING="${PTHREAD_LIBS}" +OPTIONS= FLAC "Support for FLAC files" on \ + ID3LIB "Support for mp3 files" on \ + MP4V2 "Support for mp4 files" on \ + VORBIS "Support for Ogg/Vorbis files" on \ + TAGLIB "Support for various audio formats" on \ + TUNEPIMP "Support for MusicBrainz service" on + +.include + +.if defined(WITHOUT_FLAC) +CMAKE_ARGS+= -DWITH_FLAC=OFF +.else +CMAKE_ARGS+= -DWITH_FLAC=ON +LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac +.endif + +.if defined(WITHOUT_ID3LIB) +CMAKE_ARGS+= -DWITH_ID3LIB=OFF +.else +CMAKE_ARGS+= -DWITH_ID3LIB=ON +LIB_DEPENDS+= id3-3.8.3:${PORTSDIR}/audio/id3lib +.endif + +.if defined(WITHOUT_MP4V2) +CMAKE_ARGS+= -DWITH_MP4V2=OFF +.else +CMAKE_ARGS+= -DWITH_MP4V2=ON +LIB_DEPENDS+= mp4v2.10:${PORTSDIR}/multimedia/mp4v2 +.endif + +.if defined(WITHOUT_VORBIS) +CMAKE_ARGS+= -DWITH_VORBIS=OFF +.else +CMAKE_ARGS+= -DWITH_VORBIS=ON +LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis \ + ogg.7:${PORTSDIR}/audio/libogg +.endif + +.if defined(WITHOUT_TAGLIB) +CMAKE_ARGS+= -DWITH_TAGLIB=OFF +.else +CMAKE_ARGS+= -DWITH_TAGLIB=ON +LIB_DEPENDS+= tag.1:${PORTSDIR}/audio/taglib +.endif + +.if defined(WITHOUT_TUNEPIMP) +CMAKE_ARGS+= -DWITH_TUNEPIMP=OFF +.else +CMAKE_ARGS+= -DWITH_TUNEPIMP=ON +LIB_DEPENDS+= tunepimp.5:${PORTSDIR}/audio/libtunepimp +.endif .include -- cgit