cee58358c9
OK landry@
76 lines
2.2 KiB
Makefile
76 lines
2.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.4 2010/10/26 12:43:41 sebastia Exp $
|
|
|
|
COMMENT-main= Skyrix Object Publishing Environment
|
|
COMMENT-mysql= SOPE MySQL adaptor
|
|
COMMENT-postgres= SOPE PostgreSQL adaptor
|
|
|
|
VERSION= 1.3.3
|
|
DISTNAME= SOPE-${VERSION}
|
|
PKGNAME-main= sope-${VERSION}
|
|
PKGNAME-mysql= sope-mysql-${VERSION}
|
|
PKGNAME-postgres= sope-postgres-${VERSION}
|
|
|
|
SO_MAJOR= 0
|
|
SO_MINOR= 0
|
|
.for _lib in DOM EOControl GDLAccess NGExtensions NGLdap NGMime \
|
|
NGObjWeb NGStreams NGXmlRpc SaxObjC SoOFS WEExtensions \
|
|
WEPrototype WOExtensions WOXML XmlRpc
|
|
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
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MULTI_PACKAGES= -main -mysql -postgres
|
|
|
|
MODULES= converters/libiconv x11/gnustep apache-module
|
|
MODGNUSTEP_NEEDS_GUI= No
|
|
|
|
WANTLIB += m
|
|
WANTLIB-main += ${WANTLIB} c pthread crypto ssl z lber ldap xml2
|
|
|
|
WANTLIB-mysql += ${WANTLIB} GDLAccess EOControl mysqlclient crypto ssl z
|
|
WANTLIB-postgres += ${WANTLIB} GDLAccess EOControl pq
|
|
|
|
LIB_DEPENDS-main= ::x11/gnustep/base \
|
|
::databases/openldap \
|
|
${MODLIBICONV_LIB_DEPENDS}
|
|
LIB_DEPENDS-mysql= ::${BASE_PKGPATH} \
|
|
::databases/mysql
|
|
LIB_DEPENDS-postgres= ::${BASE_PKGPATH} \
|
|
::databases/postgresql
|
|
|
|
MODAPACHE_NAME= ngobjweb
|
|
MODAPACHE_FILE= ${MODAPACHE_LOCATION}/sope-appserver/mod_ngobjweb/${MODAPACHE_MODULE}
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME}
|
|
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"
|
|
MAKE_FLAGS+= MAJOR_VERSION=${SO_MAJOR} MINOR_VERSION=${SO_MINOR}
|
|
MAKE_FLAGS+= SOPE_MAJOR_VERSION=4 SOPE_MINOR_VERSION=9
|
|
CONFIGURE_ENV+= ${MAKE_ENV}
|
|
NO_REGRESS= Yes
|
|
|
|
post-extract:
|
|
# those fhs.make files are not needed and may cause harm if they exist
|
|
@find ${WRKSRC} -name fhs.make -exec rm {} \;
|
|
|
|
post-build:
|
|
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
|
|
|
post-install:
|
|
${MODAPACHE_INSTALL}
|
|
|
|
.include <bsd.port.mk>
|