Ticket #38562: Portfile.diff
File Portfile.diff, 1.5 KB (added by andremm@…, 12 years ago) |
---|
-
ports/devel/lpeg/Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name lpeg 7 version 0.1 0.27 version 0.11 8 8 categories devel 9 9 platforms darwin 10 10 maintainers gmail.com:andremm … … 17 17 homepage http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html 18 18 master_sites http://www.inf.puc-rio.br/~roberto/lpeg/ 19 19 20 checksums sha1 f2cd5857efb6e1bb02dfb9fbd68e74a451467462\21 rmd160 77dc2f7ca88ac84e6f185cf6077aaf88a130c3af20 checksums sha1 b8a30adc05d056cd025690ff51797667026c2add \ 21 rmd160 b64e4aa32cef4c6143c9a48c84b3d74e858e3dd4 22 22 23 23 depends_build port:pkgconfig 24 24 25 25 depends_lib port:lua 26 26 27 27 patchfiles patch-makefile.diff 28 post-patch { 29 reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/makefile 30 reinplace "s|@@COMPILER@@|${configure.compiler}|" ${worksrcpath}/makefile 31 } 28 32 29 33 use_configure no 30 34 31 35 variant universal {} 32 36 33 build.target 34 build.args CC="${configure.cc} [get_canonical_archflags]" \ 35 LUADIR=${prefix}/include 37 build.env-append CFLAGS="${configure.cflags}" \ 38 LDFLAGS="${configure.ldflags} -llua -lm"G 39 40 build.target lpeg.so 36 41 37 42 destroot { 38 43 set lua_cmod [exec ${prefix}/bin/pkg-config lua --variable INSTALL_CMOD]