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

Last change on this file was 84897, checked in by ryandesign@…, 6 years ago

lua-glut: avoid using the string /opt/local in the Portfile and patchfile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 84897 2011-10-04 07:39:52Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    lua-glut
6version                 0.5
7revision                0
8categories              devel
9platforms               darwin
10maintainers             bfulgham
11description             OpenGL and GLUT bindings for the Lua programming language.
12long_description        ${description}
13
14homepage                http://lua-users.org/wiki/VarolKaptan
15master_sites            http://lua-users.org/files/wiki_insecure/users/VarolKaptan/
16distname                luaglut-${version}
17
18depends_lib             port:lua
19
20use_configure           no
21
22checksums               md5 9b0ae78d829af770dab2b88c9190c90c \
23                        sha1 3e1dc986d2ead5a96073451d2d78c8df2fbb4e4b \
24                        rmd160 4de4335353d1712bf22b1ed187ef8d35f3b869b3
25
26patchfiles              patch-Makefile
27
28build.type              gnu
29build.cmd               make
30build.args             
31build.target           
32
33post-patch {
34        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
35}
36
37destroot {
38        # Documentation and examples
39        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
40        file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
41        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
42        foreach f {glut_test1.lua glut_test2.lua lua.ppm} {
43            file copy ${worksrcpath}/${f} ${destroot}${prefix}/share/doc/${name}/examples
44        }
45
46        # Binaries
47        xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1
48        foreach lib [glob ${worksrcpath}/*.so] {
49                xinstall -m 0644 ${lib} ${destroot}${prefix}/lib/lua/5.1
50        }
51}
Note: See TracBrowser for help on using the repository browser.