Ticket #16238: Portfile.grass

File Portfile.grass, 3.2 KB (added by mf2k (Frank Schima), 16 years ago)
Line 
1# $Id$
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:geos \
23                  port:jpeg \
24                  port:libpng \
25                  port:openmotif \
26                  port:proj
27
28patchfiles        patch-Makefile.diff \
29                  patch-configure.diff
30
31configure.ldflags -framework OpenGL
32configure.args \
33    --prefix=${prefix} \
34    --with-gdal=${prefix}/bin/gdal-config \
35    --without-postgres \
36    --with-proj-includes=${prefix}/include \
37    --with-proj-libs=${prefix}/lib \
38    --with-proj-share=${prefix}/share/proj \
39    --with-jpeg-includes=${prefix}/include \
40    --with-jpeg-libs=${prefix}/lib \
41    --with-png-includes=${prefix}/include \
42    --with-png-libs=${prefix}/lib \
43    --with-fftw-includes=${prefix}/include \
44    --with-fftw-libs=${prefix}/lib \
45    --with-freetype \
46    --with-freetype-includes=${prefix}/include/freetype2 \
47    --with-freetype-libs=${prefix}/lib \
48    --with-tcltk-includes=${prefix}/include \
49    --with-tcltk-libs=${prefix}/lib \
50    --with-motif \
51    --with-motif-includes=${prefix}/include \
52    --with-motif-libs=${prefix}/lib \
53    --with-cxx \
54    --with-x \
55    --enable-largefile
56#    --enable-macosx-app
57
58#--with-glw \
59#--with-glw-includes=/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include \
60#--with-glw-libs=/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib
61#-Wl,-dylib_file,/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libGLw.dylib:\
62#                /Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libGLw.dylib
63
64platform darwin 9 {
65configure.ldflags-append \
66    -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
67    /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
68}
69build.target    default
70
71# Can be removed once MacPorts 1.7.0 is released
72if {![info exists applications_dir]} {
73    set applications_dir /Applications/MacPorts
74}
75
76# installs into /opt/local/grass-6.3.0
77#destroot.violate_mtree  yes
78
79variant mysql5 description "Install grass with mysql 5 support" {
80  depends_lib-append    port:mysql5
81  configure.args-append --with-mysql
82  configure.args-append --with-mysql-includes=${prefix}/include
83  configure.args-append --with-mysql-libs=${prefix}/lib
84}
85
86variant postgresql83 description "Install grass with postgresql 8.3 support" {
87  depends_lib-append    port:postgresql83
88  configure.args-delete --without-postgres
89  configure.args-append --with-postgres
90  configure.args-append --with-postgres-includes=${prefix}/include
91  configure.args-append --with-postgres-libs=${prefix}/lib
92}
93
94variant sqlite3 description "Install grass with sqlite 3 support" {
95  depends_lib-append    port:sqlite3
96  configure.args-append --with-sqlite
97  configure.args-append --with-sqlite-includes=${prefix}/include
98  configure.args-append --with-sqlite-libs=${prefix}/lib
99}
100