[106714] trunk/dports/audio/liblastfm
michaelld at macports.org
michaelld at macports.org
Wed Jun 5 19:16:20 PDT 2013
Revision: 106714
https://trac.macports.org/changeset/106714
Author: michaelld at macports.org
Date: 2013-06-05 19:16:20 -0700 (Wed, 05 Jun 2013)
Log Message:
-----------
liblastfm: update to 1.0.7; addresses ticket #39329.
Modified Paths:
--------------
trunk/dports/audio/liblastfm/Portfile
Removed Paths:
-------------
trunk/dports/audio/liblastfm/files/
Modified: trunk/dports/audio/liblastfm/Portfile
===================================================================
--- trunk/dports/audio/liblastfm/Portfile 2013-06-06 01:42:16 UTC (rev 106713)
+++ trunk/dports/audio/liblastfm/Portfile 2013-06-06 02:16:20 UTC (rev 106714)
@@ -4,9 +4,9 @@
PortSystem 1.0
PortGroup github 1.0
PortGroup qt4 1.0
+PortGroup cmake 1.0
-github.setup mxcl liblastfm 0.3.3
-revision 2
+github.setup lastfm liblastfm 1.0.7
categories audio
license GPL-3
maintainers michaelld openmaintainer
@@ -18,74 +18,26 @@
platforms darwin
-checksums md5 fe339bf46aefc515c251200d10262f79 \
- sha1 f2e9705c9c2cbeaa14f46da9bd35ab36fe710392 \
- rmd160 690931075f38fda78c69015ca5088c166f6e1013
+checksums md5 568fce70605c0c87ffa810ae0c15e8aa \
+ sha1 b679bf76272b05373efcc2a8f3ee809599607853 \
+ rmd160 9cdd6f6ea2908a372c40dcf9efa6911c60341475
-depends_build-append port:ruby
-
depends_lib-append port:libsamplerate port:fftw-3-single
universal_variant yes
-use_parallel_build no
+# do VPATH build
-patchfiles patch-src_fingerprint_fplib_FloatingAverage.h.diff
+set vpath ${workpath}/build
+pre-configure { file mkdir ${vpath} }
+configure.dir ${vpath}
+build.dir ${vpath}
-post-patch {
- # fix library install directory
- reinplace "/target\\.path/s@\\/lib@\\\$\\\$QMAKE_LIBDIR_QT@" \
- ${worksrcpath}/src/lastfm.pro
- reinplace "/target\\.path/s@\\/lib@\\\$\\\$QMAKE_LIBDIR_QT@" \
- ${worksrcpath}/src/fingerprint/fingerprint.pro
+# set last configure argument to the reletive path
+# to the top-level cmake source
- # swap -l -L ordering (to be -L -l)
- reinplace "/LIBS/s at += \\(-l\[^ \]*\\) \\(-L\[^ \]*\\)@+= \\2 \\1@" \
- ${worksrcpath}/demos/demos.pro
- reinplace "/LIBS/s at += \\(-l\[^ \]*\\) \\(-L\[^ \]*\\)@+= \\2 \\1@" \
- ${worksrcpath}/tests/tests.pro
-}
+configure.post_args ../${worksrcdir}
-configure.pre_args --prefix ${prefix}
-configure.args --release
-configure.universal_args
+# be verbose when building, for debugging purposes
-# when Qt is installed without +universal, and qmake is called with
-# "QMAKE_LDFLAGS += -arch foo" (or this is in the .qmake.cache, or
-# some other location that is used by QMake), and "foo" is the native
-# arch, then, at least sometimes, qmake will erroneously remove the
-# second "foo" but leave the "-arch" flag -- generating an error at
-# linking. Not sure if this is the case with +debug; does not matter
-# for this port, since it has no debug variant.
-post-configure {
- if {![variant_isset universal]} {
- # (1) find subdir Makefile names from top-level
- # Makefile, and have 'make' create each in turn.
- foreach fixfile [exec grep -e "Makefile\[\^ \]\*:" \
- ${worksrcpath}/Makefile | \
- sed -e "s@\\(\[^ \]*/Makefile\[^ \]*\\):\[^ \]*@\\1 at g"] {
- system "cd ${worksrcpath} && \
- PATH=${qt_bins_dir}:$env(PATH) \
- make ${fixfile}"
- }
-
- # (2) find all of the just-created Makefile*'s, and reinplace
- # the offending QMake flaw
- foreach fixfile [exec find ${worksrcpath} -name "Makefile*"] {
- reinplace "s@\\(-arch \[^ \]*\\) -arch@\\1@" ${fixfile}
- }
- }
-}
-
-# allow ccache, if specified by the user
-pre-build {
- if {[tbool configure.ccache]} {
- build.post_args "CCACHE=ccache"
- }
-}
-
-post-destroot {
- # fix DYLD self-id for both libraries
- system "install_name_tool -id ${prefix}/lib/liblastfm.0.dylib ${destroot}${prefix}/lib/liblastfm.0.3.3.dylib"
- system "install_name_tool -id ${prefix}/lib/liblastfm_fingerprint.0.dylib ${destroot}${prefix}/lib/liblastfm_fingerprint.0.3.3.dylib"
-}
+build.post_args VERBOSE=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130605/59fc01e2/attachment-0001.html>
More information about the macports-changes
mailing list