source: trunk/dports/gis/grass/Portfile @ 58230

Last change on this file since 58230 was 58230, checked in by ryandesign@…, 11 years ago

rewrite mysql5 dependency so mysql5-devel can satisfy it

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: Portfile 58230 2009-09-24 16:45:22Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name              grass
6version           6.3.0
7maintainers       nomaintainer
8categories        gis
9platforms         darwin
10
11description       GRASS
12long_description  GRASS is a Geographic Information System (GIS) used for \
13                  geospatial data management and analysis.
14
15homepage          http://grass.osgeo.org
16master_sites      http://grass.osgeo.org/grass63/source/
17
18checksums         md5 7dce50a076e2481733148ba34cbebc07
19
20depends_lib       port:fftw \
21                  port:freetype \
22                  port:gdal \
23                  port:geos \
24                  port:jpeg \
25                  port:libpng \
26                  port:openmotif \
27                  port:proj \
28                  port:tk
29
30use_parallel_build yes
31
32patchfiles \
33    patch-Makefile.diff \
34    patch-configure.diff \
35    patch-macosx_Makefile.diff
36
37post-patch {
38   reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" \
39      ${worksrcpath}/configure
40}
41
42configure.ldflags -framework OpenGL
43configure.args \
44    --with-fftw-includes=${prefix}/include \
45    --with-fftw-libs=${prefix}/lib \
46    --with-freetype \
47    --with-freetype-includes=${prefix}/include/freetype2 \
48    --with-freetype-libs=${prefix}/lib \
49    --with-gdal=${prefix}/bin/gdal-config \
50    --with-jpeg-includes=${prefix}/include \
51    --with-jpeg-libs=${prefix}/lib \
52    --with-motif \
53    --with-motif-includes=${prefix}/include \
54    --with-motif-libs=${prefix}/lib \
55    --with-png-includes=${prefix}/include \
56    --with-png-libs=${prefix}/lib \
57    --with-proj-includes=${prefix}/include \
58    --with-proj-libs=${prefix}/lib \
59    --with-proj-share=${prefix}/share/proj \
60    --with-tcltk-includes=${prefix}/include \
61    --with-tcltk-libs=${prefix}/lib \
62    --with-cxx \
63    --with-x \
64    --without-postgres \
65    --enable-largefile
66#    --enable-macosx-app
67
68#--with-glw \
69#--with-glw-includes=/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include \
70#--with-glw-libs=/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib
71#-Wl,-dylib_file,/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libGLw.dylib:\
72#                /Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libGLw.dylib
73
74platform darwin 9 {
75configure.ldflags-append \
76    -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
77    /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
78}
79build.target    default
80
81# installs into /opt/local/grass-6.3.0
82#destroot.violate_mtree  yes
83
84variant mysql5 description "Install grass with mysql 5 support" {
85    depends_lib-append    path:bin/mysql_config5:mysql5
86    configure.args-append --with-mysql
87    configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql
88    configure.args-append --with-mysql-libs=${prefix}/lib/mysql5/mysql
89    configure.env-append MYSQLD_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
90}
91
92variant postgresql83 description "Install grass with postgresql 8.3 support" {
93    depends_lib-append    port:postgresql83
94    configure.args-delete --without-postgres
95    configure.args-append --with-postgres
96    configure.args-append --with-postgres-includes=${prefix}/include/postgresql83
97    configure.args-append --with-postgres-libs=${prefix}/lib/postgresql83
98}
99
100variant sqlite3 description "Install grass with sqlite 3 support" {
101    depends_lib-append    port:sqlite3
102    configure.args-append --with-sqlite
103    configure.args-append --with-sqlite-includes=${prefix}/include
104    configure.args-append --with-sqlite-libs=${prefix}/lib
105}
106
Note: See TracBrowser for help on using the repository browser.