Permalink
Browse files
qgis3: Introduce grass_version variable
- Loading branch information
Showing
with
9 additions
and
4 deletions.
-
+7
−2
gis/qgis3/Portfile
-
+2
−2
gis/qgis3/files/patch-app_info_plist_in.diff
|
|
@@ -193,10 +193,15 @@ eval ${python_default} |
|
|
variant grass description "Build Grass 7 plugin" { |
|
|
|
|
|
depends_lib-append port:grass7 |
|
|
global grass_version |
|
|
set grass_version 7.2.2 |
|
|
post-patch { |
|
|
reinplace "s|@GRASS_VERSION@|${grass_version}|g" \ |
|
|
${worksrcpath}/mac/app.info.plist.in |
|
|
} |
|
|
configure.args-delete "-DWITH_GRASS7=OFF" |
|
|
configure.args-append "-DWITH_GRASS7=ON" |
|
|
configure.args-append \ |
|
|
"-DGRASS_PREFIX7=${prefix}/share/grass-7.2.2" |
|
|
configure.args-append -DGRASS_PREFIX7=${prefix}/share/grass-${grass_version} |
|
|
} |
|
|
|
|
|
# Configure steps |
|
|
|
|
|
@@ -13,9 +13,9 @@ |
|
|
+ <key>GRASS_PROJSHARE</key> |
|
|
+ <string>@PREFIX@/share/proj</string> |
|
|
+ <key>GRASS_VERSION</key> |
|
|
+ <string>7.2.2</string> |
|
|
+ <string>@GRASS_VERSION@</string> |
|
|
+ <key>GRASS_LD_LIBRARY_PATH</key> |
|
|
+ <string>@PREFIX@/share/grass-7.2.2/lib</string> |
|
|
+ <string>@PREFIX@/share/grass-@GRASS_VERSION@/lib</string> |
|
|
+ <key>GRASS_PERL</key> |
|
|
+ <string>@PREFIX@/bin/perl</string> |
|
|
+ </dict> |
|
|
|