source: trunk/dports/devel/lua-luaexpat/Portfile

Last change on this file was 153358, checked in by devans@…, 10 months ago

lua-luaexpat: fix build on case sensitive systems.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.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 153358 2016-09-29 13:05:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        LuaDist luaexpat 1.3.0
8name                lua-luaexpat
9revision            1
10categories          devel
11license             MIT
12platforms           darwin
13maintainers         nomaintainer
14description         SAX XML parser
15long_description    LuaExpat is a SAX XML parser based on the Expat library.
16
17checksums           rmd160  0e03db5f71862cf3ebe06b211c5f11341553b3ec \
18                    sha256  948b9b87d432cfc980fae4f1a135b16230bec5dbab99ec16503aca20e4e4e4bd
19
20depends_lib         port:lua \
21                    port:expat
22
23patchfiles          patch-makefile.diff
24
25use_configure       no
26
27set lua_version     5.3
28
29build.target
30build.args          -f makefile \
31                    CC=${configure.cc} \
32                    CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \
33                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld] -llua" \
34                    LUA_INC="" \
35                    EXPAT_INC="" \
36                    COMMON_LDFLAGS="-bundle -undefined dynamic_lookup"
37
38destroot.pre_args-prepend \
39                    -f makefile
40destroot.args       LUA_LDIR=${prefix}/share/lua/${lua_version} \
41                    LUA_CDIR=${prefix}/lib/lua/${lua_version}
42
43post-destroot {
44    #  install docs
45    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
46    xinstall -m 0644 -W ${worksrcpath} README \
47             ${destroot}${prefix}/share/doc/${name}
48    foreach f [glob ${worksrcpath}/doc/us/*] {
49        xinstall -m 0644 $f ${destroot}${prefix}/share/doc/${name}
50    }
51       
52    #  install tests
53    xinstall -d -m 0755 ${destroot}${prefix}/share/examples
54    copy ${worksrcpath}/tests ${destroot}${prefix}/share/examples/${name}
55}
Note: See TracBrowser for help on using the repository browser.