# -*- 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 # $Id$ PortSystem 1.0 name esdl version 1.2 revision 1 categories graphics devel erlang platforms darwin maintainers bfulgham description Erlang OpenGL/SDL API and Utilities long_description ESDL is a library that gives you access to SDL and \ OpenGL functionality from your Erlang program. \ SDL handles 2D graphics, user events, and \ audio, while OpenGL handles 3D graphics. homepage http://esdl.sourceforge.net/ master_sites sourceforge:project/esdl/esdl/esdl-${version}/ distfiles ${distname}.src.tar.gz checksums md5 3e96c1d47bd7c1e23285360d88ce1bea \ sha1 9a4b0c993b2ebe24565c31b5beaf912635153c8f \ rmd160 fc1f37647ae8e9652413c0ba683743d43c149573 depends_lib port:libsdl \ port:libsdl-framework \ port:erlang use_configure no pre-build { # Use Macintosh Makefile reinplace "s|-arch \[a-z0-9_\]*|${configure.cc_archflags}|g" ${build.dir}/c_src/Makefile.macosx reinplace "s|LDFLAGS = -F/Library/Frameworks|LDFLAGS = -F${frameworks_dir} -F/Library/Frameworks|g" ${build.dir}/c_src/Makefile.macosx reinplace "s|-I/Library/Frameworks/SDL.framework/Headers|-I${frameworks_dir}/SDL.framework/Headers|g" ${build.dir}/c_src/Makefile.macosx reinplace "s|LDFLAGS = -F/Library/Frameworks|LDFLAGS = -F${frameworks_dir} -F/Library/Frameworks|g" ${build.dir}/c_src/Makefile.macosx } build.target destroot.destdir DPORTSDIR=${destroot} set libdir ${prefix}/lib/erlang/lib/${distname} destroot { xinstall -d -m 0755 ${destroot}${libdir}/ebin xinstall -d -m 0755 ${destroot}${libdir}/include xinstall -d -m 0755 ${destroot}${libdir}/src xinstall -d -m 0755 ${destroot}${libdir}/priv eval xinstall -m 0755 [glob ${worksrcpath}/ebin/*] \ ${destroot}${libdir}/ebin eval xinstall -m 0755 [glob ${worksrcpath}/include/*] \ ${destroot}${libdir}/include eval xinstall -m 0755 [glob ${worksrcpath}/src/*] \ ${destroot}${libdir}/src eval xinstall -m 0755 [glob ${worksrcpath}/priv/*] \ ${destroot}${libdir}/priv set docdir ${prefix}/share/doc/${name} xinstall -d -m 0755 ${destroot}${docdir} xinstall -d -m 0755 ${destroot}${docdir}/html xinstall -d -m 0755 ${destroot}${docdir}/test xinstall -m 0755 -W ${worksrcpath} Readme Readme.MacOSX-Cocoa license.terms \ ${destroot}${docdir} eval xinstall -m 0755 [glob ${worksrcpath}/doc/*] \ ${destroot}${docdir}/html eval xinstall -m 0755 [glob ${worksrcpath}/test/*] \ ${destroot}${docdir}/test } livecheck.regex