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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | name SFML |
---|
8 | version 2.0 |
---|
9 | categories devel multimedia |
---|
10 | platforms darwin |
---|
11 | maintainers gwmail.gwu.edu:egall openmaintainer |
---|
12 | license zlib |
---|
13 | |
---|
14 | description ${name} 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/sfml/${version}/ |
---|
23 | distname ${name}-${version}-sources |
---|
24 | use_zip yes |
---|
25 | |
---|
26 | checksums rmd160 a4c6b369729ad8331f6cb643995a0fb1dd719536 \ |
---|
27 | sha256 fde707c28d560e7fa73acb710e80a8fa38ff026d5a3d1afed9de67121bdcd7a6 |
---|
28 | |
---|
29 | worksrcdir ${name}-${version} |
---|
30 | |
---|
31 | # SFML includes internal versions of some of these, but I'm including the dependencies |
---|
32 | # anyways for when I figure out how to get it to use external copies |
---|
33 | depends_lib-append port:glew \ |
---|
34 | port:freetype \ |
---|
35 | port:jpeg \ |
---|
36 | port:libsndfile \ |
---|
37 | port:mesa |
---|
38 | |
---|
39 | configure.args-append \ |
---|
40 | -DCMAKE_FRAMEWORK_PATH=${prefix}/Library/Frameworks \ |
---|
41 | -DCMAKE_INSTALL_FRAMEWORK_PREFIX=${prefix}/Library/Frameworks |
---|
42 | configure.env-append \ |
---|
43 | CMAKE_FRAMEWORK_PATH=${prefix}/Library/Frameworks \ |
---|
44 | CMAKE_INSTALL_FRAMEWORK_PREFIX=${prefix}/Library/Frameworks |
---|
45 | build.env-append ${configure.env} |
---|
46 | |
---|
47 | # OpenAL fails on Mountain Lion: http://trac.macports.org/ticket/39008 |
---|
48 | platform darwin < 12 { |
---|
49 | depends_lib-append \ |
---|
50 | port:OpenAL |
---|
51 | } |
---|