From owner-svn-ports-head@FreeBSD.ORG Mon Mar 24 14:06:57 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AC9C3A54; Mon, 24 Mar 2014 14:06:57 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8CCE99DC; Mon, 24 Mar 2014 14:06:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2OE6v2o019900; Mon, 24 Mar 2014 14:06:57 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2OE6v6Z019895; Mon, 24 Mar 2014 14:06:57 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201403241406.s2OE6v6Z019895@svn.freebsd.org> From: Baptiste Daroussin Date: Mon, 24 Mar 2014 14:06:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349001 - head/math/saga X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2014 14:06:57 -0000 Author: bapt Date: Mon Mar 24 14:06:56 2014 New Revision: 349001 URL: http://svnweb.freebsd.org/changeset/ports/349001 QAT: https://qat.redports.org/buildarchive/r349001/ Log: Switch to wx 3.0 Use gcc with libc++ on libc++ version of freebsd (this fixes build on FreeBSD 10 and 11) Support stage Couple of modernisations Modified: head/math/saga/Makefile head/math/saga/pkg-plist Modified: head/math/saga/Makefile ============================================================================== --- head/math/saga/Makefile Mon Mar 24 13:43:36 2014 (r349000) +++ head/math/saga/Makefile Mon Mar 24 14:06:56 2014 (r349001) @@ -21,21 +21,15 @@ LIB_DEPENDS= libproj.so:${PORTSDIR}/grap liblas.so:${PORTSDIR}/devel/liblas \ libopencv_core.so:${PORTSDIR}/graphics/opencv-core -USES= zip -USE_WX= 2.9 +USES= dos2unix zip compiler:features +DOS2UNIX_GLOB= dlg_about.cpp +USE_WX= 3.0 WX_UNICODE= yes USE_LDCONFIG= yes GNU_CONFIGURE= yes USE_AUTOTOOLS= autoconf autoheader automake aclocal libtoolize AUTOMAKE_ARGS= --add-missing -# CLANG is not able to handle neither Fortran nor OpenMP -USE_GCC= any -CFLAGS+= -I${LOCALBASE}/include -USE_DOS2UNIX= dlg_about.cpp - -MAN1= saga_cmd.1 saga_gui.1 - DESKTOP_ENTRIES= "SAGA GIS" "${COMMENT}" "${DATADIR}/saga.png" \ "saga_gui" "Science;Geoscience;Math;" true @@ -46,7 +40,6 @@ OPENMP_DESC= Enable Multiprocessing HARU_DESC= Enable Haru Free PDF Library VIGRA_DESC= Enable 'Vision with Generic Algorithms' Library -NO_STAGE= yes .include LDFLAGS+= -L${LOCALBASE}/lib -lopencv_core @@ -90,6 +83,18 @@ PLIST_SUB+= VIGRA="@comment " .include +# Late define USE_GCC (openmp support) +# and make g++ use libc++ is possible +USE_GCC= any + +.if ${COMPILER_FEATURES:Mlibc++} +LDFLAGS+= -L${LOCALBASE}/lib/c++ +CXXFLAGS+= -nostdinc++ -isystem ${LOCALBASE}/include/c++/v1 +BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:${PORTSDIR}/devel/libc++ +.else + +.endif + post-extract: @${REINPLACE_CMD} -e's|wx-config |${WX_CONFIG} |g' \ ${WRKSRC}/configure.in \ @@ -119,12 +124,11 @@ post-patch: .endif post-install: - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/src/saga_core/saga_gui/res/saga_tip.txt ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/src/saga_core/saga_gui/res/saga.png ${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/src/saga_core/saga_gui/res/saga_tip.txt ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/src/saga_core/saga_gui/res/saga.png ${STAGEDIR}${DATADIR} # library helper files are not needed and cripple some math/qgis extensions - @${RM} ${PREFIX}/lib/saga/*.la - @${RM} ${PREFIX}/lib/saga/*.a - @${CAT} ${PKGMESSAGE} + @${RM} ${STAGEDIR}${PREFIX}/lib/saga/*.la + @${RM} ${STAGEDIR}${PREFIX}/lib/saga/*.a .include Modified: head/math/saga/pkg-plist ============================================================================== --- head/math/saga/pkg-plist Mon Mar 24 13:43:36 2014 (r349000) +++ head/math/saga/pkg-plist Mon Mar 24 14:06:56 2014 (r349001) @@ -82,6 +82,8 @@ lib/saga/libtable_tools.so lib/saga/libtin_tools.so lib/saga/libtin_viewer.so lib/saga/libtransect.so +man/man1/saga_cmd.1.gz +man/man1/saga_gui.1.gz %%VIGRA%%lib/saga/libvigra.so %%DATADIR%%/saga.png %%DATADIR%%/saga_tip.txt