Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new port: sfml 2.4.1 #61

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
56 changes: 56 additions & 0 deletions multimedia/sfml/Portfile
@@ -0,0 +1,56 @@
# -*- 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

PortSystem 1.0
PortGroup cmake 1.1

name sfml
version 2.4.1
categories multimedia devel
platforms darwin
maintainers gmail.com:rkitover openmaintainer
license zlib

description SFML is the Simple and Fast Multimedia Library

long_description ${description}. It provides a simple interface to the various \
components of your computer, to ease the development of games and \
multimedia applications. It is composed of five modules: system, \
window, graphics, audio and network.

homepage http://www.sfml-dev.org/
master_sites http://www.sfml-dev.org/download/${name}/${version}/
distname SFML-${version}-sources
use_zip yes

checksums rmd160 fab652f52772e6f7d418e823dddebb6973020415 \
sha256 f75096b2dc9cae67e10a28dbbefc9fe02e9dbe2e1ed50f2e208046bae9d3c9a4

worksrcdir ${name}-${version}

depends_build-append port:doxygen

# and we are not using mesa because it uses X11
# (most users will not want this)

depends_lib-append port:freetype \
port:jpeg \
port:libsndfile \
port:flac \
port:libogg \
port:libvorbis \
port:openal-soft

cmake.out_of_source yes

configure.args-append \
-DCMAKE_FRAMEWORK_PATH=${frameworks_dir} \
-DCMAKE_INSTALL_FRAMEWORK_PREFIX=${frameworks_dir} \
-DSFML_BUILD_DOC=TRUE

# don't use the bundled libraries
# except for stb_image headers, those aren't in macports yet
post-extract {
delete {*}[glob ${worksrcpath}/extlibs/libs-*] \
${worksrcpath}/extlibs/bin \
{*}[glob ${worksrcpath}/extlibs/headers/{AL,FLAC,freetype2,jpeg,ogg,vorbis}]
}