2012-05-15 15:24:21 -04:00
|
|
|
# $OpenBSD: lua.port.mk,v 1.13 2012/05/15 19:24:21 jasper Exp $
|
2008-06-11 01:00:01 -04:00
|
|
|
|
|
|
|
CATEGORIES+= lang/lua
|
|
|
|
|
2010-06-15 17:17:46 -04:00
|
|
|
# Major.Minor of current lua version provided by lang/lua
|
2010-06-15 17:20:39 -04:00
|
|
|
MODLUA_VERSION= 5.1
|
2010-06-15 17:17:46 -04:00
|
|
|
|
2012-05-15 14:03:18 -04:00
|
|
|
MODLUA_WANTLIB= lua
|
|
|
|
|
|
|
|
MODLUA_RUN_DEPENDS= lang/lua
|
|
|
|
MODLUA_LIB_DEPENDS= ${MODLUA_RUN_DEPENDS}
|
|
|
|
_MODLUA_BUILD_DEPENDS= ${MODLUA_RUN_DEPENDS}
|
|
|
|
|
2012-05-15 11:11:06 -04:00
|
|
|
# Where the example will be installed
|
|
|
|
MODLUA_EXAMPLEDIR= ${PREFIX}/share/examples/${FULLPKGNAME}/
|
|
|
|
|
2012-05-15 08:25:17 -04:00
|
|
|
# Where the docs will be installed
|
|
|
|
MODLUA_DOCDIR= ${PREFIX}/share/doc/${FULLPKGNAME}/
|
|
|
|
|
2010-06-15 17:17:46 -04:00
|
|
|
# Where the lua libraries will be installed to
|
2010-06-15 18:05:24 -04:00
|
|
|
MODLUA_LIBDIR= ${PREFIX}/lib/lua/${MODLUA_VERSION}/
|
2010-06-15 17:17:46 -04:00
|
|
|
|
|
|
|
# Where the lua modules will be installed to
|
2010-06-15 18:05:24 -04:00
|
|
|
MODLUA_DATADIR= ${PREFIX}/share/lua/${MODLUA_VERSION}/
|
2010-06-15 17:17:46 -04:00
|
|
|
|
2012-05-15 15:24:21 -04:00
|
|
|
MODLUA_RUNDEP?= Yes
|
|
|
|
MODLUA_BUILDDEP?= Yes
|
2012-05-15 14:14:44 -04:00
|
|
|
|
2012-05-15 15:24:21 -04:00
|
|
|
.if ${MODLUA_RUNDEP:L} == yes
|
2012-05-15 14:03:18 -04:00
|
|
|
RUN_DEPENDS+= ${MODLUA_RUN_DEPENDS}
|
2011-11-17 18:48:13 -05:00
|
|
|
.endif
|
2008-06-11 01:00:01 -04:00
|
|
|
|
2012-05-15 15:24:21 -04:00
|
|
|
.if ${NO_BUILD:L} == "no" && ${MODLUA_BUILDDEP:L} == "yes"
|
2012-05-15 14:03:18 -04:00
|
|
|
BUILD_DEPENDS+= ${_MODLUA_BUILD_DEPENDS}
|
2008-06-11 01:00:01 -04:00
|
|
|
.endif
|
2010-09-09 13:32:36 -04:00
|
|
|
|
|
|
|
.if !defined(SHARED_ONLY) || ${SHARED_ONLY:L} == "no"
|
|
|
|
PKG_ARCH=*
|
|
|
|
.endif
|
2012-05-11 16:48:38 -04:00
|
|
|
|
|
|
|
SUBST_VARS+= MODLUA_VERSION
|