2011-09-16 07:13:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2011/09/16 11:13:40 espie Exp $
|
2010-09-13 12:41:16 -04:00
|
|
|
|
|
|
|
COMMENT= XMPP transport/gateway
|
|
|
|
|
2011-05-05 04:50:05 -04:00
|
|
|
DISTNAME = spectrum-1.4.7
|
2011-09-16 07:13:37 -04:00
|
|
|
REVISION = 3
|
2010-09-13 12:41:16 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
HOMEPAGE= http://spectrum.im/
|
2011-05-05 04:50:05 -04:00
|
|
|
MASTER_SITES = ${HOMEPAGE}/attachments/download/37/
|
2010-09-13 12:41:16 -04:00
|
|
|
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
|
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MODULES= lang/python devel/cmake
|
2010-11-23 06:07:40 -05:00
|
|
|
WANTLIB += c m pthread stdc++ gloox purple glib-2.0 gthread-2.0 event
|
2011-05-05 09:59:12 -04:00
|
|
|
WANTLIB += PocoData PocoFoundation PocoMySQL PocoODBC PocoSQLite Magick++
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS= net/py-xmpppy \
|
|
|
|
net/gloox \
|
|
|
|
net/pidgin,-libpurple \
|
2011-05-05 09:59:12 -04:00
|
|
|
net/poco \
|
|
|
|
graphics/ImageMagick
|
2011-01-10 13:34:31 -05:00
|
|
|
RUN_DEPENDS = net/py-xmpppy
|
2010-09-13 12:41:16 -04:00
|
|
|
|
|
|
|
SPVARDIR= /var/spectrum
|
2011-07-12 07:01:08 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=cmake
|
|
|
|
CONFIGURE_ENV += LDFLAGS=-pthread
|
2010-10-18 14:36:45 -04:00
|
|
|
USE_GROFF = Yes
|
2010-09-13 12:41:16 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
SUBST_VARS= SPVARDIR
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/spectrumctl/spectrumctl.py \
|
2011-03-07 05:14:01 -05:00
|
|
|
${WRKSRC}/spectrumctl/spectrum/env.py ${WRKSRC}/spectrum.cfg \
|
|
|
|
${WRKSRC}/spectrumctl/spectrum/spectrum.py
|
2010-09-13 12:41:16 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/schemas/mysql_schema.sql \
|
|
|
|
${PREFIX}/share/examples/spectrum
|
2011-04-14 11:55:19 -04:00
|
|
|
rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/spectrum/env.py.*
|
|
|
|
rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/spectrum/spectrum.py.orig
|
|
|
|
rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/spectrum/spectrum.py.beforesubst
|
2010-09-13 12:41:16 -04:00
|
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
|
|
|
|
${PREFIX}/lib/python${MODPY_VERSION}/site-packages/spectrum
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|