Changeset 134504


Ignore:
Timestamp:
Mar 27, 2015, 7:54:27 PM (4 years ago)
Author:
mojca@…
Message:

grass: whitespace only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gis/grass/Portfile

    r133984 r134504  
     1# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2
    12# $Id$
    23
    3 PortSystem        1.0
    4 PortGroup         wxWidgets 1.0
    5 PortGroup         active_variants 1.1
    6 
    7 name              grass
    8 version           6.4.3
    9 revision          5
    10 epoch             1
    11 maintainers       nomaintainer
    12 categories        gis
    13 license           GPL-2+
    14 platforms         darwin
    15 
    16 description       GRASS
    17 long_description  GRASS is a Geographic Information System (GIS) used for \
    18                   geospatial data management and analysis.
    19 
    20 homepage          http://grass.osgeo.org/
    21 master_sites      ${homepage}grass[join [lrange [split ${version} .] 0 1] {}]/source/
    22 
    23 checksums         rmd160  bdbd671972730701aa8213c2041abe31a68eea4c \
    24                   sha256  5d29d322a262330894aa046845e6790258cd6e3f95b28c350ed7839810672ed6
    25 
    26 depends_build     port:pkgconfig
    27 depends_lib       port:fftw-3 \
    28                   port:freetype \
    29                   port:gdal \
    30                   port:geos \
    31                   port:jpeg \
    32                   port:libpng \
    33                   port:mesa \
    34                   lib:libXm:openmotif \
    35                   port:proj47 \
    36                   port:tk \
    37                   path:lib/pkgconfig/cairo.pc:cairo \
    38                   port:readline
     4PortSystem          1.0
     5PortGroup           wxWidgets 1.0
     6PortGroup           active_variants 1.1
     7
     8name                grass
     9version             6.4.3
     10revision            5
     11epoch               1
     12maintainers         nomaintainer
     13categories          gis
     14license             GPL-2+
     15platforms           darwin
     16
     17description         GRASS
     18long_description    GRASS is a Geographic Information System (GIS) used for \
     19                    geospatial data management and analysis.
     20
     21homepage            http://grass.osgeo.org/
     22master_sites        ${homepage}grass[join [lrange [split ${version} .] 0 1] {}]/source/
     23
     24checksums           rmd160  bdbd671972730701aa8213c2041abe31a68eea4c \
     25                    sha256  5d29d322a262330894aa046845e6790258cd6e3f95b28c350ed7839810672ed6
     26
     27depends_build       port:pkgconfig
     28depends_lib         port:fftw-3 \
     29                    port:freetype \
     30                    port:gdal \
     31                    port:geos \
     32                    port:jpeg \
     33                    port:libpng \
     34                    port:mesa \
     35                    lib:libXm:openmotif \
     36                    port:proj47 \
     37                    port:tk \
     38                    path:lib/pkgconfig/cairo.pc:cairo \
     39                    port:readline
    3940
    4041# https://trac.macports.org/ticket/32790
     
    4243# compiler.blacklist  *clang*
    4344
    44 patchfiles \
    45     patch-configure.diff \
    46     patch-gui-wxpython-core-globalvar.py.diff \
    47     patch-gui-wxpython-gui_core-ghelp.py.diff \
    48     patch-is_void.diff \
    49     patch-lib-init-grass.src.diff \
    50     patch-macosx_Makefile.diff \
    51     patch-Makefile.diff \
    52     patch-ffmpeg.diff
     45patchfiles          patch-configure.diff \
     46                    patch-gui-wxpython-core-globalvar.py.diff \
     47                    patch-gui-wxpython-gui_core-ghelp.py.diff \
     48                    patch-is_void.diff \
     49                    patch-lib-init-grass.src.diff \
     50                    patch-macosx_Makefile.diff \
     51                    patch-Makefile.diff \
     52                    patch-ffmpeg.diff
    5353
    5454post-patch {
     
    246246
    247247variant mysql5 description {Add MySQL 5 support} {
    248     depends_lib-append    path:bin/mysql_config5:mysql5
    249     configure.args-append --with-mysql
    250     configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql
    251     configure.args-append --with-mysql-libs=${prefix}/lib/mysql5/mysql
    252     configure.env-append  MYSQLD_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
     248    depends_lib-append      path:bin/mysql_config5:mysql5
     249    configure.args-append   --with-mysql
     250    configure.args-append   --with-mysql-includes=${prefix}/include/mysql5/mysql
     251    configure.args-append   --with-mysql-libs=${prefix}/lib/mysql5/mysql
     252    configure.env-append    MYSQLD_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
    253253}
    254254
    255255variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 description {Add PostgreSQL 8.3 support} {
    256     depends_lib-append    port:postgresql83
    257     configure.args-delete --without-postgres
    258     configure.args-append --with-postgres
    259     configure.args-append --with-postgres-includes=${prefix}/include/postgresql83
    260     configure.args-append --with-postgres-libs=${prefix}/lib/postgresql83
     256    depends_lib-append      port:postgresql83
     257    configure.args-delete   --without-postgres
     258    configure.args-append   --with-postgres
     259    configure.args-append   --with-postgres-includes=${prefix}/include/postgresql83
     260    configure.args-append   --with-postgres-libs=${prefix}/lib/postgresql83
    261261}
    262262
    263263variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 postgresql92 postgresql93 description {Add PostgreSQL 8.4 support} {
    264     depends_lib-append    port:postgresql84
    265     configure.args-delete --without-postgres
    266     configure.args-append --with-postgres
    267     configure.args-append --with-postgres-includes=${prefix}/include/postgresql84
    268     configure.args-append --with-postgres-libs=${prefix}/lib/postgresql84
     264    depends_lib-append      port:postgresql84
     265    configure.args-delete   --without-postgres
     266    configure.args-append   --with-postgres
     267    configure.args-append   --with-postgres-includes=${prefix}/include/postgresql84
     268    configure.args-append   --with-postgres-libs=${prefix}/lib/postgresql84
    269269}
    270270
    271271variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 postgresql92 postgresql93 description {Add PostgreSQL 9.0 support} {
    272     depends_lib-append    port:postgresql90
    273     configure.args-delete --without-postgres
    274     configure.args-append --with-postgres
    275     configure.args-append --with-postgres-includes=${prefix}/include/postgresql90
    276     configure.args-append --with-postgres-libs=${prefix}/lib/postgresql90
     272    depends_lib-append      port:postgresql90
     273    configure.args-delete   --without-postgres
     274    configure.args-append   --with-postgres
     275    configure.args-append   --with-postgres-includes=${prefix}/include/postgresql90
     276    configure.args-append   --with-postgres-libs=${prefix}/lib/postgresql90
    277277}
    278278
    279279variant postgresql91 conflicts postgresql83 postgresql84 postgresql90 postgresql92 postgresql93 description {Add PostgreSQL 9.1 support} {
    280     depends_lib-append    port:postgresql91
    281     configure.args-delete --without-postgres
    282     configure.args-append --with-postgres
    283     configure.args-append --with-postgres-includes=${prefix}/include/postgresql91
    284     configure.args-append --with-postgres-libs=${prefix}/lib/postgresql91
     280    depends_lib-append      port:postgresql91
     281    configure.args-delete   --without-postgres
     282    configure.args-append   --with-postgres
     283    configure.args-append   --with-postgres-includes=${prefix}/include/postgresql91
     284    configure.args-append   --with-postgres-libs=${prefix}/lib/postgresql91
    285285}
    286286
    287287variant postgresql92 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql93 description {Add PostgreSQL 9.2 support} {
    288     depends_lib-append    port:postgresql92
    289     configure.args-delete --without-postgres
    290     configure.args-append --with-postgres
    291     configure.args-append --with-postgres-includes=${prefix}/include/postgresql92
    292     configure.args-append --with-postgres-libs=${prefix}/lib/postgresql92
     288    depends_lib-append      port:postgresql92
     289    configure.args-delete   --without-postgres
     290    configure.args-append   --with-postgres
     291    configure.args-append   --with-postgres-includes=${prefix}/include/postgresql92
     292    configure.args-append   --with-postgres-libs=${prefix}/lib/postgresql92
    293293}
    294294
    295295variant postgresql93 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 description {Add PostgreSQL 9.3 support} {
    296     depends_lib-append    port:postgresql93
    297     configure.args-delete --without-postgres
    298     configure.args-append --with-postgres
    299     configure.args-append --with-postgres-includes=${prefix}/include/postgresql93
    300     configure.args-append --with-postgres-libs=${prefix}/lib/postgresql93
     296    depends_lib-append      port:postgresql93
     297    configure.args-delete   --without-postgres
     298    configure.args-append   --with-postgres
     299    configure.args-append   --with-postgres-includes=${prefix}/include/postgresql93
     300    configure.args-append   --with-postgres-libs=${prefix}/lib/postgresql93
    301301}
    302302
    303303variant sqlite3 description {Add SQLite 3 support} {
    304     depends_lib-append    port:sqlite3
    305     configure.args-append --with-sqlite
    306     configure.args-append --with-sqlite-includes=${prefix}/include
    307     configure.args-append --with-sqlite-libs=${prefix}/lib
     304    depends_lib-append      port:sqlite3
     305    configure.args-append   --with-sqlite
     306    configure.args-append   --with-sqlite-includes=${prefix}/include
     307    configure.args-append   --with-sqlite-libs=${prefix}/lib
    308308}
    309309
    310310variant ffmpeg description {Add ffmpeg support} {
    311     depends_lib-append    path:lib/libavcodec.dylib:ffmpeg
    312     configure.args-append --with-ffmpeg \
    313                           --with-ffmpeg-includes=\"${prefix}/include/libavcodec  \
    314                                                    ${prefix}/include/libavformat \
    315                                                    ${prefix}/include/libswscale\" \
    316                           --with-ffmpeglibs=${prefix}/lib
     311    depends_lib-append      path:lib/libavcodec.dylib:ffmpeg
     312    configure.args-append   --with-ffmpeg \
     313                            --with-ffmpeg-includes=\"${prefix}/include/libavcodec  \
     314                                                     ${prefix}/include/libavformat \
     315                                                     ${prefix}/include/libswscale\" \
     316                            --with-ffmpeglibs=${prefix}/lib
    317317}
    318318
     
    320320# once support for wxWidgets 3.0 is complete, support for Python 2.6 may be removed
    321321variant python26 conflicts python27 description {} {
    322     depends_lib-append    port:python26
    323     set python_bin        ${frameworks_dir}/Python.framework/Versions/2.6/bin/python2.6
    324     #                     Enable support for wxGUI Python extensions
    325     #                     (by removing this we wouldn't need to depend on py-wxpython-x.y)
    326     configure.args-append --with-python=${frameworks_dir}/Python.framework/Versions/2.6/bin/python2.6-config
    327     build.args-append     PYTHON=${python_bin}
     322    depends_lib-append      port:python26
     323    set python_bin          ${frameworks_dir}/Python.framework/Versions/2.6/bin/python2.6
     324    #                       Enable support for wxGUI Python extensions
     325    #                       (by removing this we wouldn't need to depend on py-wxpython-x.y)
     326    configure.args-append   --with-python=${frameworks_dir}/Python.framework/Versions/2.6/bin/python2.6-config
     327    build.args-append       PYTHON=${python_bin}
    328328    # TODO: this port doesn't work with the python portgroup because the group changes too much
    329329    # but it would make sense to fix this in such a way that python_bin could be determined automatically
     
    340340
    341341variant python27 conflicts python26 description {} {
    342     depends_lib-append    port:python27
    343     set python_bin        ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
    344     configure.args-append --with-python=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7-config
    345     build.args-append     PYTHON=${python_bin}
     342    depends_lib-append      port:python27
     343    set python_bin          ${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7
     344    configure.args-append   --with-python=${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7-config
     345    build.args-append       PYTHON=${python_bin}
    346346
    347347    post-patch {
     
    358358#       grass 4.6.3 is not compatible with wxWidgets 3.0 yet
    359359variant wxwidgets30 conflicts wxwidgets28 wxgtk28 description {Use Cocoa-based wxWidgets 3.0 (experimental)} {
    360     wxWidgets.use         wxPython-3.0
    361     depends_lib-append    port:${wxWidgets.port}
    362     configure.args-append --with-wxwidgets=${wxWidgets.wxconfig}
     360    wxWidgets.use           wxPython-3.0
     361    depends_lib-append      port:${wxWidgets.port}
     362    configure.args-append   --with-wxwidgets=${wxWidgets.wxconfig}
    363363}
    364364variant wxwidgets28 conflicts wxwidgets30 wxgtk28 description {Use Carbon-based wxWidgets 2.8} {
    365365    # untested (might not work)
    366     wxWidgets.use         wxWidgets-2.8
    367     depends_lib-append    port:${wxWidgets.port}
    368     configure.args-append --with-wxwidgets=${wxWidgets.wxconfig}
     366    wxWidgets.use           wxWidgets-2.8
     367    depends_lib-append      port:${wxWidgets.port}
     368    configure.args-append   --with-wxwidgets=${wxWidgets.wxconfig}
    369369}
    370370variant wxgtk28 conflicts wxwidgets30 wxwidgets28 description {Use GTK-based wxWidgets 2.8} {
    371     wxWidgets.use         wxGTK-2.8
    372     depends_lib-append    port:${wxWidgets.port}
    373     configure.args-append --with-wxwidgets=${wxWidgets.wxconfig}
     371    wxWidgets.use           wxGTK-2.8
     372    depends_lib-append      port:${wxWidgets.port}
     373    configure.args-append   --with-wxwidgets=${wxWidgets.wxconfig}
    374374}
    375375
Note: See TracChangeset for help on using the changeset viewer.