Ticket #38987: Portfile.2

File Portfile.2, 2.0 KB (added by cooljeanius (Eric Gallager), 12 years ago)

fixed an issue with the previous 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# $Id$
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                SFML
8version             2.0
9categories          devel multimedia
10platforms           darwin
11maintainers         gwmail.gwu.edu:egall openmaintainer
12license             zlib
13
14description         ${name} 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/sfml/${version}/
23distname            ${name}-${version}-sources
24use_zip             yes
25
26checksums           rmd160  a4c6b369729ad8331f6cb643995a0fb1dd719536 \
27                    sha256  fde707c28d560e7fa73acb710e80a8fa38ff026d5a3d1afed9de67121bdcd7a6
28
29worksrcdir          ${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
33depends_lib-append  port:glew \
34                    port:freetype \
35                    port:jpeg \
36                    port:libsndfile \
37                    port:mesa
38
39configure.args-append \
40                    -DCMAKE_FRAMEWORK_PATH=${prefix}/Library/Frameworks \
41                    -DCMAKE_INSTALL_FRAMEWORK_PREFIX=${prefix}/Library/Frameworks
42configure.env-append \
43                    CMAKE_FRAMEWORK_PATH=${prefix}/Library/Frameworks \
44                    CMAKE_INSTALL_FRAMEWORK_PREFIX=${prefix}/Library/Frameworks
45build.env-append    ${configure.env} 
46
47# OpenAL fails on Mountain Lion: http://trac.macports.org/ticket/39008
48platform darwin < 12 {
49    depends_lib-append \
50                    port:OpenAL
51}