Changeset View
Changeset View
Standalone View
Standalone View
head/lang/lua53/Makefile
# Created by: GreenDog <fiziologus@gmail.com> | # Created by: GreenDog <fiziologus@gmail.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= lua | PORTNAME= lua | ||||
DISTVERSION= 5.3.5 | DISTVERSION= 5.3.5 | ||||
PORTREVISION= 3 | PORTREVISION= 3 | ||||
CATEGORIES= lang | CATEGORIES= lang | ||||
MASTER_SITES= https://www.lua.org/ftp/ | MASTER_SITES= https://www.lua.org/ftp/ | ||||
PKGNAMESUFFIX= 53 | PKGNAMESUFFIX= 53 | ||||
MAINTAINER= russ.haley@gmail.com | MAINTAINER= russ.haley@gmail.com | ||||
COMMENT= Powerful, efficient, lightweight, embeddable scripting language | COMMENT= Powerful, efficient, lightweight, embeddable scripting language | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LUA_VER= 5.3 | USES= lua:core,53 | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
# Overriding __MAKE_CONF makes sure that we don't re-parse | # Overriding __MAKE_CONF makes sure that we don't re-parse | ||||
# /etc/make.conf during do-build, which would jeopardize the build | # /etc/make.conf during do-build, which would jeopardize the build | ||||
# if, for instance, the user set CFLAGS=mumble | # if, for instance, the user set CFLAGS=mumble | ||||
# NOTE: /etc/make.conf is read BEFORE Makefile, so we already | # NOTE: /etc/make.conf is read BEFORE Makefile, so we already | ||||
# have its settings when we get here. | # have its settings when we get here. | ||||
# See http://wiki.freebsd.org/MatthiasAndree/LuaLessonsLearnt | # See http://wiki.freebsd.org/MatthiasAndree/LuaLessonsLearnt | ||||
MAKE_ARGS= __MAKE_CONF=${NONEXISTENT} | MAKE_ARGS= __MAKE_CONF=${NONEXISTENT} | ||||
BUILD_WRKSRC= ${WRKSRC}/src | BUILD_WRKSRC= ${WRKSRC}/src | ||||
# Source, destination, and filenames to copy for the DOCS option | # Source, destination, and filenames to copy for the DOCS option | ||||
# (automatically added to pkg-plist if DOCS is set) | # (automatically added to pkg-plist if DOCS is set) | ||||
# We override DOCSDIR to get a per-version subdir. | # We override DOCSDIR to get a per-version subdir. | ||||
# We put the docs for Lua proper in a lua/ subdir of the version subdir | # We put the docs for Lua proper in a lua/ subdir of the version subdir | ||||
# so that ports for Lua modules can use the version subdir too without | # so that ports for Lua modules can use the version subdir too without | ||||
# making a mess. | # making a mess. | ||||
DOCSDIR= ${PREFIX}/share/doc/lua${PKGNAMESUFFIX}/lua | DOCSDIR= ${LUA_DOCSDIR} | ||||
PORTDOCS= * | PORTDOCS= * | ||||
BUILD_WRKDOC= ${WRKSRC}/doc | BUILD_WRKDOC= ${WRKSRC}/doc | ||||
LUA_PREFIX= ${PREFIX} | |||||
# 2018-03-17: AG - These should match lua.mk, but we can't include that here | |||||
LUA_CMD= lua${PKGNAMESUFFIX} | |||||
LUAC_CMD= luac${PKGNAMESUFFIX} | |||||
LUA_INCDIR= ${LUA_PREFIX}/include/lua${PKGNAMESUFFIX} | |||||
LUA_LIBDIR= ${LUA_PREFIX}/lib | |||||
LUA_LIB_STATIC= liblua-${LUA_VER}.a | LUA_LIB_STATIC= liblua-${LUA_VER}.a | ||||
LUA_LIB_SHARED= liblua-${LUA_VER}.so | LUA_LIB_SHARED= liblua-${LUA_VER}.so | ||||
LUA_PC_FILE= lua-${LUA_VER}.pc | LUA_PC_FILE= lua-${LUA_VER}.pc | ||||
# using the "bsd" target rather than "freebsd" saves patching out the | # using the "bsd" target rather than "freebsd" saves patching out the | ||||
# assumption of using base libedit in order to make it configurable. "bsd" | # 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; | # is "generic" plus the POSIX and DLOPEN options, plus -Wl,-E at link time; | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |