head 1.7; access; symbols pkgsrc-2023Q4:1.7.0.14 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.12 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.10 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.8 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.6 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.4 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.2 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.6.0.14 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.12 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.10 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.8 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.6 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.4 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.2 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.5.0.4 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.2 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.3.0.28 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.24 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.22 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.20 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.18 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.16 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.14 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.12 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.10 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.8 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.4 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.2 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.2.0.10 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.8 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.6 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.4 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.2 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.1.1.1.0.6 pkgsrc-2015Q3-base:1.1.1.1 pkgsrc-2015Q2:1.1.1.1.0.4 pkgsrc-2015Q2-base:1.1.1.1 pkgsrc-2015Q1:1.1.1.1.0.2 pkgsrc-2015Q1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.7 date 2022.05.12.12.32.49; author gdt; state Exp; branches; next 1.6; commitid znTutLBqWK83sLDD; 1.6 date 2020.07.02.10.15.20; author nia; state Exp; branches; next 1.5; commitid 38EDJ2IzZLQ0wueC; 1.5 date 2020.01.26.17.31.29; author rillig; state Exp; branches; next 1.4; commitid 4fBBvoSLJaGd0eUB; 1.4 date 2020.01.16.23.51.29; author nia; state Exp; branches; next 1.3; commitid MTkhHHmpjl4HqYSB; 1.3 date 2017.01.19.18.52.14; author agc; state Exp; branches; next 1.2; commitid ufZDMu4cgHZdRBCz; 1.2 date 2015.12.05.22.50.26; author alnsn; state Exp; branches; next 1.1; commitid d6u4Qk7HpnSLnOLy; 1.1 date 2015.01.17.17.50.23; author alnsn; state Exp; branches 1.1.1.1; next ; commitid uB5VheP4zFAQ5p6y; 1.1.1.1 date 2015.01.17.17.50.23; author alnsn; state Exp; branches; next ; commitid uB5VheP4zFAQ5p6y; desc @@ 1.7 log @lang/lua53: Explain why theere is no builtin.mk @ text @# $NetBSD: Makefile,v 1.6 2020/07/02 10:15:20 nia Exp $ DISTNAME= lua-${LUA_VERSION} PKGNAME= lua53-${LUA_VERSION} CATEGORIES= lang lua MASTER_SITES= https://www.lua.org/ftp/ MASTER_SITES+= http://www.tecgraf.puc-rio.br/lua/ftp/ MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://www.lua.org/ COMMENT= Lightweight, embeddable scripting language (v5.3) LICENSE= mit # Note that there is no builtin.mk for lua on purpose, roughly because # installing extension modules from pkgsrc would not work well with # base system lua. .include "../../lang/lua53/version.mk" CONFLICTS+= lua-[0-9]* .include "../../mk/bsd.prefs.mk" USE_LANGUAGES= c99 USE_LIBTOOL= yes USE_TOOLS+= gmake MAKE_FLAGS+= DLLIB=${BUILDLINK_LDADD.dl:Q} MAKE_FLAGS+= INSTALL_EXEC=${INSTALL_PROGRAM:Q} MAKE_FLAGS+= INSTALL_DATA=${INSTALL_DATA:Q} CFLAGS+= -DLUA_ROOT=\"${PREFIX}/\" # Address pkg/47587 lua not linked to pthread causes issues with modules PTHREAD_OPTS+= native .include "../../mk/pthread.buildlink3.mk" .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native" CFLAGS+= -pthread LDFLAGS+= -pthread .endif PKGCONFIG_OVERRIDE= ${WRKSRC}/lua.pc INSTALLATION_DIRS+= lib/pkgconfig share/doc/lua-5.3 .if ${OPSYS} == "FreeBSD" BUILD_TARGET= freebsd .elif !empty(OPSYS:M*BSD*) || ${OPSYS} == "DragonFly" BUILD_TARGET= bsd .elif ${OPSYS} == "Linux" BUILD_TARGET= linux .elif ${OPSYS} == "Darwin" BUILD_TARGET= macosx .elif ${OPSYS} == "SunOS" BUILD_TARGET= solaris .elif ${OPSYS} == "AIX" BUILD_TARGET= aix .else BUILD_TARGET= generic .endif DOCDIR= ${PREFIX}/share/doc/lua-5.3 pre-configure: sed -e 's,@@PREFIX@@,${PREFIX},g' \ -e 's,@@VER@@,${PKGVERSION_NOREV:R},g' \ -e 's,@@REV@@,${PKGVERSION_NOREV},g' \ ${FILESDIR}/lua.pc.in > ${WRKSRC}/lua.pc cp ${WRKSRC}/doc/lua.1 ${WRKSRC}/doc/lua5.3.1 cp ${WRKSRC}/doc/luac.1 ${WRKSRC}/doc/luac5.3.1 post-install: ${INSTALL_DATA} ${WRKSRC}/doc/*.[a-z][a-z][a-z] \ ${WRKSRC}/doc/*.html ${DESTDIR}${DOCDIR} ${INSTALL_DATA} ${WRKSRC}/lua.pc \ ${DESTDIR}${PREFIX}/lib/pkgconfig/lua-5.3.pc .include "../../mk/readline.buildlink3.mk" .include "../../mk/dlopen.buildlink3.mk" .include "../../mk/bsd.pkg.mk" @ 1.6 log @Update metadata for Lua interpreters @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2020/01/26 17:31:29 rillig Exp $ d14 4 @ 1.5 log @all: migrate homepages from http to https pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2020/01/16 23:51:29 nia Exp $ d5 2 a6 2 CATEGORIES= lang MASTER_SITES= http://www.lua.org/ftp/ d11 1 a11 1 COMMENT= Powerful light-weight language for extending applications @ 1.4 log @lua53: Override INSTALL_DATA with MAKE_FLAGS. PR pkg/54850 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2017/01/19 18:52:14 agc Exp $ d10 1 a10 1 HOMEPAGE= http://www.lua.org/ @ 1.3 log @Convert all occurrences (353 by my count) of MASTER_SITES= site1 \ site2 style continuation lines to be simple repeated MASTER_SITES+= site1 MASTER_SITES+= site2 lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint accordingly. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2015/12/05 22:50:26 alnsn Exp $ d23 3 a25 2 MAKE_ENV+= DLLIB=${BUILDLINK_LDADD.dl:Q} MAKE_ENV+= INSTALL_DATA=${INSTALL_DATA:Q} @ 1.2 log @Update Lua to version 5.3.2 and link with pthreads to fix pkg/47587. Lua 5.3.2 fixes all bugs listed in http://www.lua.org/bugs.html#5.3.1 [1] Lua 5.3.2 also contains several internal improvements and includes a revised reference manual: http://www.lua.org/manual/5.3/ [1] 1. io.lines does not check maximum number of options. reported by Patrick Donnell on 10 Jul 2015. existed since 3.0. Example: -- can crash in some machines t ={}; for i = 1, 253 do t[i] = 1 end io.lines("someexistingfile", table.unpack(t))() @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2015/01/17 17:50:23 alnsn Exp $ d6 2 a7 2 MASTER_SITES= http://www.lua.org/ftp/ \ http://www.tecgraf.puc-rio.br/lua/ftp/ @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD$ d27 10 @ 1.1.1.1 log @Initial import of Lua 5.3.0. Lua is a powerful, light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language. Lua combines simple procedural syntax (similar to Pascal) with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, interpreted from bytecodes, and has automatic memory management, making it ideal for configuration, scripting, and rapid prototyping. Lua is a language engine that you can embed into your application. This means that, besides syntax and semantics, Lua has an API that allows the application to exchange data with Lua programs and also to extend Lua with C functions. In this sense, Lua can be regarded as a language framework for building domain-specific languages. Lua is implemented as a small library of C functions, written in ANSI C, and compiles unmodified in all known platforms. The implementation goals are simplicity, efficiency, portability, and low embedding cost. The result is a fast language engine with small footprint, making it ideal in embedded systems too. @ text @@