aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-09-12 11:01:44 +0800
committermarino <marino@FreeBSD.org>2016-09-12 11:01:44 +0800
commit169c265c27918249fe0254046e9d85669e091fa0 (patch)
treec5f5ed4f93d1acbd4e98c0d3c40530cbbccaffd2 /net-im
parenta4c0f696e269f846b5b0c2ec8ff7c91e21604100 (diff)
downloadfreebsd-ports-gnome-169c265c27918249fe0254046e9d85669e091fa0.tar.gz
freebsd-ports-gnome-169c265c27918249fe0254046e9d85669e091fa0.tar.zst
freebsd-ports-gnome-169c265c27918249fe0254046e9d85669e091fa0.zip
net-im/prosody: Document SSL requirement and rework port makefile
This makefile had both <pre> and <options> but only the <options> include was necesssary so the <pre> and <post> includes were remoed. Most of the variables conventionally introduced before the <options> include were wrapped and moved up to ensure they were defined when needed. Finally SSL flags were added to support non-base SSL linkage. Approved by: SSL blanket + general blankets
Diffstat (limited to 'net-im')
-rw-r--r--net-im/prosody/Makefile36
1 files changed, 21 insertions, 15 deletions
diff --git a/net-im/prosody/Makefile b/net-im/prosody/Makefile
index 472fac05d545..2be6b68630b8 100644
--- a/net-im/prosody/Makefile
+++ b/net-im/prosody/Makefile
@@ -20,37 +20,43 @@ RUN_DEPENDS= ${LUA_MODLIBDIR}/socket/core.so:net/luasocket \
LIB_DEPENDS= libidn.so:dns/libidn
+USES= 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}"
+CONFIGURE_ENV= LOCALBASE="${LOCALBASE}" \
+ PREFIX="${PREFIX}" \
+ LUA_SUFFIX="-${LUA_VER}" \
+ LUA_LIBDIR="${LUA_LIBDIR}" \
+ LUA_INCDIR="${LUA_INCDIR}"
+
USERS= prosody
GROUPS= ${USERS}
USE_RC_SUBR= prosody
+SUB_FILES= pkg-deinstall
+SUB_LIST= USERS=${USERS} GROUPS=${GROUPS}
+PLIST_SUB= PROSODY_USER=${USERS} PROSODY_GROUP=${GROUPS}
OPTIONS_DEFINE= LUAJIT
-LUAJIT_DESC= Run prosody using luajit
+LUAJIT_DESC= Run prosody using luajit
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit
.include <bsd.port.options.mk>
-USES= cpe gmake lua:51 shebangfix
-SHEBANG_FILES= prosody prosodyctl
.if ${PORT_OPTIONS:MLUAJIT}
lua_CMD= ${LOCALBASE}/bin/luajit
.else
lua_CMD= ${LOCALBASE}/bin/${LUA_CMD}
.endif
-LUA_PREMK= yes
-
-.include <bsd.port.pre.mk>
-
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS+= --ostype=freebsd --c-compiler="${CC}" --linker="${CC}" --with-lua-include="${LUA_INCDIR}"
-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}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/prosody/util/*.so
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>