# -*- 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 # $Id$ PortSystem 1.0 name plplot version 5.9.0 revision 1 platforms darwin maintainers takeshi@macports.org categories science description Scientific plotting package master_sites sourceforge checksums md5 bfaeba7a5f1ef83edc3787af04694539 \ sha1 6473e2ed44c91b10e50a3529e02f4b54541899ca \ rmd160 46fac543b471ccadd22d6cda6da63108023bb08b homepage http://plplot.sourceforge.net/ long_description { \ PLplot is relatively small, portable, freely distributable, \ and is rich enough to satisfy most users. It has a wide \ range of plot types including line (linear, log), \ contour, 3D, fill, and almost 1000 characters \ (including Greek and mathematical) in its extended font set. \ The package is designed to make it easy to quickly get \ graphical output; only a handful of function calls \ is typically required. For more advanced use, \ virtually all aspects of plotting are configurable.} depends_lib port:cmake \ port:expat \ port:fontconfig \ port:freefont-ttf \ port:freetype \ port:gd2 \ port:libiconv \ port:jpeg \ port:libpng \ port:pkgconfig \ port:swig \ port:tcl \ port:tk \ port:zlib patchfiles patch-x18f.f90.diff pre-configure { file mkdir ${workpath}/build } configure.dir ${workpath}/build configure.cmd cmake configure.env HOME=${workpath} configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix} configure.args -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_Fortran_FLAGS=-O2 \ -DCMAKE_C_COMPILER=/usr/bin/cc \ -DCMAKE_C_FLAGS=\"-O2 -I${prefix}/include\" \ -DCMAKE_CXX_COMPILER=/usr/bin/c++ \ -DCMAKE_CXX_FLAGS=\"-O2 -I${prefix}/include\" \ -DCMAKE_INCLUDE_PATH=${prefix}/include \ -DCMAKE_LIBRARY_PATH=${prefix}/lib \ -DTCL_INCLUDE_PATH=${prefix}/include \ -DTCL_LIBRARY=${prefix}/lib/libtcl.dylib \ -DTCL_STUB_LIBRARY=${prefix}/lib/libtclstub8.5.a \ -DTK_INCLUDE_PATH=${prefix}/include \ -DTK_LIBRARY=${prefix}/lib/libtk.dylib \ -DTK_STUB_LIBRARY=${prefix}/lib/libtkstub8.5.a \ -DFREETYPE_INCLUDE_DIR=${prefix}/include/freetype2 \ -DFREETYPE_LIBRARY=${prefix}/lib/libfreetype.dylib \ -DPL_FREETYPE_FONT_PATH=${prefix}/share/fonts/freefont-ttf \ -DWITH_FREETYPE=ON \ -DPLD_aqt=OFF \ -DPLD_tkwin=ON \ -DPLD_wxwidgets=OFF \ -DPLD_gnome=OFF \ -DPLD_gcw=OFF \ -DENABLE_java=OFF \ -DENABLE_python=OFF \ -DENABLE_octave=OFF \ -DENABLE_pdl=OFF \ -DENABLE_itcl=OFF \ -DENABLE_itk=OFF \ -DBUILD_TEST=OFF \ -DSWIG_DIR=${prefix}/bin configure.post_args ../${distname} pre-configure { if {[file exists ${prefix}/lib/libplplotd.dylib]} { return -code error "Before upgrading plplot, please uninstall (or deactivate) the old version of plplot." } } build.dir ${workpath}/build pre-destroot { file copy ${workpath}/build/bindings/f95/plplot.mod ${workpath}/build/ file copy ${workpath}/build/bindings/f95/plplotp.mod ${workpath}/build/ file copy ${workpath}/build/bindings/f95/plplot_flt.mod ${workpath}/build/ } platform i386 { configure.args-append -DCMAKE_MODULE_LINKER_FLAGS=\"-undefined dynamic_lookup\" \ -DCMAKE_EXE_LINKER_FLAGS=\"-undefined dynamic_lookup\" } variant gcw description {Add support for Gnome Canvas Widget} { depends_lib-append port:atk \ port:cairo \ port:gettext \ port:glib2 \ port:gtk2 \ port:libart_lgpl \ port:libgnomecanvas \ port:libgnomeprint \ port:libgnomeprintui \ port:libxml2 \ port:pango \ port:tiff \ port:xrender configure.args-delete -DPLD_gcw=OFF configure.args-append -DPLD_gcw=ON } if {![variant_isset g95]} { default_variants +gcc42 } variant gcc42 conflicts g95 description {Build using gcc42 (default)} { depends_lib-append port:gcc42 configure.args-append -DCMAKE_Fortran_COMPILER=\"${prefix}/bin/gfortran-mp-4.2\" } variant g95 conflicts gcc42 description {Build using g95} { depends_lib-append port:g95 configure.args-append -DCMAKE_Fortran_COMPILER=\"${prefix}/bin/g95\" } variant octave description {Add support for Octave} { depends_lib-append port:octave configure.args-delete -DENABLE_octave=OFF configure.args-append -DENABLE_octave=ON } variant java description {Add support for Java} { configure.args-delete -DENABLE_java=OFF configure.args-append -DENABLE_java=ON } #variant python24 description {Add support for python24} { # depends_lib-append port:python24 \ # port:py24-numpy # configure.args-delete -DENABLE_python=OFF # configure.args-append -DENABLE_python=ON \ # -DHAVE_NUMPY:BOOL=ON \ # -DPYTHON_INCLUDE_PATH=${prefix}/include/python2.4 #} variant python25 description {Add support for python25} { depends_lib-append port:python25 \ port:py25-numpy configure.args-delete -DENABLE_python=OFF configure.args-append -DENABLE_python=ON \ -DHAVE_NUMPY:BOOL=ON \ -DPYTHON_INCLUDE_PATH=${prefix}/include/python2.5 }