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

Last change on this file since 95357 was 95357, checked in by jmr@…, 7 years ago

grass: add ticket reference

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.0 KB
Line 
1# $Id: Portfile 95357 2012-07-10 18:05:53Z jmr@macports.org $
2
3PortSystem 1.0
4
5name              grass
6epoch             1
7version           6.4.0
8revision          2
9maintainers       nomaintainer
10categories        gis
11license           GPL-2+
12platforms         darwin
13
14description       GRASS
15long_description  GRASS is a Geographic Information System (GIS) used for \
16                  geospatial data management and analysis.
17
18homepage          http://grass.osgeo.org/
19master_sites      ${homepage}grass[join [lrange [split ${version} .] 0 1] {}]/source/
20
21checksums         sha1    c91e8501c7a756a94d2be47729f640d33b2a7468 \
22                  rmd160  b0bd2d2ce048a5f10f345786bc81fa4bd22df019
23
24depends_build     port:pkgconfig
25depends_lib       port:fftw-3 \
26                  port:freetype \
27                  port:gdal \
28                  port:geos \
29                  port:jpeg \
30                  port:libpng \
31                  port:mesa \
32                  lib:libXm:openmotif \
33                  port:proj47 \
34                  port:tk \
35                  path:lib/pkgconfig/cairo.pc:cairo \
36                  port:readline
37
38use_parallel_build yes
39
40# https://trac.macports.org/ticket/32790
41# this should probably only apply to some Xcode versions
42compiler.blacklist  clang
43
44patchfiles \
45    patch-Makefile.diff \
46    patch-configure.diff \
47    patch-macosx_Makefile.diff
48
49post-patch {
50   reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" \
51      ${worksrcpath}/configure
52}
53
54configure.ldflags-append -framework OpenGL -framework Accelerate
55configure.args \
56    --with-fftw-includes=${prefix}/include \
57    --with-fftw-libs=${prefix}/lib \
58    --with-freetype \
59    --with-freetype-includes=${prefix}/include/freetype2 \
60    --with-freetype-libs=${prefix}/lib \
61    --with-gdal=${prefix}/bin/gdal-config \
62    --with-jpeg-includes=${prefix}/include \
63    --with-jpeg-libs=${prefix}/lib \
64    --with-motif \
65    --with-motif-includes=${prefix}/include \
66    --with-motif-libs=${prefix}/lib \
67    --with-png-includes=${prefix}/include \
68    --with-png-libs=${prefix}/lib \
69    --with-proj-includes=${prefix}/lib/proj47/include \
70    --with-proj-libs=${prefix}/lib/proj47/lib \
71    --with-proj-share=${prefix}/lib/proj47/share/proj \
72    --with-tcltk-includes=${prefix}/include \
73    --with-tcltk-libs=${prefix}/lib \
74    --with-cxx \
75    --with-x \
76    --without-postgres \
77    --enable-largefile \
78    --with-cairo \
79    --with-cairo-includes=${prefix}/include/cairo \
80    --with-cairo-libs=${prefix}/lib \
81    --with-blas \
82    --with-lapack \
83    --with-readline \
84    --with-readline-includes=${prefix}/include/readline \
85    --with-readline-libs=${prefix}/lib \
86    --with-regex-includes=/usr/include \
87    --with-regex-lib=/usr/lib
88
89build.target    default
90
91variant mysql5 description {Add MySQL 5 support} {
92    depends_lib-append    path:bin/mysql_config5:mysql5
93    configure.args-append --with-mysql
94    configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql
95    configure.args-append --with-mysql-libs=${prefix}/lib/mysql5/mysql
96    configure.env-append MYSQLD_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
97}
98
99variant postgresql83 conflicts postgresql84 postgresql90 description {Add PostgreSQL 8.3 support} {
100    depends_lib-append    port:postgresql83
101    configure.args-delete --without-postgres
102    configure.args-append --with-postgres
103    configure.args-append --with-postgres-includes=${prefix}/include/postgresql83
104    configure.args-append --with-postgres-libs=${prefix}/lib/postgresql83
105}
106
107variant postgresql84 conflicts postgresql83 postgresql90 description {Add PostgreSQL 8.4 support} {
108    depends_lib-append    port:postgresql84
109    configure.args-delete --without-postgres
110    configure.args-append --with-postgres
111    configure.args-append --with-postgres-includes=${prefix}/include/postgresql84
112    configure.args-append --with-postgres-libs=${prefix}/lib/postgresql84
113}
114
115variant postgresql90 conflicts postgresql83 postgresql84 description {Add PostgreSQL 9.0 support} {
116    depends_lib-append    port:postgresql90
117    configure.args-delete --without-postgres
118    configure.args-append --with-postgres
119    configure.args-append --with-postgres-includes=${prefix}/include/postgresql90
120    configure.args-append --with-postgres-libs=${prefix}/lib/postgresql90
121}
122
123variant sqlite3 description {Add SQLite 3 support} {
124    depends_lib-append    port:sqlite3
125    configure.args-append --with-sqlite
126    configure.args-append --with-sqlite-includes=${prefix}/include
127    configure.args-append --with-sqlite-libs=${prefix}/lib
128}
129
130variant ffmpeg description {Add ffmpeg support} {
131    depends_lib-append    port:ffmpeg
132    configure.args-append --with-ffmpeg \
133                          --with-ffmpeg-includes=\"${prefix}/include/libavcodec  \
134                                                   ${prefix}/include/libavformat \
135                                                   ${prefix}/include/libswscale\" \
136                          --with-ffmpeglibs=${prefix}/lib
137}
138
139livecheck.type      regex
140livecheck.url       http://grass.osgeo.org/devel/svntags.php
141livecheck.regex     {GRASS ([0-9.]+):}
Note: See TracBrowser for help on using the repository browser.