mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 03:17:35 +00:00
Ports/luajit: Move warning to configure
Putting it in preconfigure did not work, as useconfigure wasn't enabled.
This commit is contained in:
parent
f1111e99bf
commit
e51547986e
1 changed files with 5 additions and 4 deletions
|
@ -1,14 +1,11 @@
|
||||||
#!/usr/bin/env -S bash ../.port_include.sh
|
#!/usr/bin/env -S bash ../.port_include.sh
|
||||||
port=luajit
|
port=luajit
|
||||||
version=2.1.0-beta3
|
version=2.1.0-beta3
|
||||||
|
useconfigure=true
|
||||||
files="https://luajit.org/download/LuaJIT-${version}.tar.gz LuaJIT-${version}.tar.gz 1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3"
|
files="https://luajit.org/download/LuaJIT-${version}.tar.gz LuaJIT-${version}.tar.gz 1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3"
|
||||||
auth_type=sha256
|
auth_type=sha256
|
||||||
workdir="LuaJIT-${version}"
|
workdir="LuaJIT-${version}"
|
||||||
|
|
||||||
preconfigure() {
|
|
||||||
printf "\x1b[31m\x1b[5mATTENTION: \x1b[0m\x1b[31m\x1b[1mIf this fails, install either libc6-dev-i386 or libc6-dev-amd64\x1b[0m\n"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ ${SERENITY_ARCH} = "i686" ]; then
|
if [ ${SERENITY_ARCH} = "i686" ]; then
|
||||||
M_FLAG=-m32
|
M_FLAG=-m32
|
||||||
elif [ ${SERENITY_ARCH} = "x86_64" ]; then
|
elif [ ${SERENITY_ARCH} = "x86_64" ]; then
|
||||||
|
@ -16,3 +13,7 @@ elif [ ${SERENITY_ARCH} = "x86_64" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
makeopts=("CROSS=${SERENITY_ARCH}-pc-serenity-" "HOST_CC=gcc ${M_FLAG}")
|
makeopts=("CROSS=${SERENITY_ARCH}-pc-serenity-" "HOST_CC=gcc ${M_FLAG}")
|
||||||
|
|
||||||
|
configure() {
|
||||||
|
printf "\x1b[31m\x1b[5mATTENTION: \x1b[0m\x1b[31m\x1b[1mIf this fails, install either libc6-dev-i386 or libc6-dev-amd64\x1b[0m\n"
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue