diff options
author | makc <makc@FreeBSD.org> | 2013-11-13 00:50:12 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2013-11-13 00:50:12 +0800 |
commit | aac37b6ed8d4eaa712e10fb0ffe721b7e988c4fc (patch) | |
tree | 92cf8de600db4c13e81255cdb062940d5820ccce /audio/kid3-kde4 | |
parent | a1bd68414e04ee1e7c732d3cf24b9d0df646edbd (diff) | |
download | freebsd-ports-gnome-aac37b6ed8d4eaa712e10fb0ffe721b7e988c4fc.tar.gz freebsd-ports-gnome-aac37b6ed8d4eaa712e10fb0ffe721b7e988c4fc.tar.zst freebsd-ports-gnome-aac37b6ed8d4eaa712e10fb0ffe721b7e988c4fc.zip |
- Update to 3.0.1
- Add Qt 4 only port
- Remove stale patch
Diffstat (limited to 'audio/kid3-kde4')
-rw-r--r-- | audio/kid3-kde4/Makefile | 64 | ||||
-rw-r--r-- | audio/kid3-kde4/distinfo | 4 | ||||
-rw-r--r-- | audio/kid3-kde4/files/patch-CMakeLists.txt | 13 | ||||
-rw-r--r-- | audio/kid3-kde4/files/patch-ffmpeg2 | 11 | ||||
-rw-r--r-- | audio/kid3-kde4/pkg-plist | 100 |
5 files changed, 136 insertions, 56 deletions
diff --git a/audio/kid3-kde4/Makefile b/audio/kid3-kde4/Makefile index 53e1f1d0c5a2..42e572c07f7d 100644 --- a/audio/kid3-kde4/Makefile +++ b/audio/kid3-kde4/Makefile @@ -1,22 +1,55 @@ # $FreeBSD$ PORTNAME= kid3 -PORTVERSION= 2.3 -PORTREVISION= 2 +PORTVERSION= 3.0.1 CATEGORIES= audio kde MASTER_SITES= SF MAINTAINER= makc@FreeBSD.org -COMMENT= MP3/Ogg/FLAC tag editor for KDE +COMMENT?= MP3/Ogg/FLAC tag editor for KDE LICENSE= GPLv2 -USE_KDE4= kdelibs kdeprefix kdehier automoc4 -USE_QT4= qmake_build moc_build rcc_build uic_build -USES= cmake gettext +USE_QT4= qmake_build moc_build rcc_build uic_build \ + linguist_build +USE_PERL5= build +USES= cmake:outsource perl5 +CMAKE_ARGS= -DWITH_DOCBOOKDIR=${LOCALBASE}/share/xsl/docbook \ + -DWITH_MANDIR=man +CXXFLAGS+= -I${LOCALBASE}/include -OPTIONS_DEFINE= FLAC ID3LIB MP4V2 VORBIS TAGLIB CHROMAPRINT +OPTIONS_DEFINE= CHROMAPRINT FLAC ID3LIB MP4V2 VORBIS TAGLIB \ + CLI OPTIONS_DEFAULT= ${OPTIONS_DEFINE} +OPTIONS_SUB= yes +NO_OPTIONS_SORT= yes + +.if defined(PKGNAMESUFFIX) +CONFLICTS_INSTALL= kid3-3.* + +BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl + +USES+= desktop-file-utils +USE_GNOME= libxslt:build +CMAKE_ARGS+= -DWITH_APPS="${KID3_CLI}QT" +PLIST_SUB+= QT="" KDE="@comment " + +OPTIONS_DEFINE+= PHONON +PHONON_DESC= Build with Phonon support +PHONON_CMAKE_OFF= -DWITH_PHONON=OFF +PHONON_USE= QT4=phonon +.else +CONFLICTS_INSTALL= kid3-qt4-3.* + +USE_KDE4= kdelibs automoc4 kdeprefix +CMAKE_ARGS+= -DWITH_APPS="${KID3_CLI}KDE" +PLIST_SUB+= QT="@comment " KDE="" +.endif + +PLIST_SUB= SHLIB_VER=${PORTVERSION} + +CLI_DESC= Build and install command line utility +CLI_USES= readline FLAC_DESC= Support for FLAC files FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac @@ -46,11 +79,22 @@ TAGLIB_CMAKE_OFF= -DWITH_TAGLIB=OFF CHROMAPRINT_DESC= Support for Chromaprint audio fingerprints CHROMAPRINT_LIB_DEPENDS= libchromaprint.so:${PORTSDIR}/audio/chromaprint -CHROMAPRINT_CMAKE_ON= -DWITH_CHROMAPRINT=ON \ - -DWITH_FFMPEG=ON +CHROMAPRINT_CMAKE_ON= -DWITH_CHROMAPRINT=ON CHROMAPRINT_CMAKE_OFF= -DWITH_CHROMAPRINT=OFF +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MCLI} +KID3_CLI= CLI; +.endif + +.if ${PORT_OPTIONS:MFLAC} || ${PORT_OPTIONS:MVORBIS} +PLIST_SUB+= OGGFLAC="" +.else +PLIST_SUB+= OGGFLAC="@comment " +.endif + pre-configure: - ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/CMakeLists.txt + ${REINPLACE_CMD} 's,-lstdc++,,' ${WRKSRC}/src/app/qt/CMakeLists.txt .include <bsd.port.mk> diff --git a/audio/kid3-kde4/distinfo b/audio/kid3-kde4/distinfo index aac6921d5f7e..602a26c4d4f5 100644 --- a/audio/kid3-kde4/distinfo +++ b/audio/kid3-kde4/distinfo @@ -1,2 +1,2 @@ -SHA256 (kid3-2.3.tar.gz) = 8426b40b065f5a968796d1ff92da8d7a96d67cd963df837ce30ff1cf795ae301 -SIZE (kid3-2.3.tar.gz) = 1001634 +SHA256 (kid3-3.0.1.tar.gz) = ebbae8b277c14083f87d49bcde5a86295c1874c4004fc5db2d5764ff53f15d59 +SIZE (kid3-3.0.1.tar.gz) = 994466 diff --git a/audio/kid3-kde4/files/patch-CMakeLists.txt b/audio/kid3-kde4/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..732ed7f07bad --- /dev/null +++ b/audio/kid3-kde4/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +--- ./CMakeLists.txt.orig 2013-10-29 17:19:33.000000000 +0000 ++++ ./CMakeLists.txt 2013-11-12 15:45:23.799504953 +0000 +@@ -110,8 +110,8 @@ + set(WITH_TRANSLATIONSDIR_DEFAULT "share/kid3-qt/translations") + endif (BUILD_KDE_APP OR BUILD_SHARED_LIBS) + set(WITH_BINDIR_DEFAULT "bin") +- set(WITH_LIBDIR_DEFAULT "lib${LIB_SUFFIX}/kid3") +- set(WITH_PLUGINSDIR_DEFAULT "${WITH_LIBDIR_DEFAULT}/plugins") ++ set(WITH_LIBDIR_DEFAULT "lib") ++ set(WITH_PLUGINSDIR_DEFAULT "lib/kid3") + endif (APPLE) + + set(WITH_DATAROOTDIR ${WITH_DATAROOTDIR_DEFAULT} CACHE STRING diff --git a/audio/kid3-kde4/files/patch-ffmpeg2 b/audio/kid3-kde4/files/patch-ffmpeg2 deleted file mode 100644 index be6b80f969b4..000000000000 --- a/audio/kid3-kde4/files/patch-ffmpeg2 +++ /dev/null @@ -1,11 +0,0 @@ ---- ./src/core/import/ffmpegfingerprintdecoder.cpp.orig 2013-03-10 08:02:19.000000000 +0000 -+++ ./src/core/import/ffmpegfingerprintdecoder.cpp 2013-10-22 17:55:27.124150487 +0000 -@@ -67,7 +67,7 @@ - - namespace { - --const int BUFFER_SIZE = AVCODEC_MAX_AUDIO_FRAME_SIZE * 2; -+const int BUFFER_SIZE = 192000 * 2; - - /* - * The following classes are used to benefit from the C++ diff --git a/audio/kid3-kde4/pkg-plist b/audio/kid3-kde4/pkg-plist index 297f083f86fc..1fd9db3180bc 100644 --- a/audio/kid3-kde4/pkg-plist +++ b/audio/kid3-kde4/pkg-plist @@ -1,33 +1,67 @@ -bin/kid3 -share/applications/kde4/kid3.desktop -share/apps/kid3/kid3ui.rc -share/dbus-1/interfaces/net.sourceforge.Kid3.xml -share/doc/HTML/de/kid3/common -share/doc/HTML/de/kid3/index.cache.bz2 -share/doc/HTML/de/kid3/index.docbook -share/doc/HTML/en/kid3/common -share/doc/HTML/en/kid3/index.cache.bz2 -share/doc/HTML/en/kid3/index.docbook -share/icons/hicolor/16x16/apps/kid3.png -share/icons/hicolor/32x32/apps/kid3.png -share/icons/hicolor/48x48/apps/kid3.png -share/icons/hicolor/scalable/apps/kid3.svgz -share/locale/cs/LC_MESSAGES/kid3.mo -share/locale/de/LC_MESSAGES/kid3.mo -share/locale/es/LC_MESSAGES/kid3.mo -share/locale/et/LC_MESSAGES/kid3.mo -share/locale/fi/LC_MESSAGES/kid3.mo -share/locale/fr/LC_MESSAGES/kid3.mo -share/locale/it/LC_MESSAGES/kid3.mo -share/locale/nl/LC_MESSAGES/kid3.mo -share/locale/pl/LC_MESSAGES/kid3.mo -share/locale/ru/LC_MESSAGES/kid3.mo -share/locale/sr/LC_MESSAGES/kid3.mo -share/locale/sr@ijekavian/LC_MESSAGES/kid3.mo -share/locale/sr@ijekavianlatin/LC_MESSAGES/kid3.mo -share/locale/sr@latin/LC_MESSAGES/kid3.mo -share/locale/tr/LC_MESSAGES/kid3.mo -share/locale/zh_TW/LC_MESSAGES/kid3.mo -@dirrm share/doc/HTML/en/kid3 -@dirrm share/doc/HTML/de/kid3 -@dirrm share/apps/kid3 +%%KDE%%bin/kid3 +%%CLI%%bin/kid3-cli +%%QT%%bin/kid3-qt +lib/libkid3-core.so +lib/libkid3-core.so.%%SHLIB_VER%% +lib/libkid3-gui.so +lib/libkid3-gui.so.%%SHLIB_VER%% +%%CHROMAPRINT%%lib/kid3/libacoustidimport.so +lib/kid3/libamazonimport.so +lib/kid3/libdiscogsimport.so +lib/kid3/libfreedbimport.so +%%ID3LIB%%lib/kid3/libid3libmetadata.so +%%MP4V2%%lib/kid3/libmp4v2metadata.so +lib/kid3/libmusicbrainzimport.so +%%OGGFLAC%%lib/kid3/liboggflacmetadata.so +%%TAGLIB%%lib/kid3/libtaglibmetadata.so +%%CLI%%man/de/man1/kid3-cli.1.gz +%%QT%%man/de/man1/kid3-qt.1.gz +man/de/man1/kid3.1.gz +%%CLI%%man/man1/kid3-cli.1.gz +%%QT%%man/man1/kid3-qt.1.gz +man/man1/kid3.1.gz +%%KDE%%share/applications/kde4/kid3.desktop +%%QT%%share/applications/kid3-qt.desktop +%%KDE%%share/apps/kid3/kid3ui.rc +%%KDE%%share/dbus-1/interfaces/net.sourceforge.Kid3.xml +%%KDE%%share/doc/HTML/de/kid3/common +%%KDE%%share/doc/HTML/de/kid3/index.cache.bz2 +%%KDE%%share/doc/HTML/de/kid3/index.docbook +%%KDE%%share/doc/HTML/en/kid3/common +%%KDE%%share/doc/HTML/en/kid3/index.cache.bz2 +%%KDE%%share/doc/HTML/en/kid3/index.docbook +%%QT%%share/doc/kid3-qt/kid3_de.html +%%QT%%share/doc/kid3-qt/kid3_en.html +%%QT%%share/icons/hicolor/16x16/apps/kid3-qt.png +%%KDE%%share/icons/hicolor/16x16/apps/kid3.png +%%QT%%share/icons/hicolor/32x32/apps/kid3-qt.png +%%KDE%%share/icons/hicolor/32x32/apps/kid3.png +%%QT%%share/icons/hicolor/48x48/apps/kid3-qt.png +%%KDE%%share/icons/hicolor/48x48/apps/kid3.png +%%QT%%share/icons/hicolor/scalable/apps/kid3-qt.svg +%%KDE%%share/icons/hicolor/scalable/apps/kid3.svgz +%%DATADIR%%/translations/kid3_cs.qm +%%DATADIR%%/translations/kid3_de.qm +%%DATADIR%%/translations/kid3_es.qm +%%DATADIR%%/translations/kid3_et.qm +%%DATADIR%%/translations/kid3_fi.qm +%%DATADIR%%/translations/kid3_fr.qm +%%DATADIR%%/translations/kid3_it.qm +%%DATADIR%%/translations/kid3_nl.qm +%%DATADIR%%/translations/kid3_pl.qm +%%DATADIR%%/translations/kid3_ru.qm +%%DATADIR%%/translations/kid3_sr.qm +%%DATADIR%%/translations/kid3_sr@ijekavian.qm +%%DATADIR%%/translations/kid3_sr@ijekavianlatin.qm +%%DATADIR%%/translations/kid3_sr@latin.qm +%%DATADIR%%/translations/kid3_tr.qm +%%DATADIR%%/translations/kid3_zh_TW.qm +@dirrm %%DATADIR%%/translations +@dirrm %%DATADIR%% +%%QT%%@dirrm share/doc/kid3-qt +%%KDE%%@dirrm share/doc/HTML/en/kid3 +%%KDE%%@dirrm share/doc/HTML/de/kid3 +%%KDE%%@dirrm share/apps/kid3 +@dirrmtry man/de/man1 +@dirrmtry man/de +@dirrm lib/kid3 |