From 6ad215340b9d994ea78e985670724517623233c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Thu, 23 Jun 2016 10:15:58 +0000 Subject: Adds Lua v5.3.3 (via daurnimator and[1].) References: Thu, 23 Jun 2016 10:16:16 +0000 [1] svntogit/packages.git - Git clone of the 'packages' repository --- 335.lua.build | 1 + 335.make.build | 1 - 336.make.build | 1 + 336.mksh.build | 1 - 336.mksh.vars | 33 --------------- 337.mksh.build | 1 + 337.mksh.vars | 33 +++++++++++++++ 337.nano.build | 1 - 338.nano.build | 1 + 338.netcat.build | 1 - 338.netcat.vars | 10 ----- 339.netcat.build | 1 + 339.netcat.vars | 10 +++++ 339.openssh.build | 1 - 340.openssh.build | 1 + 340.pacman.build | 1 - 341.pacman.build | 1 + 341.patch.build | 1 - 342.patch.build | 1 + 342.perl.build | 1 - 342.perl.vars | 24 ----------- 343.perl.build | 1 + 343.perl.vars | 24 +++++++++++ 343.python3.build | 1 - 343.python3.vars | 19 --------- 344.python3.build | 1 + 344.python3.vars | 19 +++++++++ 344.rsync.build | 1 - 345.rsync.build | 1 + 345.sed.build | 1 - 346.sed.build | 1 + 346.tar.build | 1 - 347.tar.build | 1 + 347.tcsh.build | 1 - 348.tcsh.build | 1 + 348.util_linux.build | 1 - 348.util_linux.vars | 11 ----- 349.util_linux.build | 1 + 349.util_linux.vars | 11 +++++ 349.which.build | 1 - 350.which.build | 1 + 350.zsh.build | 1 - 351.zsh.build | 1 + build.vars | 10 ++++- lua-5.3.3.local.patch | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++ 45 files changed, 237 insertions(+), 114 deletions(-) create mode 120000 335.lua.build delete mode 120000 335.make.build create mode 120000 336.make.build delete mode 120000 336.mksh.build delete mode 100644 336.mksh.vars create mode 120000 337.mksh.build create mode 100644 337.mksh.vars delete mode 120000 337.nano.build create mode 120000 338.nano.build delete mode 120000 338.netcat.build delete mode 100644 338.netcat.vars create mode 120000 339.netcat.build create mode 100644 339.netcat.vars delete mode 120000 339.openssh.build create mode 120000 340.openssh.build delete mode 120000 340.pacman.build create mode 120000 341.pacman.build delete mode 120000 341.patch.build create mode 120000 342.patch.build delete mode 120000 342.perl.build delete mode 100644 342.perl.vars create mode 120000 343.perl.build create mode 100644 343.perl.vars delete mode 120000 343.python3.build delete mode 100644 343.python3.vars create mode 120000 344.python3.build create mode 100644 344.python3.vars delete mode 120000 344.rsync.build create mode 120000 345.rsync.build delete mode 120000 345.sed.build create mode 120000 346.sed.build delete mode 120000 346.tar.build create mode 120000 347.tar.build delete mode 120000 347.tcsh.build create mode 120000 348.tcsh.build delete mode 120000 348.util_linux.build delete mode 100644 348.util_linux.vars create mode 120000 349.util_linux.build create mode 100644 349.util_linux.vars delete mode 120000 349.which.build create mode 120000 350.which.build delete mode 120000 350.zsh.build create mode 120000 351.zsh.build create mode 100644 lua-5.3.3.local.patch diff --git a/335.lua.build b/335.lua.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/335.lua.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/335.make.build b/335.make.build deleted file mode 120000 index 52bb82e5..00000000 --- a/335.make.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/336.make.build b/336.make.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/336.make.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/336.mksh.build b/336.mksh.build deleted file mode 120000 index 52bb82e5..00000000 --- a/336.mksh.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/336.mksh.vars b/336.mksh.vars deleted file mode 100644 index b7b4582f..00000000 --- a/336.mksh.vars +++ /dev/null @@ -1,33 +0,0 @@ -# -# . ./build.vars and set -o errexit are assumed. -# - -pkg_mksh_build() { - env CC="${PKG_CC_BUILD}" \ - CFLAGS="${PKG_CFLAGS_CONFIGURE} ${PKG_CFLAGS_BUILD}" \ - sh Build.sh; -}; - -pkg_mksh_install() { - tar -cpf - mksh |\ - tar -C ${PREFIX_LVL}/bin -xpf -; - if [ ! -f ${PREFIX_LVL}/etc/shells ]; then - mkdir -p ${PREFIX_LVL}/etc; - touch ${PREFIX_LVL}/etc/shells; - fi; - if ! grep -xq "/bin/mksh" ${PREFIX_LVL}/etc/shells; then - echo /bin/mksh >> ${PREFIX_LVL}/etc/shells; - fi; - if [ ! -d ${PREFIX_LVL}/share/doc/mksh/examples ]; then - mkdir -p ${PREFIX_LVL}/share/doc/mksh/examples; - fi; - tar -cpf - dot.mkshrc |\ - tar -C ${PREFIX_LVL}/share/doc/mksh/examples -xpf -; - if [ ! -d ${PREFIX_LVL}/share/man/man1 ]; then - mkdir -p ${PREFIX_LVL}/share/man/man1; - fi; - tar -cpf - mksh.1 |\ - tar -C ${PREFIX_LVL}/share/man/man1 -xpf -; -}; - -# vim:filetype=sh diff --git a/337.mksh.build b/337.mksh.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/337.mksh.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/337.mksh.vars b/337.mksh.vars new file mode 100644 index 00000000..b7b4582f --- /dev/null +++ b/337.mksh.vars @@ -0,0 +1,33 @@ +# +# . ./build.vars and set -o errexit are assumed. +# + +pkg_mksh_build() { + env CC="${PKG_CC_BUILD}" \ + CFLAGS="${PKG_CFLAGS_CONFIGURE} ${PKG_CFLAGS_BUILD}" \ + sh Build.sh; +}; + +pkg_mksh_install() { + tar -cpf - mksh |\ + tar -C ${PREFIX_LVL}/bin -xpf -; + if [ ! -f ${PREFIX_LVL}/etc/shells ]; then + mkdir -p ${PREFIX_LVL}/etc; + touch ${PREFIX_LVL}/etc/shells; + fi; + if ! grep -xq "/bin/mksh" ${PREFIX_LVL}/etc/shells; then + echo /bin/mksh >> ${PREFIX_LVL}/etc/shells; + fi; + if [ ! -d ${PREFIX_LVL}/share/doc/mksh/examples ]; then + mkdir -p ${PREFIX_LVL}/share/doc/mksh/examples; + fi; + tar -cpf - dot.mkshrc |\ + tar -C ${PREFIX_LVL}/share/doc/mksh/examples -xpf -; + if [ ! -d ${PREFIX_LVL}/share/man/man1 ]; then + mkdir -p ${PREFIX_LVL}/share/man/man1; + fi; + tar -cpf - mksh.1 |\ + tar -C ${PREFIX_LVL}/share/man/man1 -xpf -; +}; + +# vim:filetype=sh diff --git a/337.nano.build b/337.nano.build deleted file mode 120000 index 52bb82e5..00000000 --- a/337.nano.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/338.nano.build b/338.nano.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/338.nano.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/338.netcat.build b/338.netcat.build deleted file mode 120000 index 52bb82e5..00000000 --- a/338.netcat.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/338.netcat.vars b/338.netcat.vars deleted file mode 100644 index e9bd7e18..00000000 --- a/338.netcat.vars +++ /dev/null @@ -1,10 +0,0 @@ -# -# . ./build.vars and set -o errexit are assumed. -# - -pkg_netcat_install() { - tar -cpf - nc |\ - tar -C ${PREFIX_LVL}/bin -xpf -; -}; - -# vim:filetype=sh diff --git a/339.netcat.build b/339.netcat.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/339.netcat.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/339.netcat.vars b/339.netcat.vars new file mode 100644 index 00000000..e9bd7e18 --- /dev/null +++ b/339.netcat.vars @@ -0,0 +1,10 @@ +# +# . ./build.vars and set -o errexit are assumed. +# + +pkg_netcat_install() { + tar -cpf - nc |\ + tar -C ${PREFIX_LVL}/bin -xpf -; +}; + +# vim:filetype=sh diff --git a/339.openssh.build b/339.openssh.build deleted file mode 120000 index 52bb82e5..00000000 --- a/339.openssh.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/340.openssh.build b/340.openssh.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/340.openssh.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/340.pacman.build b/340.pacman.build deleted file mode 120000 index 52bb82e5..00000000 --- a/340.pacman.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/341.pacman.build b/341.pacman.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/341.pacman.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/341.patch.build b/341.patch.build deleted file mode 120000 index 52bb82e5..00000000 --- a/341.patch.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/342.patch.build b/342.patch.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/342.patch.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/342.perl.build b/342.perl.build deleted file mode 120000 index 52bb82e5..00000000 --- a/342.perl.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/342.perl.vars b/342.perl.vars deleted file mode 100644 index 23604795..00000000 --- a/342.perl.vars +++ /dev/null @@ -1,24 +0,0 @@ -# -# . ./build.vars and set -o errexit are assumed. -# - -pkg_perl_extract_post() { - git clone https://github.com/lalbornoz/perl-cross; - for _ppep_fname_src in $(find perl-cross -type f \ - -not -path perl-cross/.git/\* -not -name .gitignore); do - _ppep_fname_dst=perl-${PKG_VERSION}${_ppep_fname_src#perl-cross}; - if [ -f ${_ppep_fname_dst} ]; then - mv ${_ppep_fname_dst} ${_ppep_fname_dst}.orig; - fi; - if [ ! -d "$(dirname ${_ppep_fname_dst})" ]; then - mkdir -p $(dirname ${_ppep_fname_dst}); - fi; - cp ${_ppep_fname_src} ${_ppep_fname_dst}; - done; - for _ppep_cflag in ${PKG_CFLAGS_CONFIGURE}; do - PKG_CONFIGURE_ARGS="${PKG_CONFIGURE_ARGS:+${PKG_CONFIGURE_ARGS} }-A ccflags=${_ppep_cflag}"; - done; - unset _ppep_fname_src _ppep_fname_dst _ppep_cflag; -}; - -# vim:filetype=sh diff --git a/343.perl.build b/343.perl.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/343.perl.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/343.perl.vars b/343.perl.vars new file mode 100644 index 00000000..23604795 --- /dev/null +++ b/343.perl.vars @@ -0,0 +1,24 @@ +# +# . ./build.vars and set -o errexit are assumed. +# + +pkg_perl_extract_post() { + git clone https://github.com/lalbornoz/perl-cross; + for _ppep_fname_src in $(find perl-cross -type f \ + -not -path perl-cross/.git/\* -not -name .gitignore); do + _ppep_fname_dst=perl-${PKG_VERSION}${_ppep_fname_src#perl-cross}; + if [ -f ${_ppep_fname_dst} ]; then + mv ${_ppep_fname_dst} ${_ppep_fname_dst}.orig; + fi; + if [ ! -d "$(dirname ${_ppep_fname_dst})" ]; then + mkdir -p $(dirname ${_ppep_fname_dst}); + fi; + cp ${_ppep_fname_src} ${_ppep_fname_dst}; + done; + for _ppep_cflag in ${PKG_CFLAGS_CONFIGURE}; do + PKG_CONFIGURE_ARGS="${PKG_CONFIGURE_ARGS:+${PKG_CONFIGURE_ARGS} }-A ccflags=${_ppep_cflag}"; + done; + unset _ppep_fname_src _ppep_fname_dst _ppep_cflag; +}; + +# vim:filetype=sh diff --git a/343.python3.build b/343.python3.build deleted file mode 120000 index 52bb82e5..00000000 --- a/343.python3.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/343.python3.vars b/343.python3.vars deleted file mode 100644 index c987c798..00000000 --- a/343.python3.vars +++ /dev/null @@ -1,19 +0,0 @@ -# -# . ./build.vars and set -o errexit are assumed. -# - -pkg_python3_configure_pre() { - (cd ../${PKG_SUBDIR} && autoconf); - (unset BLDSHARED CC CFLAGS CPPFLAGS LDFLAGS; - mv config.cache ../${PKG_SUBDIR}/config.cache; - ../${PKG_SUBDIR}/configure; - make _FIP=Programs/host_freeze_importlib Programs/host_freeze_importlib \ - BUILDPYTHON=hostpython hostpython \ - PGEN=Parser/hostpgen Parser/hostpgen; - make distclean); - mv ../${PKG_SUBDIR}/config.cache .; - sed -i.orig '/^# autoconf/a\ -ac_cv_buggy_getaddrinfo=no' config.cache; -}; - -# vim:filetype=sh diff --git a/344.python3.build b/344.python3.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/344.python3.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/344.python3.vars b/344.python3.vars new file mode 100644 index 00000000..c987c798 --- /dev/null +++ b/344.python3.vars @@ -0,0 +1,19 @@ +# +# . ./build.vars and set -o errexit are assumed. +# + +pkg_python3_configure_pre() { + (cd ../${PKG_SUBDIR} && autoconf); + (unset BLDSHARED CC CFLAGS CPPFLAGS LDFLAGS; + mv config.cache ../${PKG_SUBDIR}/config.cache; + ../${PKG_SUBDIR}/configure; + make _FIP=Programs/host_freeze_importlib Programs/host_freeze_importlib \ + BUILDPYTHON=hostpython hostpython \ + PGEN=Parser/hostpgen Parser/hostpgen; + make distclean); + mv ../${PKG_SUBDIR}/config.cache .; + sed -i.orig '/^# autoconf/a\ +ac_cv_buggy_getaddrinfo=no' config.cache; +}; + +# vim:filetype=sh diff --git a/344.rsync.build b/344.rsync.build deleted file mode 120000 index 52bb82e5..00000000 --- a/344.rsync.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/345.rsync.build b/345.rsync.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/345.rsync.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/345.sed.build b/345.sed.build deleted file mode 120000 index 52bb82e5..00000000 --- a/345.sed.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/346.sed.build b/346.sed.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/346.sed.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/346.tar.build b/346.tar.build deleted file mode 120000 index 52bb82e5..00000000 --- a/346.tar.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/347.tar.build b/347.tar.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/347.tar.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/347.tcsh.build b/347.tcsh.build deleted file mode 120000 index 52bb82e5..00000000 --- a/347.tcsh.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/348.tcsh.build b/348.tcsh.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/348.tcsh.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/348.util_linux.build b/348.util_linux.build deleted file mode 120000 index 52bb82e5..00000000 --- a/348.util_linux.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/348.util_linux.vars b/348.util_linux.vars deleted file mode 100644 index 20f843c4..00000000 --- a/348.util_linux.vars +++ /dev/null @@ -1,11 +0,0 @@ -# -# . ./build.vars and set -o errexit are assumed. -# - -pkg_util_linux_configure_pre() { - export NCURSESW_CFLAGS="-I${PREFIX_LVL3}/include -I${PREFIX_LVL3}/include/ncursesw"; - export PKG_CONFIG_LIBDIR="${PREFIX_LVL3}/lib/pkgconfig"; - export NCURSESW_LIBS="-L${PREFIX_LVL3}/lib $(env PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR} pkg-config --libs ncursesw)"; -}; - -# vim:filetype=sh diff --git a/349.util_linux.build b/349.util_linux.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/349.util_linux.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/349.util_linux.vars b/349.util_linux.vars new file mode 100644 index 00000000..20f843c4 --- /dev/null +++ b/349.util_linux.vars @@ -0,0 +1,11 @@ +# +# . ./build.vars and set -o errexit are assumed. +# + +pkg_util_linux_configure_pre() { + export NCURSESW_CFLAGS="-I${PREFIX_LVL3}/include -I${PREFIX_LVL3}/include/ncursesw"; + export PKG_CONFIG_LIBDIR="${PREFIX_LVL3}/lib/pkgconfig"; + export NCURSESW_LIBS="-L${PREFIX_LVL3}/lib $(env PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR} pkg-config --libs ncursesw)"; +}; + +# vim:filetype=sh diff --git a/349.which.build b/349.which.build deleted file mode 120000 index 52bb82e5..00000000 --- a/349.which.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/350.which.build b/350.which.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/350.which.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/350.zsh.build b/350.zsh.build deleted file mode 120000 index 52bb82e5..00000000 --- a/350.zsh.build +++ /dev/null @@ -1 +0,0 @@ -pkg.build \ No newline at end of file diff --git a/351.zsh.build b/351.zsh.build new file mode 120000 index 00000000..52bb82e5 --- /dev/null +++ b/351.zsh.build @@ -0,0 +1 @@ +pkg.build \ No newline at end of file diff --git a/build.vars b/build.vars index e9cc2410..ef7fee31 100644 --- a/build.vars +++ b/build.vars @@ -52,7 +52,7 @@ export PATH="${PREFIX}/bin${PATH:+:${PATH}}"; : ${WGET_ARGS:="--no-check-certificate"}; : ${WORKDIR:=${PREFIX}/tmp}; -: ${PKG_BUILD_NAMES:="apk_tools bash binutils binutils_host bzip2 coreutils curl dalist dash diffutils findutils gawk git glib gmp grep gzip hexcurse inetutils irssi less libarchive libelf libfetch libffi libnbcompat libressl libz make mksh mpc mpfr nano ncurses ncursestw ncursesw netcat ntapi ntcon ntctty openssh pacman patch pemagine perl pkgconf pkgconf_host popt psxscl psxstub psxtypes python3 rsync sed slibtool tar tcsh util_linux which xz zsh"}; +: ${PKG_BUILD_NAMES:="apk_tools bash binutils binutils_host bzip2 coreutils curl dalist dash diffutils findutils gawk git glib gmp grep gzip hexcurse inetutils irssi less libarchive libelf libfetch libffi libnbcompat libressl libz lua make mksh mpc mpfr nano ncurses ncursestw ncursesw netcat ntapi ntcon ntctty openssh pacman patch pemagine perl pkgconf pkgconf_host popt psxscl psxstub psxtypes python3 rsync sed slibtool tar tcsh util_linux which xz zsh"}; : ${PKG_BUILD_VARS:="AR_BUILD AR_CONFIGURE AR_INSTALL AUTOGEN BUILD_DIR BUILD_TYPE CC_BUILD CC_CONFIGURE CC_INSTALL CFLAGS_BUILD_EXTRA CFLAGS_CONFIGURE CFLAGS_CONFIGURE_EXTRA CFLAGS_INSTALL_EXTRA CONFIGURE_ARGS CONFIGURE_ARGS_EXTRA ENV_VARS_EXTRA FNAME GIT_ARGS_EXTRA INSTALL_TARGET LDFLAGS_BUILD_EXTRA LDFLAGS_CONFIGURE LDFLAGS_CONFIGURE_EXTRA LDFLAGS_INSTALL_EXTRA LIBFILES_FIX LIBTOOL_MIDIPIX LIBTOOL_MIDIPIX_FIX MAKEFLAGS_BUILD MAKEFLAGS_BUILD_EXTRA MAKEFLAGS_INSTALL MAKEFLAGS_INSTALL_EXTRA NO_CLEAN PATCHES_EXTRA_URL PREFIX_EXTRA RANLIB_BUILD RANLIB_INSTALL SHA256SUM SLIBTOOL SUBDIR SUBDIR_CREATE URL URL_FNAME URL_TYPE VERSION"}; : ${PKG_LVL0_CFLAGS_CONFIGURE:=-O0}; : ${PKG_LVL0_CONFIGURE_ARGS:="-C --disable-nls --host=${HOST_NATIVE} --prefix= --target=${TARGET}"}; @@ -237,6 +237,14 @@ export PATH="${PREFIX}/bin${PATH:+:${PATH}}"; : ${PKG_LIBZ_SHA256SUM:=33e65f22ec3d3e3f87436e53f82eb114054cd3aa373dc0480625dd92806fd9a0}; : ${PKG_LIBZ_URL:=https://sortix.org/libz/release/libz-${PKG_LIBZ_VERSION}.tar.gz}; : ${PKG_LIBZ_CONFIGURE_ARGS:=--host=${HOST_NATIVE} --prefix= --target=${TARGET}}; +: ${PKG_LUA_VERSION:=5.3.3}; +: ${PKG_LUA_SHA256SUM:=5113c06884f7de453ce57702abaac1d618307f33f6789fa870e87a59d772aca2}; +: ${PKG_LUA_URL:=https://www.lua.org/ftp/lua-${PKG_LUA_VERSION}.tar.gz}; +: ${PKG_LUA_AR_BUILD:=${HOST_NATIVE}-ar}; +: ${PKG_LUA_BUILD_DIR=lua-5.3.3}; +: ${PKG_LUA_CC_BUILD:=${HOST_NATIVE}-gcc}; +: ${PKG_LUA_MAKEFLAGS_BUILD_EXTRA:=midipix}; +: ${PKG_LUA_MAKEFLAGS_INSTALL_EXTRA:=INSTALL_TOP=${PREFIX_LVL3}}; : ${PKG_MAKE_VERSION:=3.81}; : ${PKG_MAKE_SHA256SUM:=f3e69023771e23908f5d5592954d8271d3d6af09693cecfd29cee6fde8550dc8}; : ${PKG_MAKE_URL:=https://ftp.gnu.org/gnu/make/make-${PKG_MAKE_VERSION}.tar.bz2}; diff --git a/lua-5.3.3.local.patch b/lua-5.3.3.local.patch new file mode 100644 index 00000000..fe0e4aa4 --- /dev/null +++ b/lua-5.3.3.local.patch @@ -0,0 +1,114 @@ +--- lua-5.3.3/src/luaconf.h.orig 2016-05-01 20:06:09.000000000 +0000 ++++ lua-5.3.3/src/luaconf.h 2016-06-23 10:02:23.471604030 +0000 +@@ -72,6 +72,12 @@ + #endif + + ++#if defined(LUA_USE_MIDIPIX) ++#define LUA_USE_POSIX ++#define LUA_USE_DLOPEN /* needs an extra library: -ldl */ ++#endif ++ ++ + /* + @@ LUA_C89_NUMBERS ensures that Lua uses the largest types available for + ** C89 ('long' and 'double'); Windows always has '__int64', so it does +@@ -188,7 +194,7 @@ + + #else /* }{ */ + +-#define LUA_ROOT "/usr/local/" ++#define LUA_ROOT "/usr/" + #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" + #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" + #define LUA_PATH_DEFAULT \ +--- lua-5.3.3/src/Makefile.orig 2015-05-27 11:10:11.000000000 +0000 ++++ lua-5.3.3/src/Makefile 2016-06-23 10:08:36.751595745 +0000 +@@ -26,9 +26,10 @@ + + # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE ======= + +-PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris ++PLATS= aix bsd c89 freebsd generic linux macosx midipix mingw posix solaris + + LUA_A= liblua.a ++LUA_SO= liblua.so + CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \ + lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \ + ltm.o lundump.o lvm.o lzio.o +@@ -43,7 +44,7 @@ + LUAC_O= luac.o + + ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) +-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) ++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) + ALL_A= $(LUA_A) + + # Targets start here. +@@ -56,9 +57,14 @@ + a: $(ALL_A) + + $(LUA_A): $(BASE_O) +- $(AR) $@ $(BASE_O) ++ $(AR) rcs $@ $(BASE_O) + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO) ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + +@@ -112,6 +118,9 @@ + macosx: + $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" CC=cc + ++midipix: ++ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MIDIPIX" SYSLIBS="-Wl,-E -ldl" ++ + mingw: + $(MAKE) "LUA_A=lua53.dll" "LUA_T=lua.exe" \ + "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \ +--- lua-5.3.3/Makefile.orig 2016-01-14 01:13:47.000000000 +0000 ++++ lua-5.3.3/Makefile 2016-06-23 10:14:59.643587247 +0000 +@@ -36,23 +36,24 @@ + # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE ======= + + # Convenience platforms targets. +-PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris ++PLATS= aix bsd c89 freebsd generic linux macosx midipix mingw posix solaris ++ ++# Lua version and release. ++V= 5.3 ++R= $V.3 + + # What to install. + TO_BIN= lua luac + TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp + TO_LIB= liblua.a ++TO_LIBSO= liblua.so liblua.so.$V + TO_MAN= lua.1 luac.1 + +-# Lua version and release. +-V= 5.3 +-R= $V.3 +- + # Targets start here. + all: $(PLAT) + + $(PLATS) clean: +- cd src && $(MAKE) $@ ++ cd src && $(MAKE) $@ V=$(V) R=$(R) + + test: dummy + src/lua -v +@@ -62,6 +63,7 @@ + cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN) + cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC) + cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB) ++ cd src && $(INSTALL_EXEC) $(TO_LIBSO) $(INSTALL_LIB) + cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN) + + uninstall: -- cgit v1.2.3