From owner-svn-ports-all@freebsd.org Sun Jan 24 14:05:34 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A84629C29CC; Sun, 24 Jan 2016 14:05:34 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8384FC31; Sun, 24 Jan 2016 14:05:34 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0OE5XEE077541; Sun, 24 Jan 2016 14:05:33 GMT (envelope-from thierry@FreeBSD.org) Received: (from thierry@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0OE5XP7077539; Sun, 24 Jan 2016 14:05:33 GMT (envelope-from thierry@FreeBSD.org) Message-Id: <201601241405.u0OE5XP7077539@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: thierry set sender to thierry@FreeBSD.org using -f From: Thierry Thomas Date: Sun, 24 Jan 2016 14:05:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407126 - head/math/plplot X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2016 14:05:34 -0000 Author: thierry Date: Sun Jan 24 14:05:33 2016 New Revision: 407126 URL: https://svnweb.freebsd.org/changeset/ports/407126 Log: - math/plplot depends on the legacy math/qhull5, and since this port conflicts with the new one, it was impossible to install together math/plplot and math/qhull; - fix PKG_CONFIG_DIR. PR: ports/205937 Submitted by: /me Approved by: maintainer Modified: head/math/plplot/Makefile head/math/plplot/pkg-plist Modified: head/math/plplot/Makefile ============================================================================== --- head/math/plplot/Makefile Sun Jan 24 13:57:31 2016 (r407125) +++ head/math/plplot/Makefile Sun Jan 24 14:05:33 2016 (r407126) @@ -3,7 +3,7 @@ PORTNAME= plplot PORTVERSION= 5.11.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math science MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20Source @@ -16,14 +16,13 @@ BUILD_DEPENDS= bash:${PORTSDIR}/shells/b ${FREEFONT_DIR}/FreeMono.ttf:${PORTSDIR}/x11-fonts/freefont-ttf LIB_DEPENDS= libLASi.so:${PORTSDIR}/devel/lasi \ libltdl.so:${PORTSDIR}/devel/libltdl \ - libqhull.so:${PORTSDIR}/math/qhull5 \ libfreetype.so:${PORTSDIR}/print/freetype2 RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \ ${FREEFONT_DIR}/FreeMono.ttf:${PORTSDIR}/x11-fonts/freefont-ttf USE_GNOME= pango USE_PERL5= build -USES= cmake ghostscript gmake perl5 pkgconfig +USES= cmake ghostscript gmake localbase perl5 pathfix pkgconfig CMAKE_ARGS= -DENABLE_java:BOOL=OFF \ -DENABLE_octave:BOOL=OFF \ -DENABLE_pdl:BOOL=OFF \ @@ -32,6 +31,7 @@ CMAKE_ARGS= -DENABLE_java:BOOL=OFF \ -DENABLE_ocaml:BOOL=OFF \ -DENABLE_pyqt4:BOOL=OFF \ -DPL_FREETYPE_FONT_PATH:PATH="${FREEFONT_DIR}" \ + -DCMAKE_INSTALL_PKG_CONFIG_DIR:PATH="${PREFIX}/libdata/pkgconfig" \ -DPLD_plmeta:BOOL=OFF CFLAGS+= -D_IS_BUILDING_PLPLOT_PORT_ USE_LDCONFIG= yes @@ -39,7 +39,9 @@ USE_LDCONFIG= yes FREEFONT_DIR= ${LOCALBASE}/share/fonts/freefont-ttf OPTIONS_DEFINE= FORTRAN GD LUA PYTHON QT4 TCLTK THREADS WXGTK X11 DOCS -OPTIONS_DEFAULT=THREADS X11 +OPTIONS_RADIO= QHULL +OPTIONS_RADIO_QHULL= QHULL2012 QHULL2003 +OPTIONS_DEFAULT= QHULL2012 THREADS X11 OPTIONS_SUB= yes FORTRAN_USES= fortran @@ -61,6 +63,13 @@ PYTHON_RUN_DEPENDS= ${PYNUMPY} PYTHON_CONFIGURE_ENV= PYTHON_VERSION="${PYTHON_VERSION}" PYTHON_CMAKE_OFF= -DENABLE_python:BOOL=OFF +QHULL2003_DESC= Legacy Qhull support +QHULL2012_DESC= Latest Qhull support +QHULL2012_LIB_DEPENDS= libqhull.so.6:${PORTSDIR}/math/qhull +QHULL2003_LIB_DEPENDS= libqhull.so.5:${PORTSDIR}/math/qhull5 +QHULL2012_CMAKE_ON= -DQHULL_INCLUDE_DIRS="${LOCALBASE}/include/libqhull" +QHULL2012_2FIX= lib/nn/delaunay.c src/plgridd.c + TCLTK_LIB_DEPENDS= libitk.so:${PORTSDIR}/x11-toolkits/itk TCLTK_RUN_DEPENDS= iwidgets>0:${PORTSDIR}/x11-toolkits/iwidgets TCLTK_USES= tk @@ -105,5 +114,11 @@ pre-configure: ${WRKSRC}/cmake/modules/FindLTDL.cmake ${GREP} -lR "/usr/local" ${WRKSRC}/cmake/modules | ${XARGS} \ ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' +.if ${PORT_OPTIONS:MQHULL2012} +. for src in ${QHULL2012_2FIX} + ${REINPLACE_CMD} -e 's|qhull/qhull_a|libqhull/qhull_a|' \ + ${WRKSRC}/${src} +. endfor +.endif .include Modified: head/math/plplot/pkg-plist ============================================================================== --- head/math/plplot/pkg-plist Sun Jan 24 13:57:31 2016 (r407125) +++ head/math/plplot/pkg-plist Sun Jan 24 14:05:33 2016 (r407126) @@ -70,13 +70,13 @@ lib/libqsastime.so.0.0.1 %%TCLTK%%lib/libtclmatrix.so %%TCLTK%%lib/libtclmatrix.so.10 %%TCLTK%%lib/libtclmatrix.so.10.2.0 -lib/pkgconfig/plplot-c++.pc -%%FORTRAN%%lib/pkgconfig/plplot-f95.pc -%%QT4%%lib/pkgconfig/plplot-qt.pc -%%TCLTK%%lib/pkgconfig/plplot-tcl.pc -%%TCLTK%%lib/pkgconfig/plplot-tcl_Main.pc -%%WXGTK%%lib/pkgconfig/plplot-wxwidgets.pc -lib/pkgconfig/plplot.pc +libdata/pkgconfig/plplot-c++.pc +%%FORTRAN%%libdata/pkgconfig/plplot-f95.pc +%%QT4%%libdata/pkgconfig/plplot-qt.pc +%%TCLTK%%libdata/pkgconfig/plplot-tcl.pc +%%TCLTK%%libdata/pkgconfig/plplot-tcl_Main.pc +%%WXGTK%%libdata/pkgconfig/plplot-wxwidgets.pc +libdata/pkgconfig/plplot.pc %%LUA%%%%LUA_MODLIBDIR%%/plplot/plplotluac.so lib/plplot/drivers/cairo.driver_info lib/plplot/drivers/cairo.so