Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2016 14:05:33 +0000 (UTC)
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r407126 - head/math/plplot
Message-ID:  <201601241405.u0OE5XP7077539@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601241405.u0OE5XP7077539>