openbsd-ports/lang/lua/lua.port.mk

31 lines
695 B
Makefile
Raw Normal View History

# $OpenBSD: lua.port.mk,v 1.9 2012/05/15 12:25:17 jasper Exp $
CATEGORIES+= lang/lua
# Major.Minor of current lua version provided by lang/lua
MODLUA_VERSION= 5.1
# Where the docs will be installed
MODLUA_DOCDIR= ${PREFIX}/share/doc/${FULLPKGNAME}/
# Where the lua libraries will be installed to
2010-06-15 18:05:24 -04:00
MODLUA_LIBDIR= ${PREFIX}/lib/lua/${MODLUA_VERSION}/
# Where the lua modules will be installed to
2010-06-15 18:05:24 -04:00
MODLUA_DATADIR= ${PREFIX}/share/lua/${MODLUA_VERSION}/
MODLUA_RUNDEP?= Yes
.if ${MODLUA_RUNDEP:L} == yes
2010-11-17 03:05:12 -05:00
RUN_DEPENDS+= lang/lua
.endif
.if ${NO_BUILD:L} == "no"
2010-11-17 03:05:12 -05:00
BUILD_DEPENDS+= lang/lua
.endif
.if !defined(SHARED_ONLY) || ${SHARED_ONLY:L} == "no"
PKG_ARCH=*
.endif
SUBST_VARS+= MODLUA_VERSION