Ticket #12341: Portfile.revision2.diff
File Portfile.revision2.diff, 3.5 KB (added by takanori@…, 17 years ago) |
---|
-
Portfile
1 1 # $Id$ 2 2 PortSystem 1.0 3 3 name plplot 4 version 5.7. 25 revision 14 version 5.7.3 5 revision 2 6 6 platforms darwin 7 7 maintainers takeshi@mac.com 8 8 categories science 9 9 description Scientific plotting package 10 10 master_sites sourceforge 11 checksums md5 33e43d26df05bcb8a91c3ec769dcc81c11 checksums md5 8c5ed411bc63a4fd07b362a1b9a3e46c 12 12 homepage http://plplot.sourceforge.net/ 13 13 long_description { \ 14 14 PLplot is relatively small, portable, freely distributable, \ … … 20 20 only a handful of function calls is typically required. \ 21 21 For more advanced use, virtually all aspects of plotting are configurable.} 22 22 23 depends_lib port:aquaterm \ 24 port:cmake \ 23 depends_lib port:cmake \ 25 24 port:expat \ 26 25 port:fontconfig \ 27 26 port:freefont-ttf \ 28 27 port:freetype \ 29 port:g95 \30 28 port:gd2 \ 31 29 port:libiconv \ 32 30 port:jpeg \ … … 53 51 configure.env HOME=${workpath} 54 52 configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix} 55 53 configure.args -DCMAKE_VERBOSE_MAKEFILE=ON \ 56 -DCMAKE_Fortran_COMPILER=\"${prefix}/bin/g95\" \57 54 -DCMAKE_Fortran_FLAGS=-O2 \ 58 55 -DCMAKE_C_COMPILER=/usr/bin/cc \ 59 56 -DCMAKE_C_FLAGS=\"-O2 -I${prefix}/include\" \ … … 71 68 -DFREETYPE_LIBRARY=${prefix}/lib/libfreetype.dylib \ 72 69 -DPL_FREETYPE_FONT_PATH=${prefix}/share/fonts/freefont-ttf \ 73 70 -DWITH_FREETYPE=ON \ 74 -DPLD_tkwin=OFF \ 71 -DPLD_aqt=OFF \ 72 -DPLD_tkwin=ON \ 75 73 -DPLD_wxwidgets=OFF \ 76 74 -DPLD_gnome=OFF \ 77 75 -DPLD_gcw=OFF \ … … 85 83 # -DSWIG_DIR=${prefix}/bin 86 84 configure.post_args ../${distname} 87 85 86 pre-configure { 87 if {[file exists ${prefix}/lib/libplplotd.dylib]} { 88 return -code error "Before upgrading plplot, please uninstall (or deactivate) the old version of plplot." 89 } 90 } 91 88 92 build.dir ${workpath}/build 89 93 90 94 platform i386 { … … 92 96 -DCMAKE_EXE_LINKER_FLAGS=\"-undefined dynamic_lookup\" 93 97 } 94 98 95 # To use Gnome Canvas Widget 96 variant gcw { 99 variant gcw description {Add support for Gnome Canvas Widget} { 97 100 depends_lib-append port:atk \ 98 101 port:cairo \ 99 102 port:gettext \ … … 110 113 configure.args-delete -DPLD_gcw=OFF 111 114 configure.args-append -DPLD_gcw=ON 112 115 } 116 117 if {![variant_isset g95]} { 118 default_variants +gcc42 119 } 120 variant gcc42 conflicts g95 description {Build using gcc42 (default)} { 121 depends_lib-append port:gcc42 122 configure.args-append -DCMAKE_Fortran_COMPILER=\"${prefix}/bin/gfortran-mp-4.2\" 123 } 124 variant g95 conflicts gcc42 description {Build using g95} { 125 depends_lib-append port:g95 126 configure.args-append -DCMAKE_Fortran_COMPILER=\"${prefix}/bin/g95\" 127 } 128 129 variant octave description {Add support for Octave} { 130 depends_lib-append port:octave 131 configure.args-delete -DENABLE_octave=OFF 132 configure.args-append -DENABLE_octave=ON 133 }