lua53: adopted port
This commit is contained in:
parent
b569550160
commit
54899bbf96
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/Y/i26zmDARPNE6nyADwZ3k7ju7CKi/vZrfLd1K1EnptpQXJpNLkETA2IGxOl0K0LQW1V9IRqvAde+xCeDjhbwE=
|
||||
SHA256 (Pkgfile) = 609db43e6368d594428953c125bca2fe080a077d9a4e93d05cc069d79dd6aae6
|
||||
RWSE3ohX2g5d/bFKSWFybA4toHw4Jrzo7CMximadybVnQ/9mE+JwR+aryMxjEMKmL2scmXo6OdYuRba6MNUH+3MLnbsKzfcFaQ0=
|
||||
SHA256 (Pkgfile) = f259a7b37d76a3d7629205a62f5149fd04f9c811d9c7f7c9b30bfacc1a90ace2
|
||||
SHA256 (.footprint) = 80fadce262c8a7494b2edf9f6197a5c24f12157c2407e614fcfb1ab84cc1e130
|
||||
SHA256 (lua-5.3.6.tar.gz) = fc5fd69bb8736323f026672b1b7235da613d7177e72558893a0bdcd320466d60
|
||||
SHA256 (liblua.so.patch) = 2cc83c77423a2dda3696766b2d1ccee2796e052ab04d5178905f41ed9241a3d8
|
||||
|
@ -1,51 +1,50 @@
|
||||
# Description: A programming language designed for extending applications.
|
||||
# URL: https://www.lua.org/
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Description: A programming language designed for extending applications
|
||||
# URL: https://www.lua.org
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: readline
|
||||
|
||||
name=lua53
|
||||
version=5.3.6
|
||||
release=4
|
||||
release=5
|
||||
source=(https://www.lua.org/ftp/lua-$version.tar.gz
|
||||
liblua.so.patch lua.pc)
|
||||
liblua.so.patch lua.pc)
|
||||
|
||||
build() {
|
||||
cd lua-$version
|
||||
cd lua-$version
|
||||
|
||||
patch -p1 -i $SRC/liblua.so.patch
|
||||
patch -p1 -i $SRC/liblua.so.patch
|
||||
|
||||
sed -e "s/%VER%/${version%.*}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc
|
||||
sed -e "s/%VER%/${version%.*}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc
|
||||
|
||||
# Lua 5.3.4 has wrong release version in its Makefile. Fix it.
|
||||
sed "s/^R= \$V.4/R= \$V.5/" -i Makefile
|
||||
sed -e 's:llua:llua5.3:' -e 's:/include:/include/lua5.3:' -i lua.pc
|
||||
sed -r \
|
||||
-e '/^LUA_(SO|A|T)=/ s/lua/lua5.3/' \
|
||||
-e '/^LUAC_T=/ s/luac/luac5.3/' \
|
||||
-i src/Makefile
|
||||
|
||||
sed -e 's:llua:llua5.3:' -e 's:/include:/include/lua5.3:' -i lua.pc
|
||||
sed -r \
|
||||
-e '/^LUA_(SO|A|T)=/ s/lua/lua5.3/' \
|
||||
-e '/^LUAC_T=/ s/luac/luac5.3/' \
|
||||
-i src/Makefile
|
||||
sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h
|
||||
|
||||
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" linux
|
||||
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" linux
|
||||
|
||||
install -d $PKG/usr/include/lua5.3 $PKG/usr/share/man/man1 $PKG/usr/lib
|
||||
install -d $PKG/usr/include/lua5.3 $PKG/usr/share/man/man1 $PKG/usr/lib
|
||||
|
||||
make \
|
||||
TO_BIN="lua5.3 luac5.3" \
|
||||
TO_LIB="liblua5.3.a liblua5.3.so liblua5.3.so.5.3 liblua5.3.so.$version" \
|
||||
INSTALL_DATA='cp -d' \
|
||||
INSTALL_TOP="$PKG/usr" \
|
||||
INSTALL_INC="$PKG/usr/include/lua5.3" \
|
||||
INSTALL_MAN="$PKG/usr/share/man/man1" \
|
||||
install
|
||||
make \
|
||||
TO_BIN="lua5.3 luac5.3" \
|
||||
TO_LIB="liblua5.3.a liblua5.3.so liblua5.3.so.5.3 liblua5.3.so.$version" \
|
||||
INSTALL_DATA='cp -d' \
|
||||
INSTALL_TOP="$PKG/usr" \
|
||||
INSTALL_INC="$PKG/usr/include/lua5.3" \
|
||||
INSTALL_MAN="$PKG/usr/share/man/man1" \
|
||||
install
|
||||
|
||||
install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua${version:0:1}${version:2:1}.pc
|
||||
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua${version:0:3}.pc
|
||||
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua-${version:0:3}.pc
|
||||
install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua${version:0:1}${version:2:1}.pc
|
||||
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua${version:0:3}.pc
|
||||
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua-${version:0:3}.pc
|
||||
|
||||
ln -s liblua5.3.so $PKG/usr/lib/liblua.so.5.3
|
||||
ln -s liblua5.3.so $PKG/usr/lib/liblua.so.$version
|
||||
ln -s liblua5.3.so $PKG/usr/lib/liblua.so.5.3
|
||||
ln -s liblua5.3.so $PKG/usr/lib/liblua.so.$version
|
||||
|
||||
cd $PKG/usr/share/man/man1
|
||||
mv lua.1 lua5.3.1
|
||||
mv luac.1 luac5.3.1
|
||||
cd $PKG/usr/share/man/man1
|
||||
mv lua.1 lua5.3.1
|
||||
mv luac.1 luac5.3.1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user