Source
xxxxxxxxxx
reinplace {s|Libs: -L"${libdir}" -lplplotdmd|Libs: -L=-L"${libdir}" -L=-lplplotdmd -L=-lplplot|} ${workpath}/build/pkgcfg/plplot-d.pc
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup cmake 1.1
PortGroup compilers 1.0
PortGroup wxWidgets 1.0
if {[variant_isset octave]} {
PortGroup cxx11 1.1
}
name plplot
version 5.15.0
revision 2
platforms darwin
maintainers {takeshi @tenomoto} openmaintainer
categories science
license LGPL
description Scientific plotting package, double precision version
master_sites sourceforge
checksums rmd160 ebfca2cb1221e2cafa9e8d002cea421b8123b224 \
sha256 b92de4d8f626a9b20c84fc94f4f6a9976edd76e33fb1eae44f6804bdcc628c7b \
size 15380293
homepage http://plplot.sourceforge.net/
set description_base "PLplot is a cross-platform software package for \
creating scientific plots. To help accomplish that task it is organized as a \
core C library, language bindings for that library, and device drivers which \
control how the plots are presented in non-interactive and interactive \
plotting contexts."
long_description ${description_base} This port uses double precision.
patchfiles-append patch-src-plmap.c.diff
compilers.choose fc f90
compilers.setup
depends_build-append \
port:pkgconfig
depends_lib port:qhull \
port:antigraingeometry \
port:fontconfig \
port:freefont-ttf \
port:freetype \
port:libharu \
port:libtool \
port:libLASi \
port:swig-tcl \
port:shapelib \
port:tcl
cmake.out_of_source yes
post-patch {
reinplace "s|-ObjC|-ObjC -framework AquaTerm|" ${worksrcpath}/cmake/modules/aqt.cmake
reinplace "s|-framework AquaTerm|-F${frameworks_dir} -framework AquaTerm|" ${worksrcpath}/cmake/modules/aqt.cmake
if {[variant_isset python26]} {
reinplace "s|\${CMAKE_INSTALL_EXEC_PREFIX}|${frameworks_dir}/Python.framework/Versions/2.6|" \
${worksrcpath}/cmake/modules/python.cmake
} elseif {[variant_isset python27]} {
reinplace "s|\${CMAKE_INSTALL_EXEC_PREFIX}|${frameworks_dir}/Python.framework/Versions/2.7|" \
${worksrcpath}/cmake/modules/python.cmake
}
}
configure.cppflags-append -DUSE_INTERP_RESULT \
-DTcl_Import_TCL_DECLARED
configure.env HOME=${workpath}
configure.args-append -DBUILD_SHARED_LIBS=ON \
-DTCL_INCLUDE_PATH=${prefix}/include \
-DTCL_LIBRARY=${prefix}/lib/libtcl.dylib \
-DFREETYPE_INCLUDE_DIR_ft2build=${prefix}/include/freetype2 \
-DFREETYPE_LIBRARIES=${prefix}/lib/libfreetype.dylib \
-DPL_FREETYPE_FONT_PATH=${prefix}/share/fonts/freefont-ttf \
-DWITH_FREETYPE=ON \
-DQHULL_INCLUDE_DIRS=${prefix}/include/qhull \
-DQHULL_LIBRARIES=${prefix}/lib/libqhull.dylib \
-DSHAPELIB_INCLUDE_DIR=${prefix}/include \
-DSHAPELIB_LIBRARY=${prefix}/lib/libshp.dylib \
-DPLD_aqt=OFF \
-DPLD_extcairo=ON \
-DPLD_memcairo=ON \
-DPLD_ps=ON \
-DPLD_psttf=ON \
-DPLD_pscairo=ON \
-DPLD_pdfcairo=ON \
-DPLD_pngcairo=ON \
-DPLD_svgcairo=ON \
-DPLD_tk=OFF \
-DPLD_wxwidgets=OFF \
-DPLD_wxpng=OFF \