Ticket #38987: Portfile.5

File Portfile.5, 2.1 KB (added by rkitover (Rafael Kitover), 7 years ago)

Updated again to link openal-soft

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
3PortSystem          1.0
4PortGroup           cmake 1.1
5PortGroup           github 1.0
6
7name                sfml
8version             2.4.1
9categories          multimedia devel
10platforms           darwin
11maintainers         gwmail.gwu.edu:egall gmail.com:rkitover openmaintainer
12license             zlib
13
14description         SFML is the Simple and Fast Multimedia Library
15
16long_description    ${description}. It provides a simple interface to the various \
17                    components of your computer, to ease the development of games and \
18                    multimedia applications. It is composed of five modules: system, \
19                    window, graphics, audio and network.
20
21homepage            http://www.sfml-dev.org/
22master_sites        http://www.sfml-dev.org/download/${name}/${version}/
23distname            SFML-${version}-sources
24use_zip             yes
25
26checksums           rmd160  fab652f52772e6f7d418e823dddebb6973020415 \
27                    sha256  f75096b2dc9cae67e10a28dbbefc9fe02e9dbe2e1ed50f2e208046bae9d3c9a4
28
29worksrcdir          ${name}-${version}
30
31depends_build-append port:doxygen
32
33# and we are not using mesa because it uses X11
34# (most users will not want this)
35
36depends_lib-append  port:freetype \
37                    port:jpeg \
38                    port:libsndfile \
39                    port:flac \
40                    port:libogg \
41                    port:libvorbis \
42                    port:openal-soft
43
44cmake.out_of_source yes
45
46configure.args-append \
47                    -DCMAKE_FRAMEWORK_PATH=${frameworks_dir} \
48                    -DCMAKE_INSTALL_FRAMEWORK_PREFIX=${frameworks_dir} \
49                    -DSFML_BUILD_DOC=TRUE
50
51# don't use the bundled libraries
52# except for stb_image headers, those aren't in macports yet
53post-extract {
54    delete {*}[glob ${worksrcpath}/extlibs/libs-*] \
55              ${worksrcpath}/extlibs/bin \
56           {*}[glob ${worksrcpath}/extlibs/headers/{AL,FLAC,freetype2,jpeg,ogg,vorbis}]
57}