70 lines
2.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.33 2013/06/12 20:36:34 brad Exp $
COMMENT-main= Skyrix Object Publishing Environment
COMMENT-mysql= SOPE MySQL adaptor
COMMENT-postgres= SOPE PostgreSQL adaptor
2013-04-25 16:41:50 +00:00
VERSION = 2.0.5
DISTNAME = SOPE-${VERSION}a
PKGNAME-main = sope-${VERSION}.0
PKGNAME-mysql = sope-mysql-${VERSION}.0
PKGNAME-postgres = sope-postgres-${VERSION}.0
2011-07-07 00:44:18 +00:00
REVISION-mysql = 1
SO_MAJOR= 2
SO_MINOR= 0
.for _lib in DOM EOControl GDLAccess NGExtensions NGLdap NGMime \
2011-11-18 11:12:44 +00:00
NGObjWeb NGStreams SaxObjC WEExtensions \
WOExtensions XmlRpc SBJson
SHARED_LIBS+= ${_lib} ${SO_MAJOR}.${SO_MINOR}
.endfor
CATEGORIES= www
HOMEPAGE= http://www.sogo.nu
MASTER_SITES= ${HOMEPAGE}/files/downloads/SOGo/Sources/
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
# LGPLv2 or later
PERMIT_PACKAGE_CDROM= Yes
MULTI_PACKAGES= -main -mysql -postgres
MODULES= converters/libiconv x11/gnustep
MODGNUSTEP_NEEDS_GUI= No
WANTLIB-main = gnustep-base m objc2 c pthread crypto ssl z lber ldap xml2 \
2011-07-07 00:44:18 +00:00
${MODLIBICONV_WANTLIB}
WANTLIB-mysql = gnustep-base m objc2 pthread GDLAccess \
2010-11-06 10:18:38 +00:00
mysqlclient crypto ssl z
WANTLIB-postgres = gnustep-base m objc2 pthread GDLAccess EOControl pq
2010-11-22 08:36:47 +00:00
LIB_DEPENDS-main= x11/gnustep/base \
databases/openldap \
x11/gnustep/libobjc2 \
${MODLIBICONV_LIB_DEPENDS}
2013-04-25 16:41:50 +00:00
LIB_DEPENDS-mysql = ${BASE_PKGPATH}=${VERSION}.0 \
databases/mysql,-main
2013-04-25 16:41:50 +00:00
LIB_DEPENDS-postgres = ${BASE_PKGPATH}=${VERSION}.0 \
databases/postgresql,-main
2012-03-31 16:55:57 +00:00
CONFIGURE_STYLE=simple dest
CONFIGURE_ARGS+=--prefix=${PREFIX} \
--gsmake=`gnustep-config --variable=GNUSTEP_MAKEFILES`
MAKE_ENV+= OBJC_INCLUDE_PATH="${LOCALBASE}/include/postgresql;${LOCALBASE}/include" \
LIBRARY_PATH="${LOCALBASE}/lib/postgresql;${LOCALBASE}/lib" \
SBJson_INTERFACE_VERSION=${LIBSBJson_VERSION}
MAKE_FLAGS+= MAJOR_VERSION=${SO_MAJOR} MINOR_VERSION=${SO_MINOR}
MAKE_FLAGS+= SOPE_MAJOR_VERSION=4 SOPE_MINOR_VERSION=9
CONFIGURE_ENV+= ${MAKE_ENV}
2013-03-11 11:35:43 +00:00
NO_TEST= Yes
WRKDIST = ${WRKDIR}/SOPE
post-extract:
# those fhs.make files are not needed and may cause harm if they exist
@find ${WRKSRC} -name fhs.make -exec rm {} \;
.include <bsd.port.mk>