mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
beb1c1fe19
Ports using USES=lua:module or lua:flavors will be flavored. A range of supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ) for ports not supporting all lua versions. USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of flavored lua ports, in a similar way as PHP or Python flavors. PR: 245038 Submitted by: andrew tao11 riddles org uk Reviewed by: mat, kevans, russ haley gmail com Approved by: mat (portmgr) Differential Revision: https://reviews.freebsd.org/D16494
40 lines
989 B
Makefile
40 lines
989 B
Makefile
# Created by: Piotr Florczyk <pf@itwf.pl>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lualdap
|
|
PORTVERSION= 1.1.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://files.luaforge.net/releases/${PORTNAME}/${PORTNAME}/LuaLDAP${PORTVERSION}/
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= pf@itwf.pl
|
|
COMMENT= LDAP support for the Lua language
|
|
|
|
USES= gmake lua:-52,module
|
|
USE_OPENLDAP= yes
|
|
|
|
# the CPPFLAGS fixes builds where PREFIX != LOCALBASE
|
|
CPPFLAGS+= -I${LOCALBASE}/include/${LUA_SUBDIR}
|
|
MAKE_ARGS+= LUA_LIBDIR="${LUA_LIBDIR}" \
|
|
LUA_INC="${LUA_INCDIR}" \
|
|
OPENLDAP_LIB="-L${LOCALBASE}/lib -lldap" \
|
|
LUA_VERSION_NUM="${LUA_VER_STR}0" \
|
|
CC="${CC}"
|
|
|
|
ALL_TARGET=
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCSDIR= ${LUA_DOCSDIR}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/lualdap.so.${PORTVERSION} ${STAGEDIR}${LUA_MODLIBDIR}/${PORTNAME}.so
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/us/* ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|