freebsd-ports/textproc/zorba/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

120 lines
2.9 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= zorba
PORTVERSION= 2.7.0
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= https://launchpadlibrarian.net/119058962/
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= gahr@FreeBSD.org
COMMENT= A general purpose C++ XQuery processor
LICENSE= APACHE20
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
libxerces-c.so.3:${PORTSDIR}/textproc/xerces-c3 \
libicudata.so:${PORTSDIR}/devel/icu \
libcurl.so:${PORTSDIR}/ftp/curl \
libtidy.so:${PORTSDIR}/www/tidy-lib \
libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid
RUN_DEPENDS= fop:${PORTSDIR}/textproc/fop
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= PHP PYTHON RUBY JAVA DOCS
# Both install include/xqc.h
CONFLICTS= xqilla-[0-9]*
USE_GNOME= libxml2 libxslt
USE_LDCONFIG= yes
USES= cmake:outsource iconv
CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CMAKE_ARGS= -DCMAKE_REQUIRED_FLAGS:STRING="-I${LOCALBASE}/include -L${LOCALBASE}/lib"
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PLIST_SUB+= FULLVERSION=${PORTVERSION} \
MIDVERSION=${PORTVERSION:R} \
MINVERSION=${PORTVERSION:R:R}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPHP}
USE_PHP= tokenizer
USE_PHP_BUILD= yes
WITH_SWIG= yes
CMAKE_ARGS+= -DWITH_PHP5:BOOL=true \
-DPHP5_INSTALL_PATH:FILEPATH="lib/php/${PHP_EXT_DIR}"
PLIST_SUB+= WITH_PHP="" \
PHP_EXTLIBDIR="lib/php/${PHP_EXT_DIR}"
.else
CMAKE_ARGS+= -DWITH_PHP5:BOOL=false
PLIST_SUB+= WITH_PHP="@comment "
.endif
.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= yes
WITH_SWIG= yes
CMAKE_ARGS+= -DWITH_PYTHON:BOOL=true \
-DPYTHON_SWIG_INSTALL_DIR:FILEPATH=${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}
PLIST_SUB+= WITH_PYTHON="" \
PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}
.else
CMAKE_ARGS+= -DWITH_PYTHON:BOOL=false
PLIST_SUB+= WITH_PYTHON="@comment "
.endif
.if ${PORT_OPTIONS:MRUBY}
USE_RUBY= yes
WITH_SWIG= yes
CMAKE_ARGS+= -DWITH_RUBY:BOOL=true
PLIST_SUB+= WITH_RUBY=""
.else
CMAKE_ARGS+= -DWITH_RUBY:BOOL=false
PLIST_SUB+= WITH_RUBY="@comment "
.endif
.if ${PORT_OPTIONS:MJAVA}
USE_JAVA= yes
CONFIGURE_ENV+= JAVA_HOME=${JAVA_HOME}
CATEGORIES+= java
WITH_SWIG= yes
CMAKE_ARGS+= -DWITH_JAVA:BOOL=true \
-DJAVA_LIBDIR:PATH=${JAVALIBDIR}
PLIST_SUB+= WITH_JAVA=""
.else
CMAKE_ARGS+= -DWITH_JAVA:BOOL=false
PLIST_SUB+= WITH_JAVA="@comment "
.endif
.if defined(WITH_SWIG)
BUILD_DEPENDS+= swig2.0:${PORTSDIR}/devel/swig20
.endif
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
.endif
post-patch:
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/CMakeLists.txt ${WRKSRC}/cmake_modules/FindPHP5.cmake
.if !${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '531s|^|#|' ${WRKSRC}/CMakeLists.txt
.endif
#pre-build:
# ${FIND} ${WRKSRC} -name "*.orig" -delete
post-install:
${LN} -sf libzorba_simplestore.so.${PORTVERSION} ${PREFIX}/lib/libzorba_simplestore.so.${PORTVERSION:R:R}
test: build
cd ${BUILD_WRKSRC} && ${MAKE} test
.include <bsd.port.mk>