-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
61 lines (47 loc) · 2.18 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*- 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
PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup xcode_workaround 1.0
PortGroup github 1.0
PortGroup legacysupport 1.1
# Using the v2.1 branch for Apple Silicon support
# Revert to master_sites on new release, see https://github.com/LuaJIT/LuaJIT/issues/563
github.setup LuaJIT LuaJIT c4fe76d50cda24f3529604448f80ff14754599dd
version 2.1.0-beta3
revision 6
checksums rmd160 ec1dbe9fb0909d3b45aa9059692f0846254abdef \
sha256 9ff3bea98453e4ac5e1d15c26cbc105287ac7b8f15663f6ecde6a308e4842936 \
size 1071348
name luajit
categories lang
license BSD
maintainers nomaintainer
description a Just-In-Time Compiler for Lua
long_description LuaJIT is a Just-In-Time Compiler for the Lua programming language.
homepage https://luajit.org
github.tarball_from archive
conflicts luajit-openresty
patchfiles powerpc.patch
post-patch {
reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/etc/luajit.pc
}
use_configure no
compiler.blacklist {clang < 700} *gcc-4.2 macports-clang-3.3 macports-clang-3.4
# changes to compiler flags must be made before `CFLAGS=...`
xcode_workaround.type append_to_compiler_flags
build.target amalg
build.args-append CC="${configure.cc}" \
CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags] -DLUAJIT_ENABLE_LUA52COMPAT" \
LDFLAGS="${configure.ldflags} [get_canonical_archflags]" \
PREFIX="${prefix}" \
Q=""
destroot.args-append \
PREFIX="${prefix}"
post-destroot {
ln -s ${prefix}/bin/luajit-${version} ${destroot}${prefix}/bin/luajit
xinstall -m 755 -d ${destroot}${prefix}/share/doc
copy ${worksrcpath}/doc/ ${destroot}${prefix}/share/doc/${name}
}
livecheck.type regex
livecheck.url ${master_sites}.html
livecheck.regex {LuaJIT-(\d+(?:\.\d+)*(?:-beta\d+)?).tar.gz}