# Created by: Max Khon # $FreeBSD: head/databases/virtuoso/Makefile 413746 2016-04-21 16:43:14Z swills $ PORTNAME= virtuoso PORTVERSION= 7.1.0 PORTREVISION= 5 CATEGORIES= databases MASTER_SITES= SF DISTNAME= ${PORTNAME}-opensource-${PORTVERSION} MAINTAINER= fjoe@FreeBSD.org COMMENT= Universal SQL/Application Server LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_powerpc64= Does not build BUILD_DEPENDS= gawk:lang/gawk\ htmldoc:textproc/htmldoc\ flex>2.5.4:textproc/flex\ gperf>=3.0.3:devel/gperf\ unzip:archivers/unzip LIB_DEPENDS= libxml2.so:textproc/libxml2 USES= gmake libtool readline uidfix USE_AUTOTOOLS= autoheader aclocal USE_OPENSSL= yes NOT_FOR_ARCHS= arm armv6 i386 mips powerpc NOT_FOR_ARCHS_REASON= can only be built on 64bit platforms GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-readline\ --without-internal-zlib\ --without-jdk2\ --without-jdk3\ --without-jdk4\ --disable-hslookup\ --disable-wbxml2\ --with-layout=freebsd\ --datadir="${PREFIX}"\ --localstatedir="${PREFIX}" CPPFLAGS+= -std=gnu89 ${IODBC_CPPFLAGS} -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib MAKE_ENV= PATH=${LOCALBASE}/bin:${PATH}\ ISQL=isql-vt USE_RC_SUBR= virtuoso USERS= virtuoso GROUPS= virtuoso SUB_FILES= pkg-message CHECK_PORT= nc -z localhost $$\1 2>\&1 OPTIONS_DEFINE= IMAGEMAGICK KERBEROS LDAP IODBC post-patch: ${REINPLACE_CMD} -e 's,-lruby,-lruby${RUBY_VER:S,.,,},g'\ ${WRKSRC}/configure ${FIND} ${WRKSRC} -name '*.sh' | ${XARGS} ${GREP} -l 'netstat -an.*grep LISTEN' |\ ${XARGS} ${REINPLACE_CMD}\ -e 's,expr \$$,expr -- $$,'\ -e 's,netstat -an.*grep.*$$\([a-zA-Z0-9]*\).*grep LISTEN,${CHECK_PORT},' check: ${SETENV} -u HOST ${MAKE_ENV} ${MAKE} -C ${WRKSRC} check .include .if ${PORT_OPTIONS:MIMAGEMAGICK} CONFIGURE_ARGS+=--enable-imagemagick=${LOCALBASE} LIB_DEPENDS+= libMagickWand-6.so:graphics/ImageMagick PLIST_SUB+= WITH_IMAGEMAGICK="" .else CONFIGURE_ARGS+=--disable-imagemagick PLIST_SUB+= WITH_IMAGEMAGICK="@comment " .endif .if ${PORT_OPTIONS:MIODBC} CONFIGURE_ARGS+=--with-iodbc=${LOCALBASE} LIB_DEPENDS+= libiodbc.so:databases/libiodbc IODBC_CPPFLAGS= -I${LOCALBASE}/include/libiodbc PLIST_SUB+= WITH_IODBC="" .else IODBC_CPPFLAGS= -I../../libsrc/odbcsdk/include PLIST_SUB+= WITH_IODBC="@comment " .endif .if ${PORT_OPTIONS:MKERBEROS} CONFIGURE_ARGS+=--enable-krb=${LOCALBASE} LIB_DEPENDS+= libkrb5.so:security/krb5 .else CONFIGURE_ARGS+=--disable-krb .endif .if ${PORT_OPTIONS:MLDAP} CONFIGURE_ARGS+=--enable-openldap=${LOCALBASE} USE_OPENLDAP= yes .else CONFIGURE_ARGS+=--disable-openldap .endif post-install: ${FIND} ${STAGEDIR} -name "*.ini" -exec ${MV} {} {}.sample \; -print ${RMDIR} ${STAGEDIR}${PREFIX}/virtuoso/doc/html .if ! ${PORT_OPTIONS:MIMAGEMAGICK} ${RMDIR} ${STAGEDIR}${PREFIX}/lib/virtuoso/hosting .endif .include