# $Id$ PortSystem 1.0 name lua-zip version 1.2.3 categories devel platforms darwin maintainers and.damore description LuaZip is a Lua extension library used to read files stored inside zip files. long_description ${description} homepage http://www.keplerproject.org/luazip/index.html master_sites http://luaforge.net/frs/download.php/2493/ distname luazip-${version} use_configure no checksums \ luazip-1.2.3.tar.gz \ md5 8129ba93a8df6ebd324fee9adca23fae \ sha1 40d2589d5060582ce5dc1dd87604114eb42067ea \ rmd160 035d290488a7d67efe9df461e6c790ea67c908dd patchfiles patch-luazip.diff patch.pre_args -p1 depends_lib port:libzzip build.target #build.args-append CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib destroot { # Docs xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name} foreach doc [glob doc/us/*] { xinstall -m 0644 ${doc} ${destroot}${prefix}/share/doc/${name} } # Binaries xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1 foreach lib [glob src/*.so.*] { xinstall -m 0644 ${lib} ${destroot}${prefix}/lib/lua/5.1 } # Lua includes xinstall -m 755 -d ${destroot}${prefix}/include/lua5.1 foreach inc [glob src/*.h] { xinstall -m 0644 ${inc} ${destroot}${prefix}/include/lua5.1 } }