source: trunk/dports/lang/lua/Portfile @ 20673

Last change on this file since 20673 was 20673, checked in by bfulgham@…, 14 years ago

Slight modification to have Lua check for its libraries in ${prefix}

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 20673 2006-11-17 06:52:19Z bfulgham@macports.org $
2
3PortSystem              1.0
4
5name                    lua
6version                 5.1.1
7categories              lang
8platforms               darwin
9maintainers             anselmg@t-online.de pmq@macports.org
10
11description             powerful, lightweight programming language
12long_description        Lua is a powerful, light-weight programming language \
13                        designed for extending applications. Lua is also frequently \
14                        used as a general-purpose, standalone language.
15
16homepage                http://www.lua.org
17master_sites            ${homepage}/ftp/
18checksums               sha1 be13878ceef8e1ee7a4201261f0adf09f89f1005 \
19                        rmd160 0b9cc31cca1a0f4c2ebb62f177dc157677953a4c
20
21depends_lib             port:readline
22
23use_configure           no
24build.target            macosx
25
26test.run                yes
27test.env                DYLD_LIBRARY_PATH=./lib
28
29post-patch {
30        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile
31        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/src/luaconf.h
32}
33
34destroot.target install INSTALL_TOP=${destroot}/${prefix}
35post-destroot {
36        cd ${worksrcpath}
37        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
38        xinstall -m 0644 README ${destroot}${prefix}/share/doc/${name}
39        xinstall -m 0644 COPYRIGHT ${destroot}${prefix}/share/doc/${name}
40        xinstall -m 0644 HISTORY ${destroot}${prefix}/share/doc/${name}
41        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/html
42        foreach html [glob doc/*.html doc/*.gif] {
43                xinstall -m 0644 ${html} ${destroot}${prefix}/share/doc/${name}/html
44        }
45        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/test
46        foreach test [glob test/README test/*.lua] {
47                xinstall -m 0644 ${test} ${destroot}${prefix}/share/doc/${name}/test
48        }
49}
50
51variant static {
52        build.target    all
53        destroot.target install INSTALL_TOP=${destroot}/${prefix}
54        test.env
55}
Note: See TracBrowser for help on using the repository browser.