Changeset 106714 for trunk/dports/audio


Ignore:
Timestamp:
Jun 6, 2013, 2:16:20 AM (6 years ago)
Author:
michaelld@…
Message:

liblastfm: update to 1.0.7; addresses ticket #39329.

Location:
trunk/dports/audio/liblastfm
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/audio/liblastfm/Portfile

    r99389 r106714  
    55PortGroup           github 1.0
    66PortGroup           qt4 1.0
     7PortGroup           cmake 1.0
    78
    8 github.setup        mxcl liblastfm 0.3.3
    9 revision            2
     9github.setup        lastfm liblastfm 1.0.7
    1010categories          audio
    1111license             GPL-3
     
    1919platforms           darwin
    2020
    21 checksums           md5     fe339bf46aefc515c251200d10262f79 \
    22                     sha1    f2e9705c9c2cbeaa14f46da9bd35ab36fe710392 \
    23                     rmd160  690931075f38fda78c69015ca5088c166f6e1013
    24 
    25 depends_build-append port:ruby
     21checksums           md5     568fce70605c0c87ffa810ae0c15e8aa \
     22                    sha1    b679bf76272b05373efcc2a8f3ee809599607853 \
     23                    rmd160  9cdd6f6ea2908a372c40dcf9efa6911c60341475
    2624
    2725depends_lib-append  port:libsamplerate port:fftw-3-single
     
    2927universal_variant   yes
    3028
    31 use_parallel_build  no
     29# do VPATH build
    3230
    33 patchfiles          patch-src_fingerprint_fplib_FloatingAverage.h.diff
     31set vpath           ${workpath}/build
     32pre-configure       { file mkdir ${vpath} }
     33configure.dir       ${vpath}
     34build.dir           ${vpath}
    3435
    35 post-patch {
    36     # fix library install directory
    37     reinplace "/target\\.path/s@\\/lib@\\\$\\\$QMAKE_LIBDIR_QT@" \
    38         ${worksrcpath}/src/lastfm.pro
    39     reinplace "/target\\.path/s@\\/lib@\\\$\\\$QMAKE_LIBDIR_QT@" \
    40         ${worksrcpath}/src/fingerprint/fingerprint.pro
     36# set last configure argument to the reletive path
     37# to the top-level cmake source
    4138
    42     # swap -l -L ordering (to be -L -l)
    43     reinplace "/LIBS/s@+= \\(-l\[^ \]*\\) \\(-L\[^ \]*\\)@+= \\2 \\1@" \
    44         ${worksrcpath}/demos/demos.pro
    45     reinplace "/LIBS/s@+= \\(-l\[^ \]*\\) \\(-L\[^ \]*\\)@+= \\2 \\1@" \
    46         ${worksrcpath}/tests/tests.pro
    47 }
     39configure.post_args ../${worksrcdir}
    4840
    49 configure.pre_args  --prefix ${prefix}
    50 configure.args      --release
    51 configure.universal_args
     41# be verbose when building, for debugging purposes
    5242
    53 # when Qt is installed without +universal, and qmake is called with
    54 # "QMAKE_LDFLAGS += -arch foo" (or this is in the .qmake.cache, or
    55 # some other location that is used by QMake), and "foo" is the native
    56 # arch, then, at least sometimes, qmake will erroneously remove the
    57 # second "foo" but leave the "-arch" flag -- generating an error at
    58 # linking.  Not sure if this is the case with +debug; does not matter
    59 # for this port, since it has no debug variant.
    60 post-configure {
    61     if {![variant_isset universal]} {
    62         # (1) find subdir Makefile names from top-level
    63         # Makefile, and have 'make' create each in turn.
    64         foreach fixfile [exec grep -e "Makefile\[\^ \]\*:" \
    65                 ${worksrcpath}/Makefile | \
    66                 sed -e "s@\\(\[^ \]*/Makefile\[^ \]*\\):\[^ \]*@\\1@g"] {
    67             system "cd ${worksrcpath} && \
    68                     PATH=${qt_bins_dir}:$env(PATH) \
    69                     make ${fixfile}"
    70         }
    71 
    72         # (2) find all of the just-created Makefile*'s, and reinplace
    73         # the offending QMake flaw
    74         foreach fixfile [exec find ${worksrcpath} -name "Makefile*"] {
    75             reinplace "s@\\(-arch \[^ \]*\\) -arch@\\1@" ${fixfile}
    76         }
    77     }
    78 }
    79 
    80 # allow ccache, if specified by the user
    81 pre-build {
    82     if {[tbool configure.ccache]} {
    83         build.post_args "CCACHE=ccache"
    84     }
    85 }
    86 
    87 post-destroot {
    88     # fix DYLD self-id for both libraries
    89     system "install_name_tool -id ${prefix}/lib/liblastfm.0.dylib ${destroot}${prefix}/lib/liblastfm.0.3.3.dylib"
    90     system "install_name_tool -id ${prefix}/lib/liblastfm_fingerprint.0.dylib ${destroot}${prefix}/lib/liblastfm_fingerprint.0.3.3.dylib"
    91 }
     43build.post_args VERBOSE=1
Note: See TracChangeset for help on using the changeset viewer.