Changeset View
Changeset View
Standalone View
Standalone View
lua54/Makefile
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# Created by: russ.haley@gmail.com | |||||
# Date: 2018-03-14 | |||||
# $FreeBSD$ | |||||
PORTNAME= lua | |||||
PORTVERSION= 5.4.0 | |||||
PORTREVISION= 1 | |||||
CATEGORIES= lang | |||||
MASTER_SITES= https://www.lua.org/work/ | |||||
DISTVERSIONSUFFIX=-work1 | |||||
PKGNAMESUFFIX= 54 | |||||
MAINTAINER= russ.haley@gmail.com | |||||
COMMENT= Small, embeddable scripting language providing easy access to C code | |||||
LICENSE= MIT | |||||
LUA_VER= 5.4 | |||||
USE_LDCONFIG= yes | |||||
# Overriding __MAKE_CONF makes sure that we don't re-parse | |||||
# /etc/make.conf during do-build, which would jeopardize the build | |||||
# if, for instance, the user set CFLAGS=mumble | |||||
# NOTE: /etc/make.conf is read BEFORE Makefile, so we already | |||||
# have its settings when we get here. | |||||
# See http://wiki.freebsd.org/MatthiasAndree/LuaLessonsLearnt | |||||
MAKE_ARGS= __MAKE_CONF=${NONEXISTENT} | |||||
BUILD_WRKSRC= ${WRKSRC}/src | |||||
LUA_CMD = ${PORTNAME}${PKGNAMESUFFIX} | |||||
LUAC_CMD = ${PORTNAME}c${PKGNAMESUFFIX} | |||||
LUA_LIB_STATIC=liblua-${LUA_VER}.a | |||||
LUA_LIB_SHARED=liblua-${LUA_VER}.so | |||||
LUA_PC_FILE=${PORTNAME}-${LUA_VER}.pc | |||||
ALL_TARGET=freebsd | |||||
#LUA_NILINTABLE=-DLUA_NILINTABLE | |||||
andrew_tao173.riddles.org.uk: I've been testing this:
```OPTIONS_SINGLE= EDIT
OPTIONS_SINGLE_EDIT=EDITNONE LIBEDIT READLINE… | |||||
MAKE_ARGS+= CC="${CC}" \ | |||||
Done Inline Actionsthis should be MYLIBS, not MYLDFLAGS if you're going to do it this way andrew_tao173.riddles.org.uk: this should be MYLIBS, not MYLDFLAGS if you're going to do it this way | |||||
MYCFLAGS="${LUA_NILINTABLE} -fPIC -I/usr/include/edit"\ | |||||
MYLIBS=-ledit \ | |||||
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}${PREFIX}/include/${PORTNAME}${PKGNAMESUFFIX} \ | |||||
INSTALL_EXEC="${INSTALL_PROGRAM}" | |||||
SUB_FILES= ${LUA_PC_FILE} | |||||
SUB_LIST= version=${PORTVERSION} \ | |||||
includedir=${LUA_INCDIR} \ | |||||
libdir=${LUA_LIBDIR} \ | |||||
soname=${PORTNAME}-${LUA_VER} | |||||
post-install: | |||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${LUA_LIB_SHARED} | |||||
@${MV} ${STAGEDIR}${PREFIX}/man/man1/lua.1 \ | |||||
${STAGEDIR}${PREFIX}/man/man1/${LUA_CMD}.1 | |||||
@${MV} ${STAGEDIR}${PREFIX}/man/man1/luac.1 \ | |||||
${STAGEDIR}${PREFIX}/man/man1/${LUAC_CMD}.1 | |||||
${INSTALL_DATA} ${WRKDIR}/${LUA_PC_FILE} \ | |||||
${STAGEDIR}${PREFIX}/libdata/pkgconfig | |||||
.include <bsd.port.mk> |
I've been testing this:
Specific things to note: