[Midnightbsd-cvs] mports [23565] trunk/audio: add liblastfm
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Jun 9 19:04:27 EDT 2018
Revision: 23565
http://svnweb.midnightbsd.org/mports/?rev=23565
Author: laffer1
Date: 2018-06-09 19:04:27 -0400 (Sat, 09 Jun 2018)
Log Message:
-----------
add liblastfm
Modified Paths:
--------------
trunk/audio/Makefile
Added Paths:
-----------
trunk/audio/liblastfm/
trunk/audio/liblastfm/Makefile
trunk/audio/liblastfm/distinfo
trunk/audio/liblastfm/files/
trunk/audio/liblastfm/files/patch-CMakeLists.txt
trunk/audio/liblastfm/files/patch-src_mbid__mp3.c
trunk/audio/liblastfm/pkg-descr
trunk/audio/liblastfm/pkg-plist
Modified: trunk/audio/Makefile
===================================================================
--- trunk/audio/Makefile 2018-06-09 23:02:40 UTC (rev 23564)
+++ trunk/audio/Makefile 2018-06-09 23:04:27 UTC (rev 23565)
@@ -74,6 +74,7 @@
SUBDIR += libgpod
SUBDIR += libgme
SUBDIR += libid3tag
+SUBDIR += liblastfm
SUBDIR += liblo
SUBDIR += libmad
SUBDIR += libmikmod
Added: trunk/audio/liblastfm/Makefile
===================================================================
--- trunk/audio/liblastfm/Makefile (rev 0)
+++ trunk/audio/liblastfm/Makefile 2018-06-09 23:04:27 UTC (rev 23565)
@@ -0,0 +1,42 @@
+# Created by: Matt Tosto <datahead4 at gmail.com>
+# $FreeBSD: head/audio/liblastfm/Makefile 430702 2017-01-06 11:09:18Z jhale $
+# $MidnightBSD$
+
+PORTNAME= liblastfm
+PORTVERSION= 1.0.9
+PORTREVISION= 1
+CATEGORIES= audio
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Qt C++ library for the Last.fm webservices
+
+LICENSE= gpl3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USE_GITHUB= yes
+GH_ACCOUNT= lastfm
+
+USES= cmake pkgconfig
+USE_LDCONFIG= yes
+USE_QT4= corelib dbus network sql xml \
+ moc_build qmake_build rcc_build
+
+CMAKE_ARGS= -DBUILD_WITH_QT4:BOOL=ON
+
+OPTIONS_DEFINE= FINGERPRINT TEST
+OPTIONS_DEFAULT= FINGERPRINT
+OPTIONS_SUB= yes
+
+FINGERPRINT_DESC= Build the lastfm-fingerprint library
+FINGERPRINT_LIB_DEPENDS=libsamplerate.so:audio/libsamplerate \
+ libfftw3f.so:math/fftw3-float
+FINGERPRINT_CMAKE_BOOL= BUILD_FINGERPRINT
+# We only need fftw3.h from math/fftw3; no need to install
+FINGERPRINT_BUILD_DEPENDS= ${NONEXISTENT}:math/fftw3:patch
+FINGERPRINT_CMAKE_ON= -DLIBFFTW3_INCLUDE_DIR:PATH=`${MAKE} -C ${PORTSDIR}/math/fftw3 -VWRKSRC`/api
+
+TEST_USE= QT4=qtestlib_build
+TEST_CMAKE_BOOL= BUILD_TESTS
+TEST_TARGET= test
+
+.include <bsd.port.mk>
Property changes on: trunk/audio/liblastfm/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/audio/liblastfm/distinfo
===================================================================
--- trunk/audio/liblastfm/distinfo (rev 0)
+++ trunk/audio/liblastfm/distinfo 2018-06-09 23:04:27 UTC (rev 23565)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1528585429
+SHA256 (liblastfm-1.0.9_GH0.tar.gz) = 5276b5fe00932479ce6fe370ba3213f3ab842d70a7d55e4bead6e26738425f7b
+SIZE (liblastfm-1.0.9_GH0.tar.gz) = 119320
Property changes on: trunk/audio/liblastfm/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/audio/liblastfm/files/patch-CMakeLists.txt
===================================================================
--- trunk/audio/liblastfm/files/patch-CMakeLists.txt (rev 0)
+++ trunk/audio/liblastfm/files/patch-CMakeLists.txt 2018-06-09 23:04:27 UTC (rev 23565)
@@ -0,0 +1,25 @@
+- Support symbol visibility with Clang
+- Don't put linker flags in CXXFLAGS
+
+--- CMakeLists.txt.orig 2014-10-02 14:05:46 UTC
++++ CMakeLists.txt
+@@ -1,4 +1,5 @@
+ cmake_minimum_required(VERSION 2.8.6)
++cmake_policy(SET CMP0043 OLD)
+ project(liblastfm)
+
+ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
+@@ -62,11 +63,11 @@ else()
+ endif()
+
+
+-if(CMAKE_COMPILER_IS_GNUCXX)
++if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+ add_definitions("-fno-operator-names -fvisibility-inlines-hidden -fvisibility=hidden")
+ endif()
+ if(UNIX AND NOT APPLE)
+-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--no-undefined")
++set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
+ endif()
+
+ if(MSVC)
Property changes on: trunk/audio/liblastfm/files/patch-CMakeLists.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/audio/liblastfm/files/patch-src_mbid__mp3.c
===================================================================
--- trunk/audio/liblastfm/files/patch-src_mbid__mp3.c (rev 0)
+++ trunk/audio/liblastfm/files/patch-src_mbid__mp3.c 2018-06-09 23:04:27 UTC (rev 23565)
@@ -0,0 +1,15 @@
+Silence warning
+warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
+ if (!strncmp(head,"ID3",3) == 0) {
+
+--- src/mbid_mp3.c.orig 2014-10-02 14:05:46 UTC
++++ src/mbid_mp3.c
+@@ -94,7 +94,7 @@ int getMP3_MBID(const char *path, char m
+
+ while (s) {
+ mfile(3,head,fp,&s);
+- if (!strncmp(head,"ID3",3) == 0) {
++ if (!(strncmp(head,"ID3",3) == 0)) {
+ //debug("No ID3v2 tag found: %s\n",path);
+ break;
+ }
Property changes on: trunk/audio/liblastfm/files/patch-src_mbid__mp3.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/audio/liblastfm/pkg-descr
===================================================================
--- trunk/audio/liblastfm/pkg-descr (rev 0)
+++ trunk/audio/liblastfm/pkg-descr 2018-06-09 23:04:27 UTC (rev 23565)
@@ -0,0 +1,5 @@
+liblastfm is a collection of libraries to help you integrate Last.fm services
+into your rich desktop software. It is officially supported software developed
+by Last.fm staff.
+
+WWW: https://github.com/lastfm/liblastfm
Property changes on: trunk/audio/liblastfm/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/audio/liblastfm/pkg-plist
===================================================================
--- trunk/audio/liblastfm/pkg-plist (rev 0)
+++ trunk/audio/liblastfm/pkg-plist 2018-06-09 23:04:27 UTC (rev 23565)
@@ -0,0 +1,36 @@
+include/lastfm/AbstractType.h
+include/lastfm/Album.h
+include/lastfm/Artist.h
+include/lastfm/Audioscrobbler.h
+include/lastfm/Auth.h
+include/lastfm/Chart.h
+%%FINGERPRINT%%include/lastfm/Fingerprint.h
+include/lastfm/FingerprintId.h
+%%FINGERPRINT%%include/lastfm/FingerprintableSource.h
+include/lastfm/InternetConnectionMonitor.h
+include/lastfm/Library.h
+include/lastfm/Mbid.h
+include/lastfm/NetworkAccessManager.h
+include/lastfm/NetworkConnectionMonitor.h
+include/lastfm/Playlist.h
+include/lastfm/RadioStation.h
+include/lastfm/RadioTuner.h
+include/lastfm/ScrobbleCache.h
+include/lastfm/ScrobblePoint.h
+include/lastfm/Tag.h
+include/lastfm/Tasteometer.h
+include/lastfm/Track.h
+include/lastfm/Url.h
+include/lastfm/UrlBuilder.h
+include/lastfm/User.h
+include/lastfm/XmlQuery.h
+include/lastfm/Xspf.h
+include/lastfm/global.h
+include/lastfm/misc.h
+include/lastfm/ws.h
+lib/liblastfm.so
+lib/liblastfm.so.1
+lib/liblastfm.so.1.0.9
+%%FINGERPRINT%%lib/liblastfm_fingerprint.so
+%%FINGERPRINT%%lib/liblastfm_fingerprint.so.1
+%%FINGERPRINT%%lib/liblastfm_fingerprint.so.1.0.9
Property changes on: trunk/audio/liblastfm/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list