[22893] trunk/dports/science

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 17 21:11:25 PDT 2007


Revision: 22893
          http://trac.macosforge.org/projects/macports/changeset/22893
Author:   takanori at macports.org
Date:     2007-03-17 21:11:24 -0700 (Sat, 17 Mar 2007)

Log Message:
-----------
New port: plplot
Ticket:		#11522
Submitted by:	takeshi at mac.com
Reviewed by:	takanori@

Added Paths:
-----------
    trunk/dports/science/plplot/
    trunk/dports/science/plplot/Portfile
    trunk/dports/science/plplot/files/
    trunk/dports/science/plplot/files/patch-x18f

Added: trunk/dports/science/plplot/Portfile
===================================================================
--- trunk/dports/science/plplot/Portfile	                        (rev 0)
+++ trunk/dports/science/plplot/Portfile	2007-03-18 04:11:24 UTC (rev 22893)
@@ -0,0 +1,112 @@
+# $Id$
+PortSystem      1.0
+name            plplot
+version         5.7.2
+revision        1
+platforms       darwin 
+maintainers     takeshi at mac.com
+categories      science
+description     Scientific plotting package
+master_sites    sourceforge
+checksums       md5 33e43d26df05bcb8a91c3ec769dcc81c
+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:aquaterm \
+                port:cmake \
+                port:expat \
+                port:fontconfig \
+                port:freefont-ttf \
+                port:freetype \
+                port:g95 \
+                port:gd2 \
+                port:libiconv \
+                port:jpeg \
+                port:libpng \
+                port:odcctools \
+                port:pkgconfig \
+                port:tcl \
+                port:tk \
+                port:zlib
+
+#               port:fftw-3
+#               port:hdf5
+#               port:readline
+#               port:swig
+
+patchfiles      patch-x18f
+
+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_COMPILER=\"${prefix}/bin/g95\" \
+                        -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.4.a \
+                        -DTK_INCLUDE_PATH=${prefix}/include \
+                        -DTK_LIBRARY=${prefix}/lib/libtk.dylib \
+                        -DTK_STUB_LIBRARY=${prefix}/lib/libtkstub8.4.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_tkwin=OFF \
+                        -DPLD_wxwidgets=OFF \
+                        -DPLD_gnome=OFF \
+                        -DPLD_gcw=OFF \
+                        -DENABLE_java=OFF \
+                        -DENABLE_python=OFF \
+                        -DENABLE_octave=OFF \
+                        -DENABLE_pdl=OFF \
+                        -DENABLE_itkl=OFF \
+                        -DENABLE_itk=OFF \
+                        -DBUILD_TEST=ON
+#                       -DSWIG_DIR=${prefix}/bin
+configure.post_args     ../${distname}
+
+build.dir               ${workpath}/build
+
+platform i386 {
+    configure.args-append   -DCMAKE_MODULE_LINKER_FLAGS=\"-undefined dynamic_lookup\" \
+                            -DCMAKE_EXE_LINKER_FLAGS=\"-undefined dynamic_lookup\"
+}
+
+# To use Gnome Canvas Widget
+variant gcw {
+    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
+}


Property changes on: trunk/dports/science/plplot/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/science/plplot/files/patch-x18f
===================================================================
--- trunk/dports/science/plplot/files/patch-x18f	                        (rev 0)
+++ trunk/dports/science/plplot/files/patch-x18f	2007-03-18 04:11:24 UTC (rev 22893)
@@ -0,0 +1,22 @@
+--- examples/f95/x18f.f90.orig	2007-03-03 15:46:12.000000000 +0900
++++ examples/f95/x18f.f90	2007-03-03 16:08:58.000000000 +0900
+@@ -109,8 +109,9 @@
+ 
+       real(kind=plflt) x(5), y(5), z(5)
+       integer i, j
+-      real(kind=plflt) two_pi
++      real(kind=plflt) two_pi, one_pi
+       parameter ( two_pi = 2.0_plflt*pi                )
++      parameter ( one_pi = 1.0_plflt*pi                )
+       logical draw(4,4)
+       DATA draw / &
+         .true., .true., .true., .true., &
+@@ -120,7 +121,7 @@
+       real(kind=plflt) theta, phi
+       integer ia
+       THETA(ia) = (two_pi * (ia) /20._plflt)
+-      PHI(ia)   = (pi * (ia) / 20.1_plflt)
++      PHI(ia)   = (one_pi * (ia) / 20.1_plflt)
+ 
+       call pladv(0)
+       call plvpor(0.0_plflt, 1.0_plflt, 0.0_plflt, 0.9_plflt)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070317/4ca4da30/attachment.html


More information about the macports-changes mailing list