2012-09-26 14:55:33 +02:00
|
|
|
# Created by: gahr
|
2011-09-14 09:38:20 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= zorba
|
2012-11-05 14:10:06 +01:00
|
|
|
PORTVERSION= 2.7.0
|
2016-11-19 19:21:20 +01:00
|
|
|
PORTREVISION= 12
|
2011-09-14 09:38:20 +02:00
|
|
|
CATEGORIES= textproc
|
2012-11-05 14:10:06 +01:00
|
|
|
MASTER_SITES= https://launchpadlibrarian.net/119058962/
|
2012-09-26 14:55:33 +02:00
|
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
2011-09-14 09:38:20 +02:00
|
|
|
|
2014-12-10 23:29:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-08-03 16:15:08 +02:00
|
|
|
COMMENT= General purpose C++ XQuery processor
|
2011-09-14 09:38:20 +02:00
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2011-09-14 09:38:20 +02:00
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
LIB_DEPENDS= libxerces-c.so:textproc/xerces-c3 \
|
|
|
|
libicudata.so:devel/icu \
|
|
|
|
libcurl.so:ftp/curl \
|
|
|
|
libtidy.so:www/tidy-lib \
|
|
|
|
libuuid.so:misc/e2fsprogs-libuuid
|
|
|
|
RUN_DEPENDS= fop:textproc/fop
|
2011-09-14 09:38:20 +02:00
|
|
|
|
2012-09-26 14:55:33 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2013-04-17 10:08:37 +02:00
|
|
|
OPTIONS_DEFINE= PHP PYTHON RUBY JAVA DOCS
|
2015-03-26 20:18:49 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
DOCS_BUILD_DEPENDS+= doxygen:devel/doxygen
|
2016-06-30 22:02:43 +02:00
|
|
|
PHP_CMAKE_BOOL= WITH_PHP5
|
|
|
|
PYTHON_CMAKE_BOOL= WITH_PYTHON
|
|
|
|
RUBY_CMAKE_BOOL= WITH_RUBY
|
|
|
|
JAVA_CMAKE_BOOL= WITH_JAVA
|
2011-09-14 09:38:20 +02:00
|
|
|
|
|
|
|
# Both install include/xqc.h
|
|
|
|
CONFLICTS= xqilla-[0-9]*
|
|
|
|
|
2012-09-26 14:55:33 +02:00
|
|
|
USE_GNOME= libxml2 libxslt
|
2011-09-14 09:38:20 +02:00
|
|
|
USE_LDCONFIG= yes
|
2014-06-27 10:07:59 +02:00
|
|
|
USE_CXXSTD= c++11
|
2015-08-25 17:07:18 +02:00
|
|
|
USES= cmake:outsource compiler:c++11-lib execinfo
|
2014-06-27 10:07:59 +02:00
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include -O1 # compiler hangs with -O2 on CURRENT
|
2012-11-05 14:10:06 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2014-06-27 10:07:59 +02:00
|
|
|
CMAKE_ARGS= -DCMAKE_REQUIRED_FLAGS:STRING="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
|
2016-09-09 21:42:46 +02:00
|
|
|
-DLOCALBASE:STRING=${LOCALBASE}
|
2012-09-26 14:55:33 +02:00
|
|
|
|
2013-04-02 12:04:49 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
|
2011-09-14 09:38:20 +02:00
|
|
|
|
2012-09-26 14:55:33 +02:00
|
|
|
PLIST_SUB+= FULLVERSION=${PORTVERSION} \
|
|
|
|
MIDVERSION=${PORTVERSION:R} \
|
|
|
|
MINVERSION=${PORTVERSION:R:R}
|
2011-09-14 09:38:20 +02:00
|
|
|
|
2015-03-26 20:18:49 +01:00
|
|
|
.if exists(/usr/lib/libexecinfo.so)
|
|
|
|
LOC_EXECINFO= /usr/lib/libexecinfo.so
|
|
|
|
.else
|
|
|
|
LOC_EXECINFO= ${LOCALBASE}/lib/libexecinfo.so
|
|
|
|
.endif
|
|
|
|
|
2011-09-14 09:38:20 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-09-26 14:55:33 +02:00
|
|
|
.if ${PORT_OPTIONS:MPHP}
|
2011-09-14 09:38:20 +02:00
|
|
|
USE_PHP= tokenizer
|
2016-06-28 16:00:45 +02:00
|
|
|
USES+= php:build
|
2011-09-14 09:38:20 +02:00
|
|
|
WITH_SWIG= yes
|
2015-03-26 20:18:49 +01:00
|
|
|
CMAKE_ARGS+= -DPHP5_INSTALL_PATH:FILEPATH="lib/php/${PHP_EXT_DIR}"
|
|
|
|
PLIST_SUB+= PHP_EXTLIBDIR="lib/php/${PHP_EXT_DIR}"
|
2011-09-14 09:38:20 +02:00
|
|
|
.endif
|
|
|
|
|
2012-09-26 14:55:33 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
2014-12-07 11:01:36 +01:00
|
|
|
USES+= python
|
2011-09-14 09:38:20 +02:00
|
|
|
WITH_SWIG= yes
|
2015-03-26 20:18:49 +01:00
|
|
|
CMAKE_ARGS+= -DPYTHON_SWIG_INSTALL_DIR:FILEPATH=${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}
|
|
|
|
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}
|
2011-09-14 09:38:20 +02:00
|
|
|
.endif
|
|
|
|
|
2012-09-26 14:55:33 +02:00
|
|
|
.if ${PORT_OPTIONS:MRUBY}
|
2011-09-14 09:38:20 +02:00
|
|
|
USE_RUBY= yes
|
|
|
|
WITH_SWIG= yes
|
|
|
|
.endif
|
|
|
|
|
2012-09-26 14:55:33 +02:00
|
|
|
.if ${PORT_OPTIONS:MJAVA}
|
2011-09-14 09:38:20 +02:00
|
|
|
USE_JAVA= yes
|
2012-09-26 14:55:33 +02:00
|
|
|
CONFIGURE_ENV+= JAVA_HOME=${JAVA_HOME}
|
|
|
|
CATEGORIES+= java
|
2011-09-14 09:38:20 +02:00
|
|
|
WITH_SWIG= yes
|
2015-03-26 20:18:49 +01:00
|
|
|
CMAKE_ARGS+= -DJAVA_LIBDIR:PATH=${JAVALIBDIR}
|
2011-09-14 09:38:20 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SWIG)
|
2016-04-01 16:25:16 +02:00
|
|
|
BUILD_DEPENDS+= swig2.0:devel/swig20
|
2011-09-14 09:38:20 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2015-03-26 20:18:49 +01:00
|
|
|
${REINPLACE_CMD} -e 's|%%LIBEXECINFO%%|${LOC_EXECINFO}|' \
|
|
|
|
-e 's|FreeBSD|${OPSYS}|g' ${WRKSRC}/CMakeLists.txt
|
2011-09-14 09:38:20 +02:00
|
|
|
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
2015-03-26 20:18:49 +01:00
|
|
|
${WRKSRC}/cmake_modules/FindPHP5.cmake
|
2013-04-02 12:04:49 +02:00
|
|
|
.if !${PORT_OPTIONS:MDOCS}
|
2015-03-26 20:18:49 +01:00
|
|
|
${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY(doc)/d' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
2011-11-30 16:34:15 +01:00
|
|
|
.endif
|
|
|
|
|
2012-09-26 14:55:33 +02:00
|
|
|
post-install:
|
2014-06-27 10:07:59 +02:00
|
|
|
${LN} -sf libzorba_simplestore.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libzorba_simplestore.so.${PORTVERSION:R:R}
|
2012-09-26 14:55:33 +02:00
|
|
|
|
|
|
|
test: build
|
|
|
|
cd ${BUILD_WRKSRC} && ${MAKE} test
|
2011-09-14 09:38:20 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|