Changeset 81302
- Timestamp:
- 07/28/11 22:38:23 (4 years ago)
- Location:
- trunk/dports/graphics/pgplot
- Files:
-
- 4 edited
-
Portfile (modified) (11 diffs)
-
files/patch-drivers.list.patch (modified) (1 diff)
-
files/patch-makemake.diff (modified) (1 diff)
-
files/patch-proccom.c.diff (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/graphics/pgplot/Portfile
r79101 r81302 25 25 26 26 distname ${name}[join [split ${version} .] ""] 27 28 worksrcdirbuild29 set srcdir ${workpath}/${name}27 worksrcdir ${name} 28 configure.dir ${workpath}/build 29 build.dir ${configure.dir} 30 30 31 31 checksums \ … … 43 43 set compat_version [join [lrange [split ${version} .] 0 0] .] 44 44 45 p re-patch{46 file mkdir ${ worksrcpath}45 post-extract { 46 file mkdir ${build.dir} 47 47 } 48 48 49 49 post-patch { 50 50 # Ensure MacPorts libraries are being used. 51 reinplace "s|\\(-L\\\\`pwd\\\\`\\)|\\1 -L${prefix}/lib|" ${ srcdir}/makemake51 reinplace "s|\\(-L\\\\`pwd\\\\`\\)|\\1 -L${prefix}/lib|" ${worksrcpath}/makemake 52 52 53 53 # Look in the correct place for run-time data files. 54 reinplace "s|/usr/local/pgplot/|${prefix}/share/${name}/|" ${ srcdir}/src/grgfil.f54 reinplace "s|/usr/local/pgplot/|${prefix}/share/${name}/|" ${worksrcpath}/src/grgfil.f 55 55 56 56 # /usr/local/bin/perl may not exist. 57 reinplace "s|#!/usr/local/bin/perl|#!/usr/bin/env perl|" ${ srcdir}/makehtml ${srcdir}/maketex58 59 copy ${ srcdir}/drivers.list ${worksrcpath}57 reinplace "s|#!/usr/local/bin/perl|#!/usr/bin/env perl|" ${worksrcpath}/makehtml ${worksrcpath}/maketex 58 59 copy ${worksrcpath}/drivers.list ${build.dir} 60 60 61 61 set drivers "GIF VGIF LATEX PNG TPNG PS VPS CPS VCPS" … … 71 71 72 72 foreach driver ${drivers} { 73 reinplace "s|!\\(.*/${driver} .*\\)| \\1|" ${ worksrcpath}/drivers.list73 reinplace "s|!\\(.*/${driver} .*\\)| \\1|" ${build.dir}/drivers.list 74 74 } 75 75 } … … 95 95 96 96 # Create configuration file. 97 # For a description of options, see ${ srcdir}/sys_linux/g77_gcc.conf97 # For a description of options, see ${worksrcpath}/sys_linux/g77_gcc.conf 98 98 lappend options XINCL "${configure.cppflags}" 99 99 lappend options MOTIF_INCL "" … … 125 125 lappend options CSHARED_LD "${configure.fc} ${shlib_opts} ${configure.ldflags} ${x11Libs} -install_name ${prefix}/lib/libcpgplot${compat_version}.dylib" 126 126 127 file mkdir ${ srcdir}/sys_darwin127 file mkdir ${worksrcpath}/sys_darwin 128 128 foreach {var val} ${options} { 129 system "/bin/echo \" ${var}=\\\"${val}\\\"\" >> ${ srcdir}/sys_darwin/marcports.conf"129 system "/bin/echo \" ${var}=\\\"${val}\\\"\" >> ${worksrcpath}/sys_darwin/marcports.conf" 130 130 } 131 131 132 132 # Create optional routine which makemake will find and compile. 133 system "/bin/echo \"int iand_ (int *a, int *b) { return *a & *b;}\" >> ${ srcdir}/sys_darwin/iand.c"134 } 135 136 configure.cmd ${ srcdir}/makemake133 system "/bin/echo \"int iand_ (int *a, int *b) { return *a & *b;}\" >> ${worksrcpath}/sys_darwin/iand.c" 134 } 135 136 configure.cmd ${worksrcpath}/makemake 137 137 configure.pre_args 138 configure.args ${ srcdir} ${os.platform}138 configure.args ${worksrcpath} ${os.platform} 139 139 140 140 # When linking against fortran code, PG_PPU gets number of underscores correct. … … 147 147 # pgxwin_server is only built if the X11 drivers are requested. 148 148 # pgdisp is only built if the XDISP driver is requested. 149 foreach fl [glob -directory ${ worksrcpath} -nocomplain pgxwin_server pgdisp] {149 foreach fl [glob -directory ${destroot.dir} -nocomplain pgxwin_server pgdisp] { 150 150 xinstall -m 755 ${fl} ${destroot}${prefix}/bin 151 151 } 152 152 153 foreach fl [glob -directory ${ worksrcpath} -nocomplain *.dylib] {153 foreach fl [glob -directory ${destroot.dir} -nocomplain *.dylib] { 154 154 xinstall -m 755 ${fl} ${destroot}${prefix}/lib 155 155 } 156 156 157 foreach fl [glob -directory ${ worksrcpath} -nocomplain *.a] {157 foreach fl [glob -directory ${destroot.dir} -nocomplain *.a] { 158 158 xinstall -m 644 ${fl} ${destroot}${prefix}/lib 159 159 } 160 160 161 foreach fl [glob -directory ${ worksrcpath} -nocomplain *.h] {161 foreach fl [glob -directory ${destroot.dir} -nocomplain *.h] { 162 162 xinstall -m 644 ${fl} ${destroot}${prefix}/include 163 163 } … … 165 165 # Install run-time data files. 166 166 xinstall -d -m 755 ${destroot}${prefix}/share/${name} 167 foreach fl [glob -directory ${ worksrcpath} -nocomplain *.dat *.txt] {167 foreach fl [glob -directory ${destroot.dir} -nocomplain *.dat *.txt] { 168 168 xinstall -m 644 ${fl} ${destroot}${prefix}/share/${name} 169 169 } … … 171 171 # Install docs. 172 172 xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} 173 xinstall -m 644 ${ srcdir}/copyright.notice ${destroot}${prefix}/share/doc/${name}174 foreach fl [glob -directory ${ worksrcpath} -nocomplain *.doc *.html *.pdf] {173 xinstall -m 644 ${worksrcpath}/copyright.notice ${destroot}${prefix}/share/doc/${name} 174 foreach fl [glob -directory ${destroot.dir} -nocomplain *.doc *.html *.pdf] { 175 175 xinstall -m 644 ${fl} ${destroot}${prefix}/share/doc/${name} 176 176 } … … 178 178 # Install examples. 179 179 xinstall -d -m 755 ${destroot}${prefix}/share/${name}/examples 180 foreach fl [glob -directory ${ srcdir} examples/pgdemo*.f cpg/cpgdemo*.c drivers/*/pg*demo.*] {180 foreach fl [glob -directory ${worksrcpath} examples/pgdemo*.f cpg/cpgdemo*.c drivers/*/pg*demo.*] { 181 181 xinstall -m 644 ${fl} ${destroot}${prefix}/share/${name}/examples 182 182 } 183 foreach fl [glob -directory ${ worksrcpath} *demo*] {183 foreach fl [glob -directory ${destroot.dir} *demo*] { 184 184 xinstall -m 755 ${fl} ${destroot}${prefix}/share/${name}/examples 185 185 } … … 208 208 209 209 post-extract { 210 copy ${prefix}/share/aquaterm/adapters/pgplot/aqdriv.m ${ srcdir}/drivers210 copy ${prefix}/share/aquaterm/adapters/pgplot/aqdriv.m ${worksrcpath}/drivers 211 211 } 212 212 } … … 244 244 245 245 post-build { 246 system "cd ${ worksrcpath} && pdflatex pgplot-routines.tex && pdflatex pgplot-routines.tex"247 } 248 } 246 system "cd ${build.dir} && pdflatex pgplot-routines.tex && pdflatex pgplot-routines.tex" 247 } 248 } -
trunk/dports/graphics/pgplot/files/patch-drivers.list.patch
r47677 r81302 1 --- ../pgplot/drivers.list.orig 1999-05-04 01:02:15.000000000 -04002 +++ ../pgplot/drivers.list 2009-02-28 13:23:46.000000000 -05001 --- drivers.list.orig 1999-05-04 01:02:15.000000000 -0400 2 +++ drivers.list 2009-02-28 13:23:46.000000000 -0500 3 3 @@ -5,6 +5,7 @@ 4 4 ! available on selected operating systems only. -
trunk/dports/graphics/pgplot/files/patch-makemake.diff
r47644 r81302 1 --- ../pgplot/makemake.orig 2009-02-28 16:57:42.000000000 -05002 +++ ../pgplot/makemake 2009-02-28 16:58:30.000000000 -05001 --- makemake.orig 2009-02-28 16:57:42.000000000 -0500 2 +++ makemake 2009-02-28 16:58:30.000000000 -0500 3 3 @@ -100,6 +100,7 @@ 4 4 #----------------------------------------------------------------------- -
trunk/dports/graphics/pgplot/files/patch-proccom.c.diff
r47644 r81302 1 --- ../pgplot/pgdispd/proccom.c.orig 1994-08-22 16:33:35.000000000 -04002 +++ ../pgplot/pgdispd/proccom.c 2009-02-28 13:37:38.000000000 -05001 --- pgdispd/proccom.c.orig 1994-08-22 16:33:35.000000000 -0400 2 +++ pgdispd/proccom.c 2009-02-28 13:37:38.000000000 -0500 3 3 @@ -93,10 +93,12 @@ 4 4 #include <sys/types.h>
Note: See TracChangeset
for help on using the changeset viewer.

