openbsd-ports/net/spectrum/Makefile
jasper eeb29b3347 don't use ``rm -f'' for remove unneeded files.
this will remember us, when not needed anymore this treatment.

from gleydson soares
ok aja@
2011-04-14 15:55:19 +00:00

56 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2011/04/14 15:55:19 jasper Exp $
COMMENT= XMPP transport/gateway
DISTNAME= spectrum-1.4.6
CATEGORIES= net
REVISION= 1
HOMEPAGE= http://spectrum.im/
MASTER_SITES= ${HOMEPAGE}/attachments/download/34/
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
WANTLIB += c m pthread stdc++ gloox purple glib-2.0 gthread-2.0 event
WANTLIB += PocoData PocoFoundation PocoMySQL PocoODBC PocoSQLite
LIB_DEPENDS= net/py-xmpppy \
net/gloox \
net/pidgin,-libpurple \
net/poco
RUN_DEPENDS = net/py-xmpppy
SPVARDIR= /var/spectrum
# not using CONFIGURE_STYLE=cmake from cmake module, rolling own in
# pre-build. Otherwise make configure will work, but afterwards make
# will fail with python2.6 unable to find ./setup.py
CONFIGURE_STYLE=none
USE_GROFF = Yes
NO_REGRESS= Yes
SUBST_VARS= SPVARDIR
pre-configure:
${SUBST_CMD} ${WRKSRC}/spectrumctl/spectrumctl.py \
${WRKSRC}/spectrumctl/spectrum/env.py ${WRKSRC}/spectrum.cfg \
${WRKSRC}/spectrumctl/spectrum/spectrum.py
post-configure:
cd ${WRKSRC} && ${LOCALBASE}/bin/cmake .
post-install:
${INSTALL_DATA} ${WRKDIST}/schemas/mysql_schema.sql \
${PREFIX}/share/examples/spectrum
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
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
${PREFIX}/lib/python${MODPY_VERSION}/site-packages/spectrum
.include <bsd.port.mk>