liblua 52 53 54: add static library subpackage (#7939)

%ci:no-build
This commit is contained in:
Leap of Azzam 2021-12-30 17:17:37 +07:00 committed by GitHub
parent 3636e9fb9c
commit fddbdc20f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 21 deletions

View File

@ -29,7 +29,7 @@ termux_step_make() {
termux_step_make_install() { termux_step_make_install() {
make \ make \
TO_BIN="lua5.2 luac5.2" \ TO_BIN="lua5.2 luac5.2" \
TO_LIB="liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.${TERMUX_PKG_VERSION}" \ TO_LIB="liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.${TERMUX_PKG_VERSION} liblua5.2.a" \
INSTALL_DATA="cp -d" \ INSTALL_DATA="cp -d" \
INSTALL_TOP="$TERMUX_PREFIX" \ INSTALL_TOP="$TERMUX_PREFIX" \
INSTALL_INC="$TERMUX_PREFIX/include/lua5.2" \ INSTALL_INC="$TERMUX_PREFIX/include/lua5.2" \

View File

@ -28,7 +28,7 @@ termux_step_pre_configure() {
termux_step_make_install() { termux_step_make_install() {
make \ make \
TO_BIN="lua5.3 luac5.3" \ TO_BIN="lua5.3 luac5.3" \
TO_LIB="liblua5.3.so liblua5.3.so.5.3 liblua5.3.so.${TERMUX_PKG_VERSION}" \ TO_LIB="liblua5.3.so liblua5.3.so.5.3 liblua5.3.so.${TERMUX_PKG_VERSION} liblua5.3.a" \
INSTALL_DATA="cp -d" \ INSTALL_DATA="cp -d" \
INSTALL_TOP="$TERMUX_PREFIX" \ INSTALL_TOP="$TERMUX_PREFIX" \
INSTALL_INC="$TERMUX_PREFIX/include/lua5.3" \ INSTALL_INC="$TERMUX_PREFIX/include/lua5.3" \

View File

@ -28,7 +28,7 @@ termux_step_pre_configure() {
termux_step_make_install() { termux_step_make_install() {
make \ make \
TO_BIN="lua5.4 luac5.4" \ TO_BIN="lua5.4 luac5.4" \
TO_LIB="liblua5.4.so liblua5.4.so.5.4 liblua5.4.so.${TERMUX_PKG_VERSION}" \ TO_LIB="liblua5.4.so liblua5.4.so.5.4 liblua5.4.so.${TERMUX_PKG_VERSION} liblua5.4.a" \
INSTALL_DATA="cp -d" \ INSTALL_DATA="cp -d" \
INSTALL_TOP="$TERMUX_PREFIX" \ INSTALL_TOP="$TERMUX_PREFIX" \
INSTALL_INC="$TERMUX_PREFIX/include/lua5.4" \ INSTALL_INC="$TERMUX_PREFIX/include/lua5.4" \

View File

@ -37,10 +37,12 @@ termux_step_make_install () {
rm -f $TERMUX_PREFIX/lib/libluajit* rm -f $TERMUX_PREFIX/lib/libluajit*
install -Dm600 $TERMUX_PKG_SRCDIR/src/libluajit.so $TERMUX_PREFIX/lib/libluajit-5.1.so.2.1.0 install -Dm600 $TERMUX_PKG_SRCDIR/src/libluajit.so $TERMUX_PREFIX/lib/libluajit-5.1.so.2.1.0
install -Dm600 $TERMUX_PKG_SRCDIR/src/libluajit.a $TERMUX_PREFIX/lib/libluajit-5.1.a
(cd $TERMUX_PREFIX/lib; (cd $TERMUX_PREFIX/lib;
ln -s -f libluajit-5.1.so.2.1.0 libluajit.so; ln -s -f libluajit-5.1.so.2.1.0 libluajit.so;
ln -s -f libluajit-5.1.so.2.1.0 libluajit-5.1.so; ln -s -f libluajit-5.1.so.2.1.0 libluajit-5.1.so;
ln -s -f libluajit-5.1.so.2.1.0 libluajit-5.1.so.2;) ln -s -f libluajit-5.1.so.2.1.0 libluajit-5.1.so.2;
ln -s -f libluajit-5.1.a libluajit.a;)
install -Dm600 $TERMUX_PKG_SRCDIR/etc/luajit.1 $TERMUX_PREFIX/share/man/man1/luajit.1 install -Dm600 $TERMUX_PKG_SRCDIR/etc/luajit.1 $TERMUX_PREFIX/share/man/man1/luajit.1
install -Dm600 $TERMUX_PKG_SRCDIR/etc/luajit.pc $TERMUX_PREFIX/lib/pkgconfig/luajit.pc install -Dm600 $TERMUX_PKG_SRCDIR/etc/luajit.pc $TERMUX_PREFIX/lib/pkgconfig/luajit.pc

View File

@ -9,23 +9,6 @@
# #
# Use this if you want to force a 32 bit build on a 64 bit multilib OS. # Use this if you want to force a 32 bit build on a 64 bit multilib OS.
#CC= $(DEFAULT_CC) -m32 #CC= $(DEFAULT_CC) -m32
@@ -71,14 +71,14 @@
# as dynamic mode.
#
# Mixed mode creates a static + dynamic library and a statically linked luajit.
-BUILDMODE= mixed
+#BUILDMODE= mixed
#
# Static mode creates a static library and a statically linked luajit.
#BUILDMODE= static
#
# Dynamic mode creates a dynamic library and a dynamically linked luajit.
# Note: this executable will only run when the library is installed!
-#BUILDMODE= dynamic
+BUILDMODE= dynamic
#
##############################################################################
@@ -192,7 +192,7 @@ @@ -192,7 +192,7 @@
CCOPTIONS= $(CCDEBUG) $(ASOPTIONS) CCOPTIONS= $(CCDEBUG) $(ASOPTIONS)
LDOPTIONS= $(CCDEBUG) $(LDFLAGS) LDOPTIONS= $(CCDEBUG) $(LDFLAGS)