1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 83575 2011-09-06 03:58:45Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libspotify |
---|
7 | version 12.1.45 |
---|
8 | categories multimedia |
---|
9 | maintainers brandonvalentine.com:mail:brandon |
---|
10 | description Spotify client library |
---|
11 | long_description The libspotify C API package allows third-party developers to write applications that utilize the Spotify music streaming service. |
---|
12 | homepage https://developer.spotify.com/technologies/libspotify/ |
---|
13 | license {Restricted Noncommercial} |
---|
14 | |
---|
15 | platforms darwin |
---|
16 | |
---|
17 | master_sites https://developer.spotify.com/download/libspotify/ |
---|
18 | distname ${name}-${version}-Darwin-universal |
---|
19 | checksums rmd160 9b8f63f66849af2def41ce47ad4d8b3fda610944 \ |
---|
20 | sha256 17dbd53ea458ced78a29febb7af082becf54138c48fe5b2f75ec92a7a60df592 |
---|
21 | |
---|
22 | use_zip yes |
---|
23 | use_configure no |
---|
24 | build {} |
---|
25 | |
---|
26 | destroot { |
---|
27 | copy ${worksrcpath}/libspotify.framework ${destroot}${frameworks_dir}/libspotify.framework |
---|
28 | xinstall -m 755 -d ${destroot}${prefix}/share/man/man3 |
---|
29 | copy ${worksrcpath}/man3 ${destroot}${prefix}/share/man/man3 |
---|
30 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
31 | copy ${worksrcpath}/docs/html ${destroot}${prefix}/share/doc/${name}/html |
---|
32 | copy ${worksrcpath}/docs/images ${destroot}${prefix}/share/doc/${name}/images |
---|
33 | xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name} |
---|
34 | xinstall -m 644 ${worksrcpath}/ChangeLog ${destroot}${prefix}/share/doc/${name} |
---|
35 | xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name} |
---|
36 | xinstall -m 644 ${worksrcpath}/licenses.xhtml ${destroot}${prefix}/share/doc/${name} |
---|
37 | copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/examples |
---|
38 | ln -s ${frameworks_dir}/libspotify.framework/libspotify ${destroot}${prefix}/lib/${name}.dylib |
---|
39 | ln -s ${frameworks_dir}/libspotify.framework/libspotify ${destroot}${prefix}/lib/${name}.${version}.dylib |
---|
40 | xinstall -m 755 -d ${destroot}${prefix}/include/${name} |
---|
41 | xinstall -m 644 ${worksrcpath}/libspotify.framework/Headers/api.h ${destroot}${prefix}/include/${name} |
---|
42 | } |
---|