Ticket #38987: Portfile.4

File Portfile.4, 2.1 KB (added by rkitover (Rafael Kitover), 8 years ago)

Updated Portfile

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# openal does not build right now: https://trac.macports.org/ticket/52544
34# so we are using the system one
35#
36# and we are not using mesa because it uses X11
37# (most users will not want this)
38
39depends_lib-append  port:freetype \
40                    port:jpeg \
41                    port:libsndfile \
42                    port:flac \
43                    port:libogg \
44                    port:libvorbis
45
46cmake.out_of_source yes
47
48configure.args-append \
49                    -DCMAKE_FRAMEWORK_PATH=${frameworks_dir} \
50                    -DCMAKE_INSTALL_FRAMEWORK_PREFIX=${frameworks_dir} \
51                    -DSFML_BUILD_DOC=TRUE
52
53# don't use the bundled libraries
54# except for stb_image headers, those aren't in macports yet
55post-extract {
56    delete {*}[glob ${worksrcpath}/extlibs/libs-*] \
57              ${worksrcpath}/extlibs/bin \
58           {*}[glob ${worksrcpath}/extlibs/headers/{AL,FLAC,freetype2,jpeg,ogg,vorbis}]
59}