the Fink project is an effort to port
popular Unix programs to Mac OS X
Info4: <<
Package: liblastfm-%type_pkg[lastfm]-dev
Version: 0.3.3
Revision: 2
Description: Development files for Last.fm web services
Type: lastfm (x11 mac)
License: GPL
Maintainer: Benjamin Reed
Depends: liblastfm-%type_pkg[lastfm]-shlibs (= %v-%r)
BuildDepends: <<
cmake (>= 2.6.4-1),
fftw3,
fink (>= 0.29.7-1),
kde4-buildenv (>= 4.4.3-1),
libsamplerate0-dev,
qt4-base-%type_pkg[lastfm]
<<
BuildDependsOnly: true
GCC: 4.0
Source: http://github.com/mxcl/liblastfm/tarball/%v
Source-MD5: fe339bf46aefc515c251200d10262f79
SourceDirectory: mxcl-liblastfm-1c739eb
SourceRename: %n-%v.tar.gz
PatchScript: <<
#!/bin/sh -ev
%{default_script}
if [ "%type_pkg[lastfm]" = "x11" ]; then
perl -pi -e 's,macosx,freebsd,g' admin/platform.rb
fi
<<
PatchFile: liblastfm-dev.patch
PatchFile-MD5: b878f7800a49676f545081cf293fa3e0
UseMaxBuildJobs: true
CompileScript: <<
#!/bin/sh -ev
export KDE4_PREFIX="%p" KDE4_TYPE="%type_pkg[lastfm]" KDE4_INSTALL_PREFIX="%p/opt/lastfm/%type_pkg[lastfm]"
. %p/sbin/kde4-buildenv.sh
export LFM_PREFIX=$KDE4_INSTALL_PREFIX
export PATH="%p/lib/qt4-%type_pkg[lastfm]/bin:$PATH"
./configure --prefix=$KDE4_INSTALL_PREFIX --release
make
<<
InstallScript: <<
#!/bin/sh -ev
make -j1 install DESTDIR="%d"
install_name_tool -id "%p/opt/lastfm/%type_pkg[lastfm]/lib/liblastfm.0.dylib" "%i/opt/lastfm/%type_pkg[lastfm]/lib/liblastfm.0.3.3.dylib"
install_name_tool -id "%p/opt/lastfm/%type_pkg[lastfm]/lib/liblastfm_fingerprint.0.dylib" "%i/opt/lastfm/%type_pkg[lastfm]/lib/liblastfm_fingerprint.0.3.3.dylib"
install_name_tool -change "liblastfm.0.dylib" "%p/opt/lastfm/%type_pkg[lastfm]/lib/liblastfm.0.dylib" "%i/opt/lastfm/%type_pkg[lastfm]/lib/liblastfm_fingerprint.0.3.3.dylib"
install -d -m 755 %i/share/doc/%N
find demos -name _build -o -name Makefile -exec rm -rf {} \; || :
rsync -avr demos/ %i/share/doc/%N/demos/
<<
DocFiles: COPYING README
SplitOff: <<
Package: liblastfm-%type_pkg[lastfm]-shlibs
Description: Shared libraries for Last.fm web services
Depends: <<
fftw3-shlibs,
liblastfm-x11-shlibs,
libsamplerate0-shlibs,
qt4-base-x11-qtcore-shlibs,
qt4-base-x11-qtnetwork-shlibs,
qt4-base-x11-qtsql-shlibs,
qt4-base-x11-qtxml-shlibs
<<
Files: <<
opt/lastfm/%type_pkg[lastfm]/lib/liblastfm.0*.dylib
opt/lastfm/%type_pkg[lastfm]/lib/liblastfm_fingerprint.0*.dylib
<<
Shlibs: <<
%p/opt/lastfm/%type_pkg[lastfm]/lib/liblastfm.0.dylib 0.3.0 %n (>= 0.3.3-1)
%p/opt/lastfm/%type_pkg[lastfm]/lib/liblastfm_fingerprint.0.dylib 0.3.0 %n (>= 0.3.3-1)
<<
<<
Homepage: http://last.fm
DescDetail: <<
liblastfm is a collection of C++/Qt4 libraries provided by
Last.fm for use with their web services.
<<
<<
diff -Nurd liblastfm-0.3.0/src/fingerprint/contrib/lastfm-fingerprint.pro liblastfm-0.3.0-new/src/fingerprint/contrib/lastfm-fingerprint.pro
--- liblastfm-0.3.0/src/fingerprint/contrib/lastfm-fingerprint.pro 2009-06-04 12:41:27.000000000 -0400
+++ liblastfm-0.3.0-new/src/fingerprint/contrib/lastfm-fingerprint.pro 2010-02-12 19:58:54.000000000 -0500
@@ -2,12 +2,3 @@
LIBS += -L$$DESTDIR -llastfm -llastfm_fingerprint
LIBS += -lvorbisfile -lFLAC -lfaad -lmp4ff -lmad
SOURCES = AacSource.cpp FlacSource.cpp MadSource.cpp VorbisSource.cpp main.cpp
-
-mac {
- INCLUDEPATH += /opt/local/include
- LIBS += -L/opt/local/lib
-
- DEFINES += MACPORTS_SUCKS
- SOURCES -= AacSource.cpp
- LIBS -= -lmp4ff
-}
diff -Nurd liblastfm-0.3.0/src/ws/InternetConnectionMonitor.cpp liblastfm-0.3.0-new/src/ws/InternetConnectionMonitor.cpp
--- liblastfm-0.3.0/src/ws/InternetConnectionMonitor.cpp 2009-06-04 12:41:27.000000000 -0400
+++ liblastfm-0.3.0-new/src/ws/InternetConnectionMonitor.cpp 2010-02-12 20:07:03.000000000 -0500
@@ -20,7 +20,7 @@
#include "InternetConnectionMonitor.h"
#include "ws.h"
-#ifdef __APPLE__
+#ifdef Q_WS_MAC
#include
#include
QList
@@ -72,7 +72,7 @@
: QObject( parent )
, m_up( true )
{
-#ifdef __APPLE__
+#ifdef Q_WS_MAC
if (monitors.isEmpty())
{
SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithName( NULL, LASTFM_WS_HOSTNAME );
@@ -91,7 +91,7 @@
}
-#ifdef __APPLE__
+#ifdef Q_WS_MAC
void
lastfm::InternetConnectionMonitor::callback( SCNetworkReachabilityRef, SCNetworkConnectionFlags flags, void* )
{
diff -Nurd liblastfm-0.3.0/src/ws/NetworkAccessManager.cpp liblastfm-0.3.0-new/src/ws/NetworkAccessManager.cpp
--- liblastfm-0.3.0/src/ws/NetworkAccessManager.cpp 2009-06-04 12:41:27.000000000 -0400
+++ liblastfm-0.3.0-new/src/ws/NetworkAccessManager.cpp 2010-02-12 20:07:17.000000000 -0500
@@ -27,7 +27,7 @@
#include "win/IeSettings.h"
#include "win/Pac.h"
#endif
-#ifdef __APPLE__
+#ifdef Q_WS_MAC
#include "mac/ProxyDict.h"
#endif
@@ -57,7 +57,7 @@
QNetworkProxy::setApplicationProxy( proxy );
}
#endif
- #ifdef __APPLE__
+ #ifdef Q_WS_MAC
ProxyDict dict;
if (dict.isProxyEnabled())
{