source: trunk/dports/graphics/esdl/Portfile

Last change on this file was 148470, checked in by mojca@…, 17 months ago

esdl: fix master_sites for sourceforge (closes #51329, maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
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: Portfile 148470 2016-05-10 09:00:27Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                esdl
7version             1.2
8revision            1
9categories          graphics devel erlang
10platforms           darwin
11maintainers         bfulgham
12description         Erlang OpenGL/SDL API and Utilities
13long_description    ESDL is a library that gives you access to SDL and \
14                    OpenGL functionality from your Erlang program. \
15                    SDL handles 2D graphics, user events, and \
16                    audio, while OpenGL handles 3D graphics.
17
18homepage            http://esdl.sourceforge.net/
19master_sites        sourceforge:project/esdl/esdl/esdl-${version}/
20distfiles           ${distname}.src.tar.gz
21checksums           md5     3e96c1d47bd7c1e23285360d88ce1bea \
22                    sha1    9a4b0c993b2ebe24565c31b5beaf912635153c8f \
23                    rmd160  fc1f37647ae8e9652413c0ba683743d43c149573
24
25depends_lib         port:libsdl \
26                    port:libsdl-framework \
27                    port:erlang
28
29use_configure       no
30
31pre-build {
32    # Use Macintosh Makefile
33    reinplace "s|-arch \[a-z0-9_\]*|${configure.cc_archflags}|g" ${build.dir}/c_src/Makefile.macosx
34    reinplace "s|LDFLAGS = -F/Library/Frameworks|LDFLAGS = -F${frameworks_dir} -F/Library/Frameworks|g" ${build.dir}/c_src/Makefile.macosx
35    reinplace "s|-I/Library/Frameworks/SDL.framework/Headers|-I${frameworks_dir}/SDL.framework/Headers|g" ${build.dir}/c_src/Makefile.macosx
36    reinplace "s|LDFLAGS = -F/Library/Frameworks|LDFLAGS = -F${frameworks_dir} -F/Library/Frameworks|g" ${build.dir}/c_src/Makefile.macosx
37}
38
39build.target
40destroot.destdir    DPORTSDIR=${destroot}
41
42set libdir ${prefix}/lib/erlang/lib/${distname}
43
44destroot {
45    xinstall -d -m 0755 ${destroot}${libdir}/ebin
46    xinstall -d -m 0755 ${destroot}${libdir}/include
47    xinstall -d -m 0755 ${destroot}${libdir}/src
48    xinstall -d -m 0755 ${destroot}${libdir}/priv
49
50    eval xinstall -m 0755 [glob ${worksrcpath}/ebin/*] \
51        ${destroot}${libdir}/ebin
52    eval xinstall -m 0755 [glob ${worksrcpath}/include/*] \
53        ${destroot}${libdir}/include
54    eval xinstall -m 0755 [glob ${worksrcpath}/src/*] \
55        ${destroot}${libdir}/src
56    eval xinstall -m 0755 [glob ${worksrcpath}/priv/*] \
57        ${destroot}${libdir}/priv
58
59    set docdir ${prefix}/share/doc/${name}
60    xinstall -d -m 0755 ${destroot}${docdir}
61    xinstall -d -m 0755 ${destroot}${docdir}/html
62    xinstall -d -m 0755 ${destroot}${docdir}/test
63    xinstall -m 0755 -W ${worksrcpath} Readme Readme.MacOSX-Cocoa license.terms \
64        ${destroot}${docdir}
65
66    eval xinstall -m 0755 [glob ${worksrcpath}/doc/*] \
67        ${destroot}${docdir}/html
68    eval xinstall -m 0755 [glob ${worksrcpath}/test/*] \
69        ${destroot}${docdir}/test
70}
71
72livecheck.regex     <title>${name} ${name}-(.*) released.*</title>
Note: See TracBrowser for help on using the repository browser.