diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2014-08-08 13:29:33 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2014-08-08 13:29:33 +0000 |
commit | beb8cf22b8eff2d28e35d2127500700800b103b3 (patch) | |
tree | 5ca07d9de02886dbea724671a457395467509881 /textproc | |
parent | ab8d75fe308b46845e33b6c11a23956d1d627992 (diff) | |
download | ports-beb8cf22b8eff2d28e35d2127500700800b103b3.tar.gz ports-beb8cf22b8eff2d28e35d2127500700800b103b3.zip |
Notes
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/zorba/Makefile | 14 | ||||
-rw-r--r-- | textproc/zorba/files/patch-CMakeLists.txt | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/textproc/zorba/Makefile b/textproc/zorba/Makefile index a0a4d4745ded..b6ab6f127266 100644 --- a/textproc/zorba/Makefile +++ b/textproc/zorba/Makefile @@ -13,8 +13,7 @@ COMMENT= General purpose C++ XQuery processor LICENSE= APACHE20 -LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \ - libxerces-c.so.3:${PORTSDIR}/textproc/xerces-c3 \ +LIB_DEPENDS= libxerces-c.so.3:${PORTSDIR}/textproc/xerces-c3 \ libicudata.so:${PORTSDIR}/devel/icu \ libcurl.so:${PORTSDIR}/ftp/curl \ libtidy.so:${PORTSDIR}/www/tidy-lib \ @@ -31,7 +30,7 @@ CONFLICTS= xqilla-[0-9]* USE_GNOME= libxml2 libxslt USE_LDCONFIG= yes USE_CXXSTD= c++11 -USES= cmake:outsource iconv compiler:c++11-lib +USES= cmake:outsource compiler:c++11-lib execinfo iconv CXXFLAGS+= -I${LOCALBASE}/include -O1 # compiler hangs with -O2 on CURRENT LDFLAGS+= -L${LOCALBASE}/lib CMAKE_ARGS= -DCMAKE_REQUIRED_FLAGS:STRING="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \ @@ -104,8 +103,15 @@ BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen .endif post-patch: +.if exists(/usr/lib/libexecinfo.so) + ${REINPLACE_CMD} -e 's|%%LIBEXECINFO%%|/usr/lib/libexecinfo.so|' \ + ${WRKSRC}/CMakeLists.txt +.else + ${REINPLACE_CMD} -e 's|%%LIBEXECINFO%%|${LOCALBASE}/lib/libexecinfo.so|' \ + ${WRKSRC}/CMakeLists.txt +.endif ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ - ${WRKSRC}/CMakeLists.txt ${WRKSRC}/cmake_modules/FindPHP5.cmake + ${WRKSRC}/cmake_modules/FindPHP5.cmake .if !${PORT_OPTIONS:MDOCS} ${REINPLACE_CMD} -e '531s|^|#|' ${WRKSRC}/CMakeLists.txt .endif diff --git a/textproc/zorba/files/patch-CMakeLists.txt b/textproc/zorba/files/patch-CMakeLists.txt index bfde98f6f704..d116c45a837d 100644 --- a/textproc/zorba/files/patch-CMakeLists.txt +++ b/textproc/zorba/files/patch-CMakeLists.txt @@ -18,7 +18,7 @@ +# execinfo +# +IF(FREEBSD) -+ SET(requiredlibs ${requiredlibs} "${LOCALBASE}/lib/libexecinfo.so") ++ SET(requiredlibs ${requiredlibs} "%%LIBEXECINFO%%") +ENDIF(FREEBSD) + +# |