Ticket #38987: Portfile

File Portfile, 1.8 KB (added by cooljeanius (Eric Gallager), 12 years ago)

first attempt at making a portfile for this

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
31depends_lib-append  port:glew \
32                    port:freetype \
33                    port:jpeg \
34                    port:libsndfile \
35                    port:mesa
36
37configure.args-append \
38                    -DCMAKE_FRAMEWORK_PATH=${prefix}/Library/Frameworks
39configure.env-append \
40                    CMAKE_FRAMEWORK_PATH=${prefix}/Library/Frameworks
41build.env-append    ${configure.env} 
42
43# OpenAL fails on Mountain Lion: http://trac.macports.org/ticket/39008
44platform darwin < 12 {
45    depends_lib-append \
46                    port:OpenAL
47}
48
49# I haven't figured out how to keep it from putting stuff in /Library/Frameworks yet...
50destroot.violate_mtree yes