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 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup cmake 1.1 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | name sfml |
---|
8 | version 2.4.1 |
---|
9 | categories multimedia devel |
---|
10 | platforms darwin |
---|
11 | maintainers gwmail.gwu.edu:egall gmail.com:rkitover openmaintainer |
---|
12 | license zlib |
---|
13 | |
---|
14 | description SFML is the Simple and Fast Multimedia Library |
---|
15 | |
---|
16 | long_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 | |
---|
21 | homepage http://www.sfml-dev.org/ |
---|
22 | master_sites http://www.sfml-dev.org/download/${name}/${version}/ |
---|
23 | distname SFML-${version}-sources |
---|
24 | use_zip yes |
---|
25 | |
---|
26 | checksums rmd160 fab652f52772e6f7d418e823dddebb6973020415 \ |
---|
27 | sha256 f75096b2dc9cae67e10a28dbbefc9fe02e9dbe2e1ed50f2e208046bae9d3c9a4 |
---|
28 | |
---|
29 | worksrcdir ${name}-${version} |
---|
30 | |
---|
31 | depends_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 | |
---|
39 | depends_lib-append port:freetype \ |
---|
40 | port:jpeg \ |
---|
41 | port:libsndfile \ |
---|
42 | port:flac \ |
---|
43 | port:libogg \ |
---|
44 | port:libvorbis |
---|
45 | |
---|
46 | cmake.out_of_source yes |
---|
47 | |
---|
48 | configure.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 |
---|
55 | post-extract { |
---|
56 | delete {*}[glob ${worksrcpath}/extlibs/libs-*] \ |
---|
57 | ${worksrcpath}/extlibs/bin \ |
---|
58 | {*}[glob ${worksrcpath}/extlibs/headers/{AL,FLAC,freetype2,jpeg,ogg,vorbis}] |
---|
59 | } |
---|