hblock: bump to 3.4.0
[kiss-trunc88.git] / lua51 / build1
blob91d9cc641d47e2c8191c6a8c4fb5b08743973fc1
1 #!/bin/sh -e
3 #patch -Np1 < lua51.patch
4 #sed -e 's:llua:llua5.1:' -e 's:/include:/include/lua5.1:' -i etc/lua.pc
5 #sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' -e '/^LUAC_T=/ s/luac/luac5.1/' -i src/Makefile
7 make MYCFLAGS="$CFLAGS -fPIC" \
8 MYLDFLAGS="$LDFLAGS" \
9 posix
11 make INSTALL_TOP="$1/usr" \
12 INSTALL_MAN="$1/usr/share/man/man1" \
13 INSTALL_DATA="cp -d" \
14 install
15 #INSTALL_INC="$1/usr/include/lua5.1" \
16 #TO_BIN="lua5.1 luac5.1" \
17 #TO_LIB="liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.$2" \
19 install -Dm 644 etc/lua.pc "$1/usr/lib/pkgconfig/lua.pc"
20 #ln -sf lua51.pc "$1/usr/lib/pkgconfig/lua5.1.pc"
21 #ln -sf lua51.pc "$1/usr/lib/pkgconfig/lua-5.1.pc"
23 #ln -s liblua5.1.so "$1/usr/lib/liblua.so.5.1"
24 #ln -s liblua5.1.so "$1/usr/lib/liblua.so.$2"
26 #cd "$1/usr/share/man/man1"
27 #mv lua.1 lua5.1.1
28 #mv luac.1 luac5.1.1