Index: lang/lua53/Makefile =================================================================== --- lang/lua53/Makefile +++ lang/lua53/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= lua -DISTVERSION= 5.3.5 -PORTREVISION= 3 +DISTVERSION= 5.3.6 CATEGORIES= lang MASTER_SITES= https://www.lua.org/ftp/ PKGNAMESUFFIX= 53 @@ -24,7 +23,37 @@ # See http://wiki.freebsd.org/MatthiasAndree/LuaLessonsLearnt MAKE_ARGS= __MAKE_CONF=${NONEXISTENT} -BUILD_WRKSRC= ${WRKSRC}/src +# using the "bsd" target rather than "freebsd" saves patching out the +# assumption of using base libedit in order to make it configurable. "bsd" +# is "generic" plus the POSIX and DLOPEN options, plus -Wl,-E at link time; +# it doesn't set CC either, which makes it easier for us to control that too. +ALL_TARGET=bsd + +LUA_LIB_STATIC= liblua-${LUA_VER}.a +LUA_LIB_SHARED= liblua-${LUA_VER}.so +LUA_PC_FILE= lua-${LUA_VER}.pc + +CFLAGS+= -fPIC +# 2019-01-25: -pthread in LIBS is a work around for the following bug: +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235211 +LIBS+= -pthread + +WITHOUT_NO_STRICT_ALIASING=yes + +MAKE_ARGS+= CC="${CC}" \ + MYCFLAGS="${CPPFLAGS} ${CFLAGS}" \ + MYLDFLAGS="${LDFLAGS}" \ + MYLIBS="${LIBS}" \ + LUA_T=${LUA_CMD} \ + LUAC_T=${LUAC_CMD} \ + LUA_A=${LUA_LIB_STATIC} \ + LUA_SO=${LUA_LIB_SHARED} \ + LUA_SONAME=${LUA_LIB_SHARED} \ + TO_BIN="${LUA_CMD} ${LUAC_CMD}" \ + TO_LIB="${LUA_LIB_SHARED} ${LUA_LIB_STATIC}" \ + INSTALL_TOP=${STAGEDIR}${PREFIX} \ + INSTALL_INC=${STAGEDIR}${LUA_INCDIR} \ + INSTALL_EXEC="${INSTALL_PROGRAM}" # Source, destination, and filenames to copy for the DOCS option # (automatically added to pkg-plist if DOCS is set) @@ -33,95 +62,64 @@ # so that ports for Lua modules can use the version subdir too without # making a mess. DOCSDIR= ${LUA_DOCSDIR} -PORTDOCS= * BUILD_WRKDOC= ${WRKSRC}/doc -LUA_LIB_STATIC= liblua-${LUA_VER}.a -LUA_LIB_SHARED= liblua-${LUA_VER}.so -LUA_PC_FILE= lua-${LUA_VER}.pc +SUB_FILES= ${LUA_PC_FILE} +SUB_LIST= version=${PORTVERSION} \ + includedir=${LUA_INCDIR} \ + libdir=${LUA_LIBDIR} \ + soname=lua-${LUA_VER} -# using the "bsd" target rather than "freebsd" saves patching out the -# assumption of using base libedit in order to make it configurable. "bsd" -# is "generic" plus the POSIX and DLOPEN options, plus -Wl,-E at link time; -# it doesn't set CC either, which makes it easier for us to control that too. -ALL_TARGET=bsd +BUILD_WRKSRC= ${WRKSRC}/src -# Options +PORTDOCS= * -OPTIONS_DEFAULT=LIBEDIT_DL +# Options -OPTIONS_GROUP= DOCSGRP DEBUGGRP -OPTIONS_SINGLE= EDITGRP +OPTIONS_DEFAULT= LIBEDIT_DL -OPTIONS_GROUP_DOCSGRP= DOCS +OPTIONS_GROUP= DOCSGRP DEBUGGRP OPTIONS_GROUP_DEBUGGRP= ASSERT APICHECK +OPTIONS_GROUP_DOCSGRP= DOCS +OPTIONS_SINGLE= EDITGRP OPTIONS_SINGLE_EDITGRP= EDITNONE LIBEDIT_DL LIBEDIT READLINE # Option descriptions -DEBUGGRP_DESC= Debugging options -ASSERT_DESC= Enable interpreter assertions APICHECK_DESC= Enable API checks +ASSERT_DESC= Enable interpreter assertions +DEBUGGRP_DESC= Debugging options DOCSGRP_DESC= Documentation options DOCS_DESC= Install language and API reference (HTML, ~400kB) EDITGRP_DESC= Interactive command-line editing EDITNONE_DESC= No command-line editing -LIBEDIT_DL_DESC=Use dynamically loaded libedit (recommended) LIBEDIT_DESC= Use libedit (breaks lcurses) +LIBEDIT_DL_DESC=Use dynamically loaded libedit (recommended) READLINE_DESC= Use GNU Readline (breaks lcurses) # Option implementations -ASSERT_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-assert - APICHECK_CPPFLAGS= -DLUA_USE_APICHECK +ASSERT_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-assert # EDITNONE currently requires no settings -LIBEDIT_DL_USES= libedit -LIBEDIT_DL_CPPFLAGS= -DLUA_USE_READLINE_DL - LIBEDIT_USES= libedit LIBEDIT_CPPFLAGS= -DLUA_USE_READLINE LIBEDIT_LIBS= -ledit +LIBEDIT_DL_USES= libedit +LIBEDIT_DL_CPPFLAGS= -DLUA_USE_READLINE_DL + READLINE_USES= readline READLINE_CPPFLAGS= -DLUA_USE_READLINE READLINE_LIBS= -lreadline # end of option vars -CFLAGS+= -fPIC -# 2019-01-25: -pthread in LIBS is a work around for the following bug: -# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235211 -LIBS+= -pthread - -WITHOUT_NO_STRICT_ALIASING=yes - -MAKE_ARGS+= CC="${CC}" \ - MYCFLAGS="${CPPFLAGS} ${CFLAGS}" \ - MYLDFLAGS="${LDFLAGS}" \ - MYLIBS="${LIBS}" \ - LUA_T=${LUA_CMD} \ - LUAC_T=${LUAC_CMD} \ - LUA_A=${LUA_LIB_STATIC} \ - LUA_SO=${LUA_LIB_SHARED} \ - LUA_SONAME=${LUA_LIB_SHARED} \ - TO_BIN="${LUA_CMD} ${LUAC_CMD}" \ - TO_LIB="${LUA_LIB_SHARED} ${LUA_LIB_STATIC}" \ - INSTALL_TOP=${STAGEDIR}${PREFIX} \ - INSTALL_INC=${STAGEDIR}${LUA_INCDIR} \ - INSTALL_EXEC="${INSTALL_PROGRAM}" - -SUB_FILES= ${LUA_PC_FILE} -SUB_LIST= version=${PORTVERSION} \ - includedir=${LUA_INCDIR} \ - libdir=${LUA_LIBDIR} \ - soname=lua-${LUA_VER} - post-patch: @${REINPLACE_CMD} -e "/LUA_ROOT/s,/usr/local,${LUA_PREFIX}," \ ${WRKSRC}/src/luaconf.h Index: lang/lua53/distinfo =================================================================== --- lang/lua53/distinfo +++ lang/lua53/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1531618645 -SHA256 (lua-5.3.5.tar.gz) = 0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac -SIZE (lua-5.3.5.tar.gz) = 303543 +TIMESTAMP = 1601041108 +SHA256 (lua-5.3.6.tar.gz) = fc5fd69bb8736323f026672b1b7235da613d7177e72558893a0bdcd320466d60 +SIZE (lua-5.3.6.tar.gz) = 303770