lua51: adopted port
This commit is contained in:
parent
ab5ce2e610
commit
97580e5496
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/ZygDCgA4/Oazw628wPIZmGwdJdiN+O1l3lrObTur7dpyaWyXC660O6LImT3hVqNcEZhy7qODRf4PAjNzo1gnA4=
|
||||
SHA256 (Pkgfile) = 8d1643d2388777fe3348f6da20d216bcf11d6b8f1c06961986ce01b1f7e1c0a6
|
||||
RWSE3ohX2g5d/Wa3HO8CVxoN1GMznUp6IqBRHLK67T3D5rvxKx/kFnBz6FQNGmxphq73A6XKZvhRsLyd99hhy7An/mE18Zb5pgg=
|
||||
SHA256 (Pkgfile) = fa529e2b89d628cc6bcbb163bb25b2a1ae5af7979b21819b84431b5217616f16
|
||||
SHA256 (.footprint) = d7810f391321cfb450deb1c8d81418d5ee43c3b0c490e5e912fcdf97a3f2f501
|
||||
SHA256 (lua-5.1.5.tar.gz) = 2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
|
||||
SHA256 (lua.diff) = fc46c437d1ba7bb6e114b7aa3f49f035224e7b41d7a3d5e6b9e49682c9f2cc85
|
||||
|
@ -1,50 +1,52 @@
|
||||
# Description: A programming language designed for extending applications.
|
||||
# URL: http://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=lua51
|
||||
version=5.1.5
|
||||
release=1
|
||||
release=2
|
||||
source=(http://www.lua.org/ftp/lua-$version.tar.gz
|
||||
lua.diff lua-5.1-cflags.diff)
|
||||
lua.diff lua-5.1-cflags.diff)
|
||||
|
||||
build() {
|
||||
cd lua-$version
|
||||
cd lua-$version
|
||||
|
||||
patch -p1 -i $SRC/lua.diff
|
||||
patch -p1 -i $SRC/lua-5.1-cflags.diff
|
||||
export CFLAGS="$CFLAGS -fPIC"
|
||||
patch -p1 -i $SRC/lua.diff
|
||||
patch -p1 -i $SRC/lua-5.1-cflags.diff
|
||||
export CFLAGS="$CFLAGS -fPIC"
|
||||
|
||||
sed \
|
||||
-e 's|llua|llua5.1|' \
|
||||
-e 's|/include|/include/lua5.1|' \
|
||||
-i etc/lua.pc
|
||||
sed \
|
||||
-e 's|llua|llua5.1|' \
|
||||
-e 's|/include|/include/lua5.1|' \
|
||||
-i etc/lua.pc
|
||||
|
||||
sed -r \
|
||||
-e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' \
|
||||
-e '/^LUAC_T=/ s/luac/luac5.1/' \
|
||||
-i src/Makefile
|
||||
sed -r \
|
||||
-e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' \
|
||||
-e '/^LUAC_T=/ s/luac/luac5.1/' \
|
||||
-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.1 $PKG/usr/share/man/man1 $PKG/usr/lib
|
||||
make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
|
||||
|
||||
make \
|
||||
TO_BIN="lua5.1 luac5.1" \
|
||||
TO_LIB="liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.$version" \
|
||||
INSTALL_DATA='cp -d' \
|
||||
INSTALL_TOP="$PKG/usr" \
|
||||
INSTALL_INC="$PKG/usr/include/lua5.1" \
|
||||
INSTALL_MAN="$PKG/usr/share/man/man1" \
|
||||
install
|
||||
install -d $PKG/usr/include/lua5.1 $PKG/usr/share/man/man1 $PKG/usr/lib
|
||||
|
||||
install -m 0644 -D etc/lua.pc $PKG/usr/lib/pkgconfig/lua5.1.pc
|
||||
make \
|
||||
TO_BIN="lua5.1 luac5.1" \
|
||||
TO_LIB="liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.$version" \
|
||||
INSTALL_DATA='cp -d' \
|
||||
INSTALL_TOP="$PKG/usr" \
|
||||
INSTALL_INC="$PKG/usr/include/lua5.1" \
|
||||
INSTALL_MAN="$PKG/usr/share/man/man1" \
|
||||
install
|
||||
|
||||
# fixups
|
||||
ln -s liblua5.1.so $PKG/usr/lib/liblua.so.5.1
|
||||
ln -s liblua5.1.so $PKG/usr/lib/liblua.so.$version
|
||||
cd $PKG/usr/share/man/man1
|
||||
mv lua.1 lua5.1.1
|
||||
mv luac.1 luac5.1.1
|
||||
install -m 0644 -D etc/lua.pc $PKG/usr/lib/pkgconfig/lua5.1.pc
|
||||
|
||||
# fixups
|
||||
ln -s liblua5.1.so $PKG/usr/lib/liblua.so.5.1
|
||||
ln -s liblua5.1.so $PKG/usr/lib/liblua.so.$version
|
||||
cd $PKG/usr/share/man/man1
|
||||
mv lua.1 lua5.1.1
|
||||
mv luac.1 luac5.1.1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user