openbsd-ports/net/prosody/Makefile
2012-05-15 18:28:36 +00:00

55 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.18 2012/05/15 18:28:36 jasper Exp $
SHARED_ONLY= Yes
COMMENT= communications server for Jabber/XMPP written in Lua
DISTNAME= prosody-0.8.2
CATEGORIES= net
MASTER_SITES= http://prosody.im/downloads/source/
REVISION= 2
HOMEPAGE= http://prosody.im/
MAINTAINER= Wiktor Izdebski <vicviq@gmail.com>
# MIT
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
USE_GMAKE= Yes
USE_GROFF = Yes
MODULES= lang/lua
LIB_DEPENDS= devel/libidn \
${MODLUA_LIB_DEPENDS}
RUN_DEPENDS+= archivers/luazlib \
devel/luaevent \
devel/luafs \
security/luasec \
textproc/luaexpat
WANTLIB+= crypto idn ${MODLUA_WANTLIB}
CONFIGURE_STYLE=simple
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
--sysconfdir="${SYSCONFDIR}/prosody" \
--datadir="/var/prosody" \
--with-lua="${LOCALBASE}" \
--c-compiler="${CC}" \
--linker="${CC}" \
--ldflags="-I/usr/include -I${LOCALBASE}/include -L/usr/lib -L${LOCALBASE}/lib -shared" \
--cflags="${CFLAGS} -fPIC"
FAKE_FLAGS+= CONFIG=${DESTDIR}${PREFIX}/share/examples/prosody
pre-configure:
${SUBST_CMD} ${WRKSRC}/prosody ${WRKSRC}/prosodyctl
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/prosody
${INSTALL_DATA} ${WRKSRC}/README \
${PREFIX}/share/doc/prosody
touch ${PREFIX}/share/examples/prosody/prosody.log
.include <bsd.port.mk>