1 | |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name gnuplot-devel |
---|
5 | conflicts gnuplot |
---|
6 | set my_name gnuplot |
---|
7 | version 4.3.0 |
---|
8 | categories math science |
---|
9 | maintainers kallisys.net:pguyot openmaintainer |
---|
10 | description A command-driven interactive function plotting program |
---|
11 | long_description Gnuplot is a command-driven interactive function \ |
---|
12 | plotting program. Plots any number of functions, \ |
---|
13 | built up of C operators, C library functions, and \ |
---|
14 | some things C doesn't have like **, sgn(), etc. \ |
---|
15 | Also support for plotting data files, to compare \ |
---|
16 | actual data to theoretical curves. |
---|
17 | platforms darwin |
---|
18 | homepage http://gnuplot.sourceforge.net/ |
---|
19 | |
---|
20 | fetch.type cvs |
---|
21 | cvs.root :pserver:anonymous@gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot |
---|
22 | cvs.module gnuplot |
---|
23 | cvs.password |
---|
24 | worksrcdir gnuplot |
---|
25 | |
---|
26 | depends_lib port:expat \ |
---|
27 | port:fontconfig \ |
---|
28 | port:gd2 \ |
---|
29 | port:jpeg \ |
---|
30 | port:pdflib \ |
---|
31 | port:libiconv \ |
---|
32 | port:libpng \ |
---|
33 | port:ncurses \ |
---|
34 | port:readline \ |
---|
35 | port:xpm \ |
---|
36 | port:zlib |
---|
37 | |
---|
38 | pre-patch { |
---|
39 | # Prepare the cvs sources |
---|
40 | system "cd ${worksrcpath} && ./prepare" |
---|
41 | } |
---|
42 | |
---|
43 | patchfiles patch-share-LaTeX-Makefile.in |
---|
44 | |
---|
45 | platform darwin { |
---|
46 | depends_lib-append port:aquaterm |
---|
47 | configure.cflags-append '-DDEFAULTTERM=\\"aqua\\"' |
---|
48 | } |
---|
49 | |
---|
50 | platform darwin 9 { |
---|
51 | # http://developer.apple.com/qa/qa2007/qa1567.html |
---|
52 | configure.ldflags-append -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib |
---|
53 | } |
---|
54 | |
---|
55 | configure.cppflags-append "-no-cpp-precomp" |
---|
56 | configure.args --with-readline=${prefix} \ |
---|
57 | --with-gd=${prefix} \ |
---|
58 | --with-pdf=${prefix} \ |
---|
59 | --with-png=${prefix} \ |
---|
60 | --with-x \ |
---|
61 | --enable-datastrings --enable-histograms \ |
---|
62 | --infodir='\${prefix}/share/info' \ |
---|
63 | --mandir='\${prefix}/share/man' \ |
---|
64 | --disable-wxwidgets |
---|
65 | |
---|
66 | configure.ccache no |
---|
67 | |
---|
68 | variant no_x11 { |
---|
69 | depends_lib-delete port:xpm |
---|
70 | configure.args-delete --with-x |
---|
71 | configure.args-append --without-x |
---|
72 | } |
---|
73 | |
---|
74 | variant wxwidgets { |
---|
75 | depends_lib-append port:wxWidgets |
---|
76 | configure.args-delete --disable-wxwidgets |
---|
77 | configure.args-append --with-wx-config=${prefix}/bin/wx-config |
---|
78 | } |
---|
79 | |
---|
80 | variant tutorial description "Build the tutorial (requires a tex install)" { |
---|
81 | depends_lib-append bin:tex:texlive_base |
---|
82 | configure.args-delete --without-tutorial |
---|
83 | configure.args-append --with-tutorial |
---|
84 | } |
---|
85 | |
---|
86 | destroot.destdir prefix=${destroot}${prefix} |
---|
87 | |
---|
88 | #not for cvs build |
---|
89 | #post-destroot { |
---|
90 | # xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} |
---|
91 | # xinstall -m 0644 ${distpath}/gnuplot.pdf \ |
---|
92 | # ${destroot}${prefix}/share/doc/${name}/ |
---|
93 | #} |
---|