source: trunk/dports/lang/squirrel/Portfile

Last change on this file was 136558, checked in by ryandesign@…, 2 years ago

squirrel: use expand operator instead of eval

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 136558 2015-05-21 19:53:14Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    squirrel
7version                 3.0.7
8categories              lang
9platforms               darwin
10license                 MIT
11maintainers             nomaintainer
12
13description             The Squirrel programming language
14long_description        Squirrel is a high level imperative, \
15                        object-oriented programming language, designed \
16                        to be a light-weight scripting language that \
17                        fits in the size, memory bandwidth, and \
18                        real-time requirements of applications like \
19                        video games.
20homepage                http://www.squirrel-lang.org/
21
22master_sites            sourceforge
23distname                squirrel_[string map {. _} ${version}]_stable
24checksums               sha1 5ae3f669677ac5f5d663ec070d42ee68980e1911 \
25                        rmd160  ca626275b43d6ebc29e99d33b65cf3c67f9bc72f \
26                        sha256  c7c2548e2d2d74116303445118e197f585a3a5e6bde06fdfe668c05b1cb43fa2
27
28worksrcdir              SQUIRREL[lindex [split ${version} .] 0]
29
30patchfiles              patch-Makefile.diff \
31                        patch-sq-Makefile.diff \
32                        patch-sqstdlib-Makefile.diff \
33                        patch-squirrel-Makefile.diff
34
35use_configure           no
36
37build.args              CC="${configure.cc}" \
38                        CXX="${configure.cxx}"
39
40set cflags "${configure.cflags} [get_canonical_archflags cc]"
41set cxxflags "${configure.cxxflags} [get_canonical_archflags cxx]"
42set ldflags "${configure.ldflags} [get_canonical_archflags ld]"
43if {${configure.sdkroot} != ""} {
44    set cflags "${cflags} -isysroot ${configure.sdkroot}"
45    set cxxflags "${cxxflags} -isysroot ${configure.sdkroot}"
46    set ldflags "${ldflags} -Wl,-syslibroot,${configure.sdkroot}"
47}
48build.args-append       CFLAGS="${cflags}" \
49                        CXXFLAGS="${cxxflags}" \
50                        LDFLAGS="${ldflags}"
51
52destroot {
53    xinstall ${worksrcpath}/bin/sq ${destroot}${prefix}/bin
54    xinstall -d ${destroot}${prefix}/share/doc/${name}
55    copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/examples
56    xinstall -m 644 -W ${worksrcpath}/lib libsqstdlib.a libsquirrel.a \
57        ${destroot}${prefix}/lib
58    xinstall -m 644 {*}[glob ${worksrcpath}/include/*.h] \
59        ${destroot}${prefix}/include
60}
61
62livecheck.version       [string map {. _} $version]
Note: See TracBrowser for help on using the repository browser.