# -*- 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 name squirrel version 3.0.7 categories lang platforms darwin license MIT maintainers nomaintainer description The Squirrel programming language long_description Squirrel is a high level imperative, \ object-oriented programming language, designed \ to be a light-weight scripting language that \ fits in the size, memory bandwidth, and \ real-time requirements of applications like \ video games. homepage http://www.squirrel-lang.org/ master_sites sourceforge distname squirrel_[string map {. _} ${version}]_stable checksums sha1 5ae3f669677ac5f5d663ec070d42ee68980e1911 \ rmd160 ca626275b43d6ebc29e99d33b65cf3c67f9bc72f \ sha256 c7c2548e2d2d74116303445118e197f585a3a5e6bde06fdfe668c05b1cb43fa2 worksrcdir SQUIRREL[lindex [split ${version} .] 0] patchfiles patch-Makefile.diff \ patch-sq-Makefile.diff \ patch-sqstdlib-Makefile.diff \ patch-squirrel-Makefile.diff use_configure no build.args CC="${configure.cc}" \ CXX="${configure.cxx}" set cflags "${configure.cflags} [get_canonical_archflags cc]" set cxxflags "${configure.cxxflags} [get_canonical_archflags cxx]" set ldflags "${configure.ldflags} [get_canonical_archflags ld]" if {${configure.sdkroot} != ""} { set cflags "${cflags} -isysroot ${configure.sdkroot}" set cxxflags "${cxxflags} -isysroot ${configure.sdkroot}" set ldflags "${ldflags} -Wl,-syslibroot,${configure.sdkroot}" } build.args-append CFLAGS="${cflags}" \ CXXFLAGS="${cxxflags}" \ LDFLAGS="${ldflags}" destroot { xinstall ${worksrcpath}/bin/sq ${destroot}${prefix}/bin xinstall -d ${destroot}${prefix}/share/doc/${name} copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/examples xinstall -m 644 -W ${worksrcpath}/lib libsqstdlib.a libsquirrel.a \ ${destroot}${prefix}/lib xinstall -m 644 {*}[glob ${worksrcpath}/include/*.h] \ ${destroot}${prefix}/include } livecheck.type regex livecheck.regex The current stable release is (\\d+(?:\\.\\d+)*)