1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/net-im/prosody/Makefile
2014-06-04 22:56:34 +00:00

53 lines
1.4 KiB
Makefile

# Created by: Andrew Lewis <freeghb@gmail.com>
# $FreeBSD$
PORTNAME= prosody
PORTVERSION= 0.9.4
CATEGORIES= net-im
MASTER_SITES= http://prosody.im/downloads/source/ \
http://redundancy.redundancy.org/mirror/
MAINTAINER= lx@FreeBSD.org
COMMENT= A simple extensible XMPP server written in Lua
LICENSE= MIT
RUN_DEPENDS= ${LUA_MODLIBDIR}/socket/core.so:${PORTSDIR}/net/luasocket \
${LUA_MODLIBDIR}/ssl.so:${PORTSDIR}/security/luasec \
${LUA_MODLIBDIR}/lxp.so:${PORTSDIR}/textproc/luaexpat \
${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem \
LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn
USERS= prosody
GROUPS= ${USERS}
USE_RC_SUBR= prosody
MANCOMPRESSED= no
OPTIONS_DEFINE= LUAJIT
LUAJIT_DESC= Run prosody using luajit
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:${PORTSDIR}/lang/luajit
.include <bsd.port.options.mk>
USES= gmake lua:51
LUA_PREMK= yes
.include <bsd.port.pre.mk>
HAS_CONFIGURE= yes
.if ${PORT_OPTIONS:MLUAJIT}
CONFIGURE_ARGS+= --runwith=`which luajit`
.else
CONFIGURE_ARGS+= --runwith=`which ${LUA_CMD}`
.endif
CONFIGURE_ARGS+= --ostype=freebsd --c-compiler="${CC}" --linker="${LD}"
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}" PREFIX="${PREFIX}" LUA_SUFFIX="-${LUA_VER}" LUA_LIBDIR="${LUA_LIBDIR}" LUA_INCDIR="${LUA_INCDIR}"
SUB_FILES= pkg-deinstall
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS}
PLIST_SUB= PROSODY_USER=${USERS} PROSODY_GROUP=${GROUPS}
.include <bsd.port.post.mk>