Info2: << Package: grass64%type_pkg[gui] Type: gui (-mac -x11) Version: 6.4.3 Revision: 9 Conflicts: grass64, grass64-mac, grass64-x11 Replaces: grass64, grass64-mac, grass64-x11 Description: Powerful GIS software License: GPL Homepage: http://grass.osgeo.org/grass64/ Maintainer:BABA Yoshihiko DescDetail: << Very Powerful Geographical Information System with CLI and GUI. PostgreSQL: 12 Python: 2.7 SQLite: 3 Mac version uses Mac's TclTk. X11 version uses Fink's TclTk and lacks OpenGL/NVIZ support. << DescUsage: << Just type double click GRASS-6.4.app in %p/Applications. << DescPackaging: << dmacks added fix for building with make-3.82. See: http://lists.osgeo.org/pipermail/grass-dev/2012-May/058634.html << # Dependencies. Depends: << %n-shlibs (=%v-%r), readline8-shlibs, (%type_pkg[gui] = -x11) x11-shlibs << BuildDepends: << fink (>= 0.28), fink-package-precedence, freetype219 (>= 2.10.2-1), libncurses5-dev, libiconv-dev, readline8, libgettext8-dev, gettext-tools, fftw3, gdal2-dev, libpng16, libtiff6, libodbc3-dev, szip, xerces-c31-dev, libogdi3, postgresql12-dev, libproj9, proj-bin, nad2bin, python27, sqlite3-dev, (%type_pkg[gui] = -mac) system-tcltk-dev, (%type_pkg[gui] = -x11) tcltk-dev, (%type_pkg[gui] = -x11) x11-dev << # hdf5-18-bin | hdf5-bin, # (%type_raw[gui] = -mac) wxmac28 Source: http://grass.osgeo.org/grass64/source/grass-%v.tar.gz Source-Checksum: SHA256(5d29d322a262330894aa046845e6790258cd6e3f95b28c350ed7839810672ed6) # Patch Phase. # includes dmacks hacking the heck out of some autoconf2.13 cruft PatchFile: %{ni}.patch PatchFile-MD5: 4ea18022ae48f7c813d6d79313fc3ad0 PatchScript: << sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1 perl -pi -e 's|SUBDIRS = icons images scripts xml tcltk wxpython|SUBDIRS = icons images scripts xml tcltk|g' gui/Makefile << # Compile Phase. SetCFLAGS: -MD SetCXXFLAGS: -MD ConfigureParams: << --with-curses \ --with-freetype \ --with-freetype-includes=%p/include/freetype2 \ --with-freetype-libs=%p/lib \ --with-gdal=%p/bin/gdal-config \ --with-proj --with-proj-includes=%p/include --with-proj-libs=%p/lib --with-proj-share=%p/share/proj \ --with-jpeg-includes=%p/include --with-jpeg-libs=%p/lib \ --with-png-includes=%p/include --with-png-libs=%p/lib \ --with-tiff-includes=%p/include --with-tiff-libs=%p/lib \ --with-postgres --with-postgres-includes=%p/opt/postgresql-12/include --with-postgres-libs=%p/opt/postgresql-12/lib \ --without-mysql --with-odbc --with-sqlite \ --with-sqlite-libs=%p/lib --with-sqlite-includes=%p/include \ --with-fftw-includes=%p/include --with-fftw-libs=%p/lib \ --with-cxx --without-motif \ --without-glw \ --with-readline \ --with-python=%p/bin/python2.7-config \ --prefix=%p/Applications \ --enable-macosx-app << CompileScript: << #!/bin/bash -xe # Apple relocated the private headers of the Tcl/Tk framework in darwin12 and reverted this change in darwin13 if [ `uname -r | cut -d. -f1` -eq 12 ] ; then TK_FW_PRIVATE_HDRS="/System/Library/Frameworks/Tk.framework/Headers/tk-private" else TK_FW_PRIVATE_HDRS="/System/Library/Frameworks/Tk.framework/PrivateHeaders" fi if [[ '%type_pkg[gui]' == -x11 ]]; then ./configure %c --with-x \ --with-tcltk-includes=%p/include --with-tcltk-libs=%p/lib --with-opengl=no else ./configure %c --without-x \ --with-tcltk-includes="/System/Library/Frameworks/Tcl.framework/Headers /System/Library/Frameworks/Tk.framework/Headers $TK_FW_PRIVATE_HDRS" --with-tcltk-libs=/usr/lib --with-opengl=aqua '--with-opengl-includes=/System/Library/Frameworks/OpenGL.framework/Headers /System/Library/Frameworks/GLUT.framework/Headers /System/Library/Frameworks/AGL.framework/Headers' # --with-wxwidgets=%p/lib/wx/config/mac-ansi-release-2.8 perl -pi -e "s|^TCLINCDIR|TCLINCDIR = -I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tk.framework/Headers -I$TK_FW_PRIVATE_HDRS #|" include/Make/Platform.make perl -pi -e "s|^TKINCDIR|TKINCDIR = -I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tk.framework/Headers -I$TK_FW_PRIVATE_HDRS #|" include/Make/Platform.make perl -pi -e "s|^TCLTKLIBPATH|TCLTKLIBPATH = -framework Tcl -framework Tk #|" include/Make/Platform.make perl -pi -e "s|^TCLTKLIBS|TCLTKLIBS = #|" include/Make/Platform.make fi # INST_DIR is given to set dylib install name make INST_DIR='%p/Applications/GRASS-6.4.app/Contents/MacOS' mkdir -p %b/Applications/GRASS-6.4.app/Contents/MacOS/share/doc/GRASS-6.4 make install INST_DIR='%b' GISBASE_SYSTEM='%b/lib/GRASS/%v' if [ "%type_raw[gui]" == "-mac" ]; then perl -pi -e "s|MACORX11|/usr|g" %b/Applications/GRASS-6.4.app/Contents/MacOS/grass.sh else perl -pi -e "s|MACORX11|%p|g" %b/Applications/GRASS-6.4.app/Contents/MacOS/grass.sh fi # Recompile python scripts to fix path (because 'make install' is # called with path to staging directory that masks runtime location) for pydir in wxpython python/grass python/grass/script python/grass/lib do %p/bin/python2.7 %p/lib/python2.7/compileall.py -f -d %p/Applications/GRASS-6.4.app/Contents/MacOS/etc/$pydir %b/Applications/GRASS-6.4.app/Contents/MacOS/etc/$pydir %p/bin/python2.7 -O %p/lib/python2.7/compileall.py -f -d %p/Applications/GRASS-6.4.app/Contents/MacOS/etc/$pydir %b/Applications/GRASS-6.4.app/Contents/MacOS/etc/$pydir done for libname in I arraystats bitmap btree cdhc cluster datetime dbmibase dbmiclient dbmidriver dbstubs dgl dig2 display driver dspf edit form g3d gis gmath gpde gproj interpdata interpfl lidar linkm lrs neta pngdriver psdriver qtree raster rli rowio rtree segment shape sim sites sqlp stats symb trans vask vect vedit do install_name_tool -id %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_${libname}.dylib %b/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_${libname}.dylib done if [ "%type_raw[gui]" == "-x11" ]; then for libname in Iortho do install_name_tool -id %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_${libname}.dylib %b/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_${libname}.dylib done fi if [ "%type_raw[gui]" == "-mac" ]; then for libname in nviz ogsf do install_name_tool -id %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_${libname}.dylib %b/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_${libname}.dylib done fi fink-package-precedence --depfile-ext='\.d' --prohibit-bdep=grass64-mac-dev,grass64-mac,grass64-x11-dev,grass64-x11 . << # Install Phase. InstallScript: << #!/bin/sh -xe echo "Nothing to install..." << AppBundles: Applications/GRASS-6.4.app # Additional Phase. SplitOff: << Package: %N-dev Description: GRASS Development Headers Depends: %N-shlibs (= %v-%r) Conflicts: grass64-dev, grass64-mac-dev, grass64-x11-dev Replaces: grass64-dev, grass64-mac-dev, grass64-x11-dev BuildDependsOnly: true Files: Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_*.a << SplitOff2: << Package: %N-shlibs Description: GRASS Shared Libraries Conflicts: grass64-shlibs, grass64-mac-shlibs, grass64-x11-shlibs Replaces: grass64-shlibs, grass64-mac-shlibs, grass64-x11-shlibs Depends: << freetype219-shlibs (>= 2.10.2-1), libncurses5-shlibs, libiconv, fftw3-shlibs, gdal2-shlibs, libgettext8-shlibs, libpng16-shlibs, libtiff6-shlibs, postgresql12-shlibs, libproj9-shlibs, python27-shlibs, sqlite3-shlibs, libodbc3-shlibs, (%type_pkg[gui] = -x11) tcltk-shlibs << # (%type_raw[gui] = -mac) wxmac28-shlibs Files: Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_*.dylib Shlibs: << !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_I.%v.dylib (%type_raw[gui] = -x11) !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_Iortho.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_arraystats.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_bitmap.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_btree.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_cdhc.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_cluster.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_datetime.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dbmibase.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dbmiclient.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dbmidriver.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dbstubs.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dgl.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dig2.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_display.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_driver.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dspf.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_edit.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_form.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_g3d.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gis.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gmath.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gpde.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gproj.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_interpdata.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_interpfl.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_lidar.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_linkm.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_lrs.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_neta.%v.dylib (%type_raw[gui] = -mac) !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_nviz.%v.dylib (%type_raw[gui] = -mac) !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_ogsf.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_pngdriver.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_psdriver.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_qtree.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_raster.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_rli.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_rowio.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_rtree.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_segment.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_shape.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_sim.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_sites.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_sqlp.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_stats.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_symb.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_trans.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_vask.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_vect.%v.dylib !%p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_vedit.%v.dylib %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_I.dylib 6.4.0 %n (>= 6.4.0-1) (%type_raw[gui] = -x11) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_Iortho.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_arraystats.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_bitmap.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_btree.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_cdhc.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_cluster.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_datetime.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dbmibase.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dbmiclient.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dbmidriver.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dbstubs.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dgl.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dig2.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_display.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_driver.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_dspf.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_edit.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_form.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_g3d.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gis.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gmath.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gpde.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gproj.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_interpdata.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_interpfl.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_lidar.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_linkm.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_lrs.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_neta.dylib 6.4.0 %n (>= 6.4.0-1) (%type_raw[gui] = -mac) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_nviz.dylib 6.4.0 %n (>= 6.4.0-1) (%type_raw[gui] = -mac) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_ogsf.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_pngdriver.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_psdriver.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_qtree.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_raster.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_rli.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_rowio.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_rtree.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_segment.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_shape.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_sim.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_sites.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_sqlp.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_stats.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_symb.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_trans.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_vask.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_vect.dylib 6.4.0 %n (>= 6.4.0-1) %p/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_vedit.dylib 6.4.0 %n (>= 6.4.0-1) << << <<