# -*- 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
maintainers {takeshi @tenomoto} openmaintainer
description Scientific plotting package, double precision version
master_sites sourceforge:plplot
checksums rmd160 16e353cf410232da700d5f2edd1533006f2dc4c4 \
sha256 d4e930b8b9d43cd1663408986218d61f166de7cbc9ef5bed111b0bdea934f9d5
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 \
distname plplot-${version}
long_description ${description_base} This port uses double precision.
patchfiles patch-CMakeLists.txt.diff \
patch-plConfig.h.in.diff \
patch-cmake-modules-pkg-config.cmake.diff
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 \