openbsd-ports/www/sope/Makefile
sebastia f6ad963a20 Bump after the x11/gnustep module forced using ld.bfd
OK landry@ who also generally OKes the change to the gnustep module
2018-11-26 14:20:17 +00:00

74 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.74 2018/11/26 14:20:17 sebastia Exp $
COMMENT-main= Skyrix Object Publishing Environment
COMMENT-mysql= SOPE MySQL adaptor
COMMENT-postgres= SOPE PostgreSQL adaptor
VERSION = 4.0.2
REVISION = 0
DISTNAME = SOPE-${VERSION}
PKGNAME-main = sope-${VERSION}
PKGNAME-mysql = sope-mysql-${VERSION}
PKGNAME-postgres = sope-postgres-${VERSION}
SO_MAJOR= 5
SO_MINOR= 0
.for _lib in DOM EOControl GDLAccess NGExtensions NGLdap NGMime \
NGObjWeb NGStreams SaxObjC WEExtensions \
WOExtensions XmlRpc SBJson
SHARED_LIBS+= ${_lib} ${SO_MAJOR}.${SO_MINOR}
.endfor
CATEGORIES= www
HOMEPAGE= https://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= x11/gnustep
MODGNUSTEP_NEEDS_GUI= No
BUILD_DEPENDS = shells/bash
WANTLIB-main = c crypto ssl iconv lber ldap lzma xml2 z \
${COMPILER_LIBCXX} ${MODGNUSTEP_WANTLIB}
WANTLIB-mysql = GDLAccess mysqlclient crypto ssl z \
${COMPILER_LIBCXX} ${MODGNUSTEP_WANTLIB}
WANTLIB-postgres = GDLAccess EOControl pq ${COMPILER_LIBCXX} \
${MODGNUSTEP_WANTLIB}
LIB_DEPENDS-main= x11/gnustep/base \
databases/openldap \
x11/gnustep/libobjc2 \
converters/libiconv
LIB_DEPENDS-mysql = ${BASE_PKGPATH}=${VERSION} \
databases/mariadb,-main
LIB_DEPENDS-postgres = ${BASE_PKGPATH}=${VERSION} \
databases/postgresql,-main
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}
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 {} \;
post-patch:
${SUBST_CMD} ${WRKSRC}/configure
.include <bsd.port.mk>