summaryrefslogtreecommitdiff
path: root/math/plplot
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2016-01-24 14:05:33 +0000
committerThierry Thomas <thierry@FreeBSD.org>2016-01-24 14:05:33 +0000
commit1344fcfcd9a5018dd3f9fb187ab92250f415657e (patch)
tree3de491248159b9e79eb24fc1cbb18c78e1273fc1 /math/plplot
parent- Update to 1.2-9 (diff)
- 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
Notes
Notes: svn path=/head/; revision=407126
Diffstat (limited to 'math/plplot')
-rw-r--r--math/plplot/Makefile23
-rw-r--r--math/plplot/pkg-plist14
2 files changed, 26 insertions, 11 deletions
diff --git a/math/plplot/Makefile b/math/plplot/Makefile
index e77f761fade1..2788b4af2a72 100644
--- a/math/plplot/Makefile
+++ b/math/plplot/Makefile
@@ -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/bash \
${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>
diff --git a/math/plplot/pkg-plist b/math/plplot/pkg-plist
index 831834bdf7e9..42ad497b75d1 100644
--- a/math/plplot/pkg-plist
+++ b/math/plplot/pkg-plist
@@ -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