openbsd-ports/www/sogo/Makefile
sebastia 514d1890c1 gnustep-base made the -[NSString stringByDeletingLastPathComponent] more compatible with MAC OS X, which now breaks SOGo creation of new users since it relied on a side effect from the incompatibility.
Pointed out and patch from Andreas Vögele, many thanks.
While there, remove hard dependency to www/sope having the same version as sogo

sure landry@, OK jasper@
2011-06-07 11:29:55 +00:00

62 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2011/06/07 11:29:55 sebastia Exp $
COMMENT = web based groupware server
VERSION = 1.3.7
DISTNAME = SOGo-${VERSION}a
PKGNAME = sogo-${VERSION}.0
REVISION = 1
SHLIB_VERSION = 1.0
.for _lib in GDLContentStore NGCards OGoContentStore \
SOGo SOGoUI
SHARED_LIBS += ${_lib} ${SHLIB_VERSION}
.endfor
CATEGORIES = www
HOMEPAGE = http://www.sogo.nu/
MASTER_SITES = ${HOMEPAGE}/files/downloads/SOGo/Sources/
MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
# LGPLv2/GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = x11/gnustep
MODGNUSTEP_NEEDS_GUI = No
WANTLIB += c m pthread crypto memcached WOExtensions SBJson
WANTLIB += DOM EOControl GDLAccess NGExtensions NGLdap XmlRpc
WANTLIB += NGMime NGObjWeb NGStreams SaxObjC WEExtensions
WANTLIB += objc gnustep-base
LIB_DEPENDS += devel/libmemcached \
www/sope
RUN_DEPENDS += sope-postgres-*|sope-mysql-*:www/sope,-postgres \
archivers/zip
CONFIGURE_STYLE = simple dest
CONFIGURE_ARGS += --gsmake=`gnustep-config --variable=GNUSTEP_MAKEFILES`
MAKE_FLAGS += libGDLContentStore_INTERFACE_VERSION=${SHLIB_VERSION} \
libNGCards_INTERFACE_VERSION=${SHLIB_VERSION} \
libOGoContentStore_INTERFACE_VERSION=${SHLIB_VERSION} \
libSOGoUI_INTERFACE_VERSION=${SHLIB_VERSION} \
SOGo_INTERFACE_VERSION=${SHLIB_VERSION}
pre-configure:
.for f in SOGo_Installation_Guide SOGo_Mobile_Devices_Configuration \
SOGo_Mozilla_Thunderbird_Configuration
cd ${WRKSRC}/Documentation; mv "${f:S/_/ /g}.odt" "$f.odt"
.endfor
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sogo
${INSTALL_DATA} ${WRKSRC}/Documentation/* ${PREFIX}/share/doc/sogo
${INSTALL_SCRIPT} -c -o ${SHAREOWN} -g ${SHAREGRP} \
${WRKSRC}/Scripts/cas-proxy-validate.py \
${PREFIX}/share/doc/sogo/cas-proxy-validate.py
.include <bsd.port.mk>