# -*- 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.4 revision 2 platforms darwin maintainers takeshi categories science description Scientific plotting package master_sites sourceforge checksums md5 db172aaf0a7aa429b63d9bbd28637fd4 \ sha1 2649f3628d7d6b2d9267e55b33b56cae3b20fb3d \ rmd160 926ceda7e7821d5ca82affed05a90611476584a0 homepage http://plplot.sourceforge.net/ long_description \ 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. depends_build port:cmake \ path:bin/pkg-config:pkgconfig depends_lib port:expat \ port:fontconfig \ port:freefont-ttf \ port:freetype \ port:libiconv \ port:libLASi \ port:libpng \ path:lib/pkgconfig/pango.pc:pango \ port:swig \ port:tcl \ port:tk \ port:aquaterm \ port:antigraingeometry \ port:zlib patchfiles patch-x18f.f90.diff post-patch { reinplace "s|-framework AquaTerm|-F${prefix}/Library/Frameworks -framework AquaTerm|" ${worksrcpath}/cmake/modules/aqt.cmake } 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=ON \ -DPLD_extcairo=ON \ -DPLD_memcairo=ON \ -DPLD_psttf=ON \ -DPLD_pscairo=ON \ -DPLD_pdfcairo=ON \ -DPLD_pngcairo=ON \ -DPLD_svgcairo=ON \ -DPLD_wxwidgets=OFF \ -DPLD_xcairo=ON \ -DPLD_tkwin=OFF \ -DENABLE_gnome2=OFF \ -DENABLE_java=OFF \ -DENABLE_python=OFF \ -DENABLE_octave=OFF \ -DENABLE_pdl=OFF \ -DENABLE_itcl=OFF \ -DENABLE_itk=OFF \ -DENABLE_wxwidgets=OFF \ -DBUILD_TEST=OFF \ -DSWIG_DIR=${prefix}/bin configure.post_args ../${distname} pre-configure { file mkdir ${workpath}/build if {[file exists ${prefix}/lib/libplplotd.dylib]} { return -code error "Before upgrading plplot, please uninstall (or deactivate) the old version of plplot." } } if {[variant_isset universal]} { configure.args-append -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\" -DENABLE_f77:BOOL=OFF -DENABLE_f95:BOOL=OFF } build.dir ${workpath}/build pre-destroot { set mods "${workpath}/build/bindings/f95/plplot.mod ${workpath}/build/bindings/f95/plplotp.mod ${workpath}/build/bindings/f95/plplot_flt.mod" foreach m $mods { if {[file exists $m]} { file copy $m ${workpath}/build/ } } } platform i386 { configure.args-append -DCMAKE_MODULE_LINKER_FLAGS=\"-undefined dynamic_lookup\" \ -DCMAKE_EXE_LINKER_FLAGS=\"-undefined dynamic_lookup\" } # variant gcw is deleted since it has been deprecated # gd driver (gif, jpeg, png, svg) has been deprecated if {![variant_isset g95] && ![variant_isset universal]} { default_variants +gcc43 } variant gcc43 conflicts g95 conflicts universal description {Build using gcc43 (default)} { depends_lib-append port:gcc43 configure.args-append -DCMAKE_Fortran_COMPILER=\"${prefix}/bin/gfortran-mp-4.3\" } variant g95 conflicts gcc43 conflicts universal 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 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 } variant gdc description {Add support for D} { depends_lib-append port:gdc configure.args-append -DENABLE_d=ON }