1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/net-im/prosody/Makefile
2021-09-10 18:10:42 -07:00

56 lines
1.7 KiB
Makefile

# Created by: Andrew Lewis <freeghb@gmail.com>
PORTNAME= prosody
PORTVERSION= 0.11.10
PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= https://prosody.im/downloads/source/
MAINTAINER= thomas@beingboiled.info
COMMENT= Simple extensible XMPP server written in Lua
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${LUA_REFMODLIBDIR}/socket/core.so:net/luasocket@${LUA_FLAVOR} \
${LUA_REFMODLIBDIR}/ssl.so:security/luasec@${LUA_FLAVOR} \
${LUA_REFMODLIBDIR}/lxp.so:textproc/luaexpat@${LUA_FLAVOR} \
${LUA_REFMODLIBDIR}/lfs.so:devel/luafilesystem@${LUA_FLAVOR} \
${LUA_REFMODLIBDIR}/bit.so:devel/lua-bitop@${LUA_FLAVOR}
LIB_DEPENDS= libidn.so:dns/libidn
USES= cpe gmake lua:52 shebangfix ssl
SHEBANG_FILES= prosody prosodyctl tools/migration/prosody-migrator.lua
LUA_PREMK= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix="${PREFIX}" \
--datadir="/var/db/prosody" \
--lua-version="${LUA_VER}" \
--lua-suffix="${LUA_VER_STR}" \
--with-lua-include="${LUA_INCDIR}" \
--with-lua-lib="${LUA_LIBDIR}" \
--with-random=arc4random \
--c-compiler="${CC}" \
--cflags="${CFLAGS}" \
--add-cflags="-fPIC -I${LOCALBASE}/include -I${OPENSSLINC}" \
--linker="${CC}" \
--ldflags="${LDFLAGS}" \
--add-ldflags="-shared -L${LOCALBASE}/lib -L${OPENSSLLIB}" \
--no-example-certs
MAKEFILE= GNUmakefile
USERS= prosody
GROUPS= ${USERS}
USE_RC_SUBR= prosody
SUB_FILES= pkg-deinstall
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} LUA_PREFIX=${LUA_PREFIX} LUA_CMD=${LUA_CMD}
PLIST_SUB= PROSODY_USER=${USERS} PROSODY_GROUP=${GROUPS}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/prosody/util/*.so
@${MKDIR} ${STAGEDIR}/var/run/prosody
@${RM} ${STAGEDIR}${ETCDIR}/certs/*
.include <bsd.port.mk>