[MacPorts] #28555: gdal-grass build fails to find libraries when grass is Grass 6.4

MacPorts noreply at macports.org
Sat Feb 26 18:24:46 PST 2011


#28555: gdal-grass build fails to find libraries when grass is Grass 6.4
----------------------------------------+-----------------------------------
 Reporter:  macports-trac@…             |       Owner:  macports-tickets@…                   
     Type:  defect                      |      Status:  new                                  
 Priority:  Normal                      |   Milestone:                                       
Component:  ports                       |     Version:  1.9.2                                
 Keywords:                              |        Port:  gdal-grass                           
----------------------------------------+-----------------------------------
 The code in the Portfile to detect the macports installation of Grass 6.4
 as /Applications/GRASS-6.4.app fails, and the flag sent to the configure
 command is actually --with-grass=/opt/local:

 In order to get around the bug where gdal-grass has a false dependence on
 the nonexistent port grass64, I modified the following lines in the
 Portfile
 {{{
 # Select Grass version

 variant grass64 description "Builds against grass64" {
         depends_lib-delete              port:grass
         depends_lib-append              port:grass64

         configure.args-delete   --with-grass=${prefix}/lib

         if {[file exists ${applications_dir}/GRASS-6.4.app]} {
                 configure.args-append   \
                         --with-
 grass=${applications_dir}/GRASS-6.4.app/Contents/MacOS/
         } else {
                 configure.args-append --with-grass=${prefix}
         }
 }

 }}}
 to read

 {{{
 # Select Grass version

 variant grass64 description "Builds against grass64" {

     configure.args-delete       --with-grass=${prefix}

                 configure.args-append   \
                         --with-
 grass=${applications_dir}/GRASS-6.4.app/Contents/MacOS/lib
 }
 }}}

 Even with this modification, configure fails to find Grass to its
 satisfaction.

-- 
Ticket URL: <https://trac.macports.org/ticket/28555>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list