lua52: adopted port
This commit is contained in:
parent
97580e5496
commit
b569550160
@ -1,6 +1,6 @@
|
|||||||
untrusted comment: verify with /etc/ports/opt.pub
|
untrusted comment: verify with /etc/ports/opt.pub
|
||||||
RWSE3ohX2g5d/Yy7F/+N2jEOhubUt8lfr5Q6E23gU/6dGngCupWEoK3d+JST8JIQ8gFEIwuQ0PkSRRgmwp/RkZieDzf0VyaB1Aw=
|
RWSE3ohX2g5d/fhiumEmPpAiTmKTvcf2y4/ZIR+SfpQG9/HW99pHlzhMiMfjGGaQ4eS6+QzAQkTD7jamyw/JLaBwnAvfA0UAAwQ=
|
||||||
SHA256 (Pkgfile) = 404c4578fa263ae63d7ea95ebdafb9c514703233bcf3e18ff63063dee937af7b
|
SHA256 (Pkgfile) = ec9ccd096f9bb8d7e2b695cbe439cce797364f961a670acffb5a68f752e2c404
|
||||||
SHA256 (.footprint) = c2f5517f192c7c7ed4511899abf30b7ee966d96bc1295c5cc401e0137b9dd798
|
SHA256 (.footprint) = c2f5517f192c7c7ed4511899abf30b7ee966d96bc1295c5cc401e0137b9dd798
|
||||||
SHA256 (lua-5.2.4.tar.gz) = b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b
|
SHA256 (lua-5.2.4.tar.gz) = b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b
|
||||||
SHA256 (lua.diff) = e9638e7767244b1f4991088b3786f1a36235935b3161690d2b2e188a896fc1af
|
SHA256 (lua.diff) = e9638e7767244b1f4991088b3786f1a36235935b3161690d2b2e188a896fc1af
|
||||||
|
@ -1,47 +1,49 @@
|
|||||||
# Description: A programming language designed for extending applications.
|
# Description: A programming language designed for extending applications
|
||||||
# URL: http://www.lua.org/
|
# URL: https://www.lua.org/
|
||||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||||
# Depends on: readline
|
# Depends on: readline
|
||||||
|
|
||||||
name=lua52
|
name=lua52
|
||||||
version=5.2.4
|
version=5.2.4
|
||||||
release=3
|
release=4
|
||||||
source=(http://www.lua.org/ftp/lua-$version.tar.gz
|
source=(http://www.lua.org/ftp/lua-$version.tar.gz
|
||||||
lua.diff lua-5.2-cflags.diff lua.pc)
|
lua.diff lua-5.2-cflags.diff lua.pc)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd lua-$version
|
cd lua-$version
|
||||||
|
|
||||||
patch -p1 -i $SRC/lua.diff
|
patch -p1 -i $SRC/lua.diff
|
||||||
patch -p1 -i $SRC/lua-5.2-cflags.diff
|
patch -p1 -i $SRC/lua-5.2-cflags.diff
|
||||||
|
|
||||||
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
|
||||||
sed -e 's:llua:llua5.2:' -e 's:/include:/include/lua5.2:' -i lua.pc
|
sed -e 's:llua:llua5.2:' -e 's:/include:/include/lua5.2:' -i lua.pc
|
||||||
|
|
||||||
sed -r \
|
sed -r \
|
||||||
-e '/^LUA_(SO|A|T)=/ s/lua/lua5.2/' \
|
-e '/^LUA_(SO|A|T)=/ s/lua/lua5.2/' \
|
||||||
-e '/^LUAC_T=/ s/luac/luac5.2/' \
|
-e '/^LUAC_T=/ s/luac/luac5.2/' \
|
||||||
-i src/Makefile
|
-i src/Makefile
|
||||||
|
|
||||||
make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
|
sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h
|
||||||
|
|
||||||
install -d $PKG/usr/include/lua5.2 $PKG/usr/share/man/man1 $PKG/usr/lib
|
make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
|
||||||
|
|
||||||
make \
|
install -d $PKG/usr/include/lua5.2 $PKG/usr/share/man/man1 $PKG/usr/lib
|
||||||
TO_BIN="lua5.2 luac5.2" \
|
|
||||||
TO_LIB="liblua5.2.a liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.$version" \
|
|
||||||
INSTALL_DATA='cp -d' \
|
|
||||||
INSTALL_TOP="$PKG/usr" \
|
|
||||||
INSTALL_INC="$PKG/usr/include/lua5.2" \
|
|
||||||
INSTALL_MAN="$PKG/usr/share/man/man1" \
|
|
||||||
install
|
|
||||||
|
|
||||||
install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua5.2.pc
|
make \
|
||||||
|
TO_BIN="lua5.2 luac5.2" \
|
||||||
|
TO_LIB="liblua5.2.a liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.$version" \
|
||||||
|
INSTALL_DATA='cp -d' \
|
||||||
|
INSTALL_TOP="$PKG/usr" \
|
||||||
|
INSTALL_INC="$PKG/usr/include/lua5.2" \
|
||||||
|
INSTALL_MAN="$PKG/usr/share/man/man1" \
|
||||||
|
install
|
||||||
|
|
||||||
# fixups
|
install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua5.2.pc
|
||||||
ln -s liblua5.2.so $PKG/usr/lib/liblua.so.5.2
|
|
||||||
ln -s liblua5.2.so $PKG/usr/lib/liblua.so.$version
|
# fixups
|
||||||
cd $PKG/usr/share/man/man1
|
ln -s liblua5.2.so $PKG/usr/lib/liblua.so.5.2
|
||||||
mv lua.1 lua5.2.1
|
ln -s liblua5.2.so $PKG/usr/lib/liblua.so.$version
|
||||||
mv luac.1 luac5.2.1
|
cd $PKG/usr/share/man/man1
|
||||||
|
mv lua.1 lua5.2.1
|
||||||
|
mv luac.1 luac5.2.1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user