|
|||||||||
Wednesday the 8th of September, 2010 |
|||||||||
pgplot most recent diffversion 5.2.2
Scroll down toward the bottom of the page to get installation instructions for pgplot. The raw portfile for pgplot 5.2.2 is located here: http://pgplot.darwinports.com/dports/graphics/pgplot/Portfile Find related portfiles with the unique DarwinPorts.com search feature. Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/pgplot # -*- 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 The pgplot Portfile 50572 2009-05-04 19:19:09Z jeremyhu PortSystem 1.0 Name: pgplot Version: 5.2.2 Revision: 5 Category: graphics devel Maintainers: mcalhoun openmaintainer Description: C/Fortran graphics library Long Description: The PGPLOT Graphics Subroutine Library is a Fortran- or C-callable, device-independent graphics package for making simple scientific graphs. It is intended for making graphical images of publication quality with minimum effort on the part of the user. For most applications, the program can be device-independent, and the output can be directed to the appropriate device at run time. Platform: darwin Homepage: http://www.astro.caltech.edu/~tjp/pgplot/ Master Sites: ftp://ftp.astro.caltech.edu/pub/pgplot/ distname ${name}[join [split ${version} .] ""] worksrcdir build set srcdir ${workpath}/${name} Checksums: md5 e8a6e8d0d5ef9d1709dfb567724525ae sha1 1f1c9aa17eeec9a2fb23fd15a0e4a91dcc49ddc1 rmd160 4c21cad6613772f4104c65ac3d8d9a42e3c4afe1 Patch Files:-append patch-makemake.diff patch-drivers.list.patch patch-proccom.c.diff depends_lib-append port:libpng port:zlib port:g95 depends_build-append bin:perl:perl5 configure.fc ${prefix}/bin/g95 # Tell the compiler not to treat backslash characters as C-style escape sequences. configure.fcflags-append -fno-backslash set compat_version [join [lrange [split ${version} .] 0 0] .] pre-patch { file mkdir ${worksrcpath} } post-patch { # Ensure MacPorts libraries are being used. reinplace "s|\\(-L\\\\`pwd\\\\`\\)|\\1 -L${prefix}/lib|" ${srcdir}/makemake # Look in the correct place for run-time data files. reinplace "s|/usr/local/pgplot/|${prefix}/share/${name}/|" ${srcdir}/src/grgfil.f # /usr/local/bin/perl may not exist. reinplace "s|#!/usr/local/bin/perl|#!/usr/bin/env perl|" ${srcdir}/makehtml ${srcdir}/maketex copy ${srcdir}/drivers.list ${worksrcpath} set drivers "GIF VGIF LATEX PNG TPNG PS VPS CPS VCPS" if {![variant_isset no_x11]} { # XDISP does not work because the program figdisp can not be found. lappend drivers XWINDOW XSERVE } if {[variant_isset aquaterm]} { lappend drivers AQT } foreach driver ${drivers} { reinplace "s|!\\(.*/${driver} .*\\)| \\1|" ${worksrcpath}/drivers.list } } pre-configure { set shlib_opts "-dynamiclib -single_module -current_version ${version} -compatibility_version ${compat_version}" if {![variant_isset no_x11]} { # XQuartz or MacPorts X11 (pkg-config gives precedence to MacPorts X11) eval configure.ldflags-append [exec pkg-config x11 --libs-only-L] set x11Libs [exec pkg-config x11 --libs-only-l] eval configure.cppflags-append [exec pkg-config x11 --cflags] } else { set x11Libs "" } if {[variant_isset aquaterm]} { set aqtLibs "-laquaterm -Wl,-framework -Wl,Foundation" } else { set aqtLibs "" } # Create configuration file. # For a description of options, see ${srcdir}/sys_linux/g77_gcc.conf lappend options XINCL "${configure.cppflags}" lappend options MOTIF_INCL "" lappend options ATHENA_INCL "" lappend options TK_INCL "" lappend options RV_INCL "" lappend options FCOMPL "${configure.fc}" lappend options FFLAGC "${configure.fcflags}" lappend options FFLAGD "" lappend options CCOMPL "${configure.cc}" lappend options CFLAGC "${configure.cppflags} ${configure.cflags}" lappend options CFLAGD "" lappend options PGBIND_FLAGS "bsd" lappend options LIBS "${configure.ldflags} ${x11Libs} ${aqtLibs}" lappend options MOTIF_LIBS "" lappend options ATHENA_LIBS "" lappend options TK_LIBS "" lappend options RANLIB "/usr/bin/ranlib" lappend options SHARED_LIB "libpgplot${version}.dylib" lappend options SHARED_LD "${configure.fc} ${shlib_opts} ${configure.ldflags} ${x11Libs} -install_name ${prefix}/lib/libpgplot${compat_version}.dylib" lappend options SHARED_LIB_LIBS "${configure.ldflags} -lpng ${aqtLibs}" lappend options MCOMPL "${configure.objc}" lappend options MFLAGC "${configure.objcflags}" lappend options SYSDIR "\\\$SYSDIR" # The following variables are not part of the unpatched pgplot. # They have been added to facilitate building a shared C library. lappend options CSHARED_LIB "libcpgplot${version}.dylib" lappend options CSHARED_LD "${configure.fc} ${shlib_opts} ${configure.ldflags} ${x11Libs} -install_name ${prefix}/lib/libcpgplot${compat_version}.dylib" file mkdir ${srcdir}/sys_darwin foreach {var val} ${options} { system "/bin/echo \" ${var}=\\\"${val}\\\"\" >> ${srcdir}/sys_darwin/marcports.conf" } # Create optional routine which makemake will find and compile. system "/bin/echo \"int iand_ (int *a, int *b) { return *a & *b;}\" >> ${srcdir}/sys_darwin/iand.c" } configure.cmd ${srcdir}/makemake configure.pre_args configure.args ${srcdir} ${os.platform} # When linking against fortran code, PG_PPU gets number of underscores correct. configure.cppflags-append -DPG_PPU # Build the C PGPLOT wrapper library, HTML documentation, and TeX files. build.target-append cpg pgplot.html pgplot-routines.tex destroot { # pgxwin_server is only built if the X11 drivers are requested. # pgdisp is only built if the XDISP driver is requested. foreach fl [glob -directory ${worksrcpath} -nocomplain pgxwin_server pgdisp] { xinstall -m 755 ${fl} ${destroot}${prefix}/bin } foreach fl [glob -directory ${worksrcpath} -nocomplain *.dylib] { xinstall -m 755 ${fl} ${destroot}${prefix}/lib } foreach fl [glob -directory ${worksrcpath} -nocomplain *.a] { xinstall -m 644 ${fl} ${destroot}${prefix}/lib } foreach fl [glob -directory ${worksrcpath} -nocomplain *.h] { xinstall -m 644 ${fl} ${destroot}${prefix}/include } # Install run-time data files. xinstall -d -m 755 ${destroot}${prefix}/share/${name} foreach fl [glob -directory ${worksrcpath} -nocomplain *.dat *.txt] { xinstall -m 644 ${fl} ${destroot}${prefix}/share/${name} } # Install docs. xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} xinstall -m 644 ${srcdir}/copyright.notice ${destroot}${prefix}/share/doc/${name} foreach fl [glob -directory ${worksrcpath} -nocomplain *.doc *.html *.pdf] { xinstall -m 644 ${fl} ${destroot}${prefix}/share/doc/${name} } # Install examples. xinstall -d -m 755 ${destroot}${prefix}/share/${name}/examples foreach fl [glob -directory ${srcdir} examples/pgdemo*.f cpg/cpgdemo*.c drivers/*/pg*demo.*] { xinstall -m 644 ${fl} ${destroot}${prefix}/share/${name}/examples } foreach fl [glob -directory ${worksrcpath} *demo*] { xinstall -m 755 ${fl} ${destroot}${prefix}/share/${name}/examples } # Create more library names. ln -s libcpgplot${version}.dylib ${destroot}${prefix}/lib/libcpgplot.dylib ln -s libcpgplot${version}.dylib ${destroot}${prefix}/lib/libcpgplot[join [lrange [split ${version} .] 0 0] .].dylib ln -s libcpgplot${version}.dylib ${destroot}${prefix}/lib/libcpgplot[join [lrange [split ${version} .] 0 1] .].dylib ln -s libpgplot${version}.dylib ${destroot}${prefix}/lib/libpgplot.dylib ln -s libpgplot${version}.dylib ${destroot}${prefix}/lib/libpgplot[join [lrange [split ${version} .] 0 0] .].dylib ln -s libpgplot${version}.dylib ${destroot}${prefix}/lib/libpgplot[join [lrange [split ${version} .] 0 1] .].dylib } Variant: no_x11 {} if {![variant_isset no_x11]} { depends_lib-append port:xorg-libX11 depends_build-append port:pkgconfig } Variant: aquaterm description {install driver for aquaterm} { depends_lib-append port:aquaterm post-extract { copy ${prefix}/share/aquaterm/adapters/pgplot/aqdriv.m ${srcdir}/drivers } } Variant: gcc42 description {build with gfortran from gcc42 instead of g95} conflicts gcc43 { depends_lib-delete port:g95 depends_lib-append port:gcc42 configure.fc ${prefix}/bin/gfortran-mp-4.2 } Variant: gcc43 description {build with gfortran from gcc43 instead of g95} conflicts gcc42 { depends_lib-delete port:g95 depends_lib-append port:gcc43 configure.fc ${prefix}/bin/gfortran-mp-4.3 } Variant: docs { depends_build-append bin:pdflatex:texlive post-build { system "cd ${worksrcpath} && pdflatex pgplot-routines.tex && pdflatex pgplot-routines.tex" } } If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page. Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:
% cd /opt/local/bin/portslocation/dports/pgplotYou will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to: Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using pgplot with these commands: % man pgplot Where to find more information:
|
![]() |
![]()
Order Snow Leopard MacOSX 10.6 for only $29!
Other Helpful SitesMacOSForgeDebian Packages MacPorts - SVN Freshports - FreeBSD Fink Package List RPM for MacOSX Port Categories
accounting
amusements aqua archivers audio benchmarks biology blinkenlights cad chat chinese comms compression cross crypto databases devel editors education electronics emacs emulators erlang finance fonts framework fuse games genealogy gis gnome gnustep graphics gtk haskell iphone irc japanese java kde kde4 lang macports math mercurial ml mono multimedia net network news ocaml office palm parallel perl php pim project python reporting rox ruby russian scheme science security shells spelling squeak sysutils tcl tex textproc tk unicode vnc win32 wsn www x11 x11-font x11-wm xfce zope
Current SVN DownloadsDarwin Ports Current : |




