diff --git c/audio/libechonest-qt5/Makefile i/audio/libechonest-qt5/Makefile new file mode 100644 index 000000000000..f1f93fe43efb --- /dev/null +++ i/audio/libechonest-qt5/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +PKGNAMESUFFIX= -qt5 + +COMMENT= Collection of C++/Qt5 classes designed to use the APIs of The Echo Nest + +PLIST= ${PKGDIR}/pkg-plist.qt5 + +MASTERDIR= ${.CURDIR}/../libechonest +.include "${MASTERDIR}/Makefile" diff --git c/audio/libechonest/Makefile i/audio/libechonest/Makefile index 4e4809fb81fe..773b48d3a7e0 100644 --- c/audio/libechonest/Makefile +++ i/audio/libechonest/Makefile @@ -7,25 +7,32 @@ PORTREVISION= 1 CATEGORIES= audio MAINTAINER= nivit@FreeBSD.org -COMMENT= Collection of C++/Qt classes designed to use the APIs of The Echo Nest +COMMENT= Collection of C++/Qt4 classes designed to use the APIs of The Echo Nest LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libqjson.so:devel/qjson - +USE_GITHUB= yes GH_ACCOUNT= lfranchi -OPTIONS_DEFINE= TEST +USES= cmake pkgconfig +USE_LDCONFIG= yes PLIST_SUB= PORTVERSION=${PORTVERSION} -TEST_CMAKE_BOOL=ECHONEST_BUILD_TESTS -TEST_USE= qt4=qtestlib_build,xml_build +.if defined(PKGNAMESUFFIX) +CMAKE_ARGS+= -DBUILD_WITH_QT4=OFF +LIB_DEPENDS= libqjson-qt5.so:devel/qjson-qt5 +USE_QT5= core buildtools_build qmake_build network +TEST_USE= qt5=testlib_build +.else +LIB_DEPENDS= libqjson.so:devel/qjson +USE_QT4= corelib qmake_build moc_build network xml rcc_build +TEST_USE= qt4=qtestlib_build +.endif -USES= cmake pkgconfig -USE_GITHUB= yes -USE_LDCONFIG= yes -USE_QT4= corelib qmake_build moc_build network rcc_build +OPTIONS_DEFINE= TEST + +TEST_CMAKE_BOOL=ECHONEST_BUILD_TESTS .include diff --git c/audio/libechonest/pkg-plist.qt5 i/audio/libechonest/pkg-plist.qt5 new file mode 100644 index 000000000000..badb1c9e4546 --- /dev/null +++ i/audio/libechonest/pkg-plist.qt5 @@ -0,0 +1,21 @@ +include/echonest5/Artist.h +include/echonest5/ArtistTypes.h +include/echonest5/AudioSummary.h +include/echonest5/Catalog.h +include/echonest5/CatalogArtist.h +include/echonest5/CatalogItem.h +include/echonest5/CatalogSong.h +include/echonest5/CatalogUpdateEntry.h +include/echonest5/CommonTypes.h +include/echonest5/Config.h +include/echonest5/Genre.h +include/echonest5/Playlist.h +include/echonest5/Song.h +include/echonest5/Track.h +include/echonest5/TypeInformation.h +include/echonest5/Util.h +include/echonest5/echonest_export.h +lib/libechonest5.so +lib/libechonest5.so.2 +lib/libechonest5.so.%%PORTVERSION%% +libdata/pkgconfig/libechonest5.pc