Ticket #34797: Portfile

File Portfile, 2.3 KB (added by brandon@…, 12 years ago)
Line 
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
4PortSystem          1.0
5
6name                libspotify
7version             12.1.45
8categories          multimedia
9maintainers         brandonvalentine.com:mail:brandon
10description         Spotify client library
11long_description    The libspotify C API package allows third-party developers to write applications that utilize the Spotify music streaming service.
12homepage            https://developer.spotify.com/technologies/libspotify/
13license             {Restricted Noncommercial}
14
15platforms           darwin
16
17master_sites        https://developer.spotify.com/download/libspotify/
18distname            ${name}-${version}-Darwin-universal
19checksums           rmd160 9b8f63f66849af2def41ce47ad4d8b3fda610944 \
20                    sha256 17dbd53ea458ced78a29febb7af082becf54138c48fe5b2f75ec92a7a60df592
21
22use_zip             yes
23use_configure       no
24build               {}
25
26destroot {
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}