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 | # and we are not using mesa because it uses X11 |
---|
34 | # (most users will not want this) |
---|
35 | |
---|
36 | depends_lib-append port:freetype \ |
---|
37 | port:jpeg \ |
---|
38 | port:libsndfile \ |
---|
39 | port:flac \ |
---|
40 | port:libogg \ |
---|
41 | port:libvorbis \ |
---|
42 | port:openal-soft |
---|
43 | |
---|
44 | cmake.out_of_source yes |
---|
45 | |
---|
46 | configure.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 |
---|
53 | post-extract { |
---|
54 | delete {*}[glob ${worksrcpath}/extlibs/libs-*] \ |
---|
55 | ${worksrcpath}/extlibs/bin \ |
---|
56 | {*}[glob ${worksrcpath}/extlibs/headers/{AL,FLAC,freetype2,jpeg,ogg,vorbis}] |
---|
57 | } |
---|