ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
# Created by: Andrew Lewis <freeghb@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= prosody
|
|
PORTVERSION= 0.11.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= net-im
|
|
MASTER_SITES= http://prosody.im/downloads/source/ \
|
|
http://redundancy.redundancy.org/mirror/
|
|
|
|
MAINTAINER= lx@FreeBSD.org
|
|
COMMENT= Simple extensible XMPP server written in Lua
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ${LUA_MODLIBDIR}/socket/core.so:net/luasocket-51 \
|
|
${LUA_MODLIBDIR}/ssl.so:security/luasec-51 \
|
|
${LUA_MODLIBDIR}/lxp.so:textproc/luaexpat-51 \
|
|
${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem-51 \
|
|
${LUA_MODLIBDIR}/bit.so:devel/lua51-bitop
|
|
LIB_DEPENDS= libidn.so:dns/libidn
|
|
|
|
USES= compiler:c11 cpe gmake lua:51 shebangfix ssl
|
|
SHEBANG_FILES= prosody prosodyctl
|
|
LUA_PREMK= yes
|
|
HAS_CONFIGURE= yes
|
|
CFLAGS+= -I${OPENSSLINC}
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
CONFIGURE_ARGS= --ostype=freebsd \
|
|
--c-compiler="${CC}" \
|
|
--linker="${CC}" \
|
|
--with-lua-include="${LUA_INCDIR}" \
|
|
--lua-suffix="${LUA_VER_STR}" \
|
|
--with-lua-include="${LUA_INCDIR}" \
|
|
--with-lua-lib="${LUA_LIBDIR}" \
|
|
--prefix="${PREFIX}"
|
|
|
|
MAKEFILE= GNUmakefile
|
|
USERS= prosody
|
|
GROUPS= ${USERS}
|
|
|
|
USE_RC_SUBR= prosody
|
|
SUB_FILES= pkg-deinstall
|
|
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS}
|
|
PLIST_SUB= PROSODY_USER=${USERS} \
|
|
PROSODY_USER_regex=\b${USERS}\b \
|
|
PROSODY_GROUP=${GROUPS} \
|
|
PROSODY_GROUP_regex=\b${GROUPS}\b
|
|
|
|
OPTIONS_DEFINE= LUAJIT
|
|
LUAJIT_DESC= Run prosody using luajit
|
|
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLUAJIT}
|
|
lua_CMD= ${LOCALBASE}/bin/luajit
|
|
.else
|
|
lua_CMD= ${LOCALBASE}/bin/${LUA_CMD}
|
|
.endif
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/prosody/util/*.so
|
|
|
|
.include <bsd.port.mk>
|