source: trunk/dports/lang/luajit/Portfile

Last change on this file was 139090, checked in by stromnov@…, 2 years ago

luajit: update to version 2.0.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 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 139090 2015-08-01 12:49:10Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                luajit
7version             2.0.4
8revision            0
9categories          lang
10platforms           darwin
11license             BSD
12
13maintainers         stromnov openmaintainer
14
15description         a Just-In-Time Compiler for Lua
16long_description    LuaJIT is a Just-In-Time Compiler for the Lua programming language.
17
18homepage            http://luajit.org
19master_sites        ${homepage}/download
20
21distname            LuaJIT-${version}
22
23checksums           rmd160  ef9ec596ebf81e3871f060c40303bcd2002474c4 \
24                    sha256  620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746beef1807d
25
26post-patch {
27    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/etc/luajit.pc
28}
29
30use_configure       no
31
32build.target        amalg
33build.args-append   CC="${configure.cc}" \
34                    CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags] -DLUAJIT_ENABLE_LUA52COMPAT" \
35                    LDFLAGS="${configure.ldflags} [get_canonical_archflags]" \
36                    PREFIX="${prefix}" \
37                    Q=""
38
39destroot.args-append \
40                    PREFIX="${prefix}"
41
42post-destroot {
43    xinstall -m 755 -d ${destroot}${prefix}/share/doc
44    copy ${worksrcpath}/doc/ ${destroot}${prefix}/share/doc/${name}
45}
46
47livecheck.type      regex
48livecheck.url       ${master_sites}.html
49livecheck.regex     {LuaJIT-(\d+(?:\.\d+)*(?:-beta\d+)?).tar.gz}
Note: See TracBrowser for help on using the repository browser.