Info2: << Package: qgis17-py%type_pkg[python] Type: python (2.7 2.6) Architecture: powerpc, i386, x86_64 Version: 1.7.4 Revision: 7 Description: User friendly Open Source GIS License: GPL Homepage: http://qgis.org Maintainer: BABA Yoshihiko DescDetail: << Quantum GIS (QGIS) is a Geographic Information System (GIS) that runs on Linux, Unix, Mac OSX, and Windows. QGIS supports vector, raster, and database formats. QGIS is licensed under the GNU Public License. Some of the major features include: 1 Support for spatially enabled PostGIS tables 2 Support for shapefiles, ArcInfo coverages, Mapinfo, and other formats supported by OGR 3 Raster support for a large number of formats 4 Identify features 5 Display attribute tables 6 Select features 7 GRASS Digitizing 8 Feature labeling << DescUsage: << Just double click 'QGIS-py%type_pkg[python]-%v.app' in /Applications/Fink. << # Dependencies. Depends: %n-shlibs (=%v-%r), qgis-plugin-installer-py%type_pkg[python] BuildDepends: << fink (>= 0.28), cmake, bison (>= 2.3), gsl, qt4-base-mac, sip-py%type_pkg[python]-bin (>= 4.13.3-1), xerces-c31-dev, libiconv-dev, giflib, libtiff5, libjpeg9, libogdi3 (>= 3.1.5-1), libpng16, netcdf (>= 3.6.0-1002), cfitsio, unixodbc2-nox (>= 2.2.11-1010) | unixodbc2 (>= 2.2.11-1010), libgeos3.4.2, gdal-dev | gdal-pgsql-dev | gdal-mysql-dev| gdal-pgsql-mysql-dev, postgresql91-dev, proj (>=4), qwt-qt4-mac << # Unpack Phase. Source: http://qgis.org/downloads/qgis-%v.tar.bz2 Source-MD5: ad6e2bd8c5eb0c486939c420af5d8c44 SourceDirectory: qgis-%v # Patch Phase. PatchFile: qgis17-py.patch PatchFile-MD5: 3485c4a3084794c1a1a552b3744c407a # Compile Phase. GCC: 4.0 SetCFLAGS: -fno-common SetLDFLAGS: -liconv CompileScript: << #!/bin/bash -ev # Find Fink's PyQt4 PY_VER=%type_raw[python] perl -pi -e 's|sys.path = \[\\\"\"|sys.path = \[\\\"%p/lib/qt4-mac/lib/python'${PY_VER}'/site-packages\\", \\"\"|' src/python/qgspythonutilsimpl.cpp perl -pi -e 's|\.app|-py%type_pkg[python]-%v.app|' CMakeLists.txt export QTDIR=%p/lib/qt4-mac export PYTHONPATH=%p/lib/qt4-mac/lib/python$PY_VER/site-packages:$PYTHONPATH export PATH=%p/lib/qt4-mac/lib/python$PY_VER/bin:$PATH QGIS_DIR=Applications/QGIS-py%type_pkg[python]-%v.app/Contents QGIS_OPTIONS="-DQGIS_APP_NAME=QGIS-py%type_pkg[python]-%v -DCMAKE_PREFIX_PATH=%p -DEXECUTABLE_OUTPUT_PATH=%b/build/src/mac/Contents/MacOS -DCMAKE_INSTALL_PREFIX=%b/Applications -DCMAKE_BUILD_TYPE=Release -DGDAL_INCLUDE_DIR=%p/include/gdal1 -DGEOS_CONFIG=%p/opt/libgeos3.4.2/bin/geos-config -DQT_BINARY_DIR=%p/lib/qt4-mac/bin -DQT_INCLUDE_DIR=%p/lib/qt4-mac/include -DQT_QMAKE_EXECUTABLE=%p/lib/qt4-mac/bin/qmake -DPYTHON_INCLUDE_PATH=%p/include/python$PY_VER -DPYTHON_LIBRARY=%p/lib/python$PY_VER/config/libpython$PY_VER.dylib -DPYTHON_EXECUTABLE=%p/bin/python$PY_VER -DPYUIC4_PROGRAM=%p/lib/qt4-mac/lib/python$PY_VER/bin/pyuic4 -DSIP_INCLUDE_DIR=%p/include/python$PY_VER -DSIP_BINARY_PATH=%p/bin -DPOSTGRES_CONFIG=%p/bin/pg_config -DQWT_LIBRARY=%p/lib/qt4-mac/lib/libqwt.5.dylib -DQWT_INCLUDE_DIR=%p/lib/qt4-mac/include/qwt/" QGIS_DIR=Applications/QGIS-py%type_pkg[python]-%v.app/Contents mkdir build pushd build cmake $QGIS_OPTIONS \ -DGRASS_PREFIX=%p/Applications/GRASS-6.4.app/Contents/MacOS \ -DQ_WS_WIN:INTERNAL=${Q_WS_WIN} \ -DQ_WS_X11:INTERNAL=${Q_WS_X11} \ -DQ_WS_QWS:INTERNAL=${Q_WS_QWS} \ .. make VERBOSE=1 make install CMAKE_INSTALL_PREFIX=%b SIP_MAC_PATH=%p/bin popd # Fix install names pushd %b/$QGIS_DIR/MacOS/lib install_name_tool -id "%p/$QGIS_DIR/MacOS/lib/libqgis_core.%v.dylib" libqgis_core.%v.dylib install_name_tool -id "%p/$QGIS_DIR/MacOS/lib/libqgis_analysis.%v.dylib" libqgis_analysis.%v.dylib install_name_tool -id "%p/$QGIS_DIR/MacOS/lib/libqgis_gui.%v.dylib" libqgis_gui.%v.dylib install_name_tool -id "%p/$QGIS_DIR/MacOS/lib/libqgispython.%v.dylib" libqgispython.%v.dylib install_name_tool -id "%p/$QGIS_DIR/MacOS/lib/libqgissqlanyconnection.%v.dylib" libqgissqlanyconnection.%v.dylib install_name_tool -id "%p/$QGIS_DIR/MacOS/lib/libqgisgrass.%v.dylib" libqgisgrass.%v.dylib popd # Tell qgis to read Fink's environmental variables pushd %b/$QGIS_DIR/MacOS mv QGIS QGIS.exe echo '#!/bin/sh' >QGIS echo ". %p/bin/init.sh && %p/$QGIS_DIR/MacOS/QGIS.exe" >>QGIS chmod 555 QGIS popd # Plugins are now managed by their own package (e.g. qgis-plugin-ftools) rm -rf %b/$QGIS_DIR/Resources/python/plugins # Workaround to SJIS problem mkdir -p %b/$QGIS_DIR/PlugIns ln -s %p/lib/qt4-mac/plugins/codecs %b/$QGIS_DIR/PlugIns/codecs # Recompile python scripts to fix path (added to 1.6.0) %p/bin/python$PY_VER %p/lib/python$PY_VER/compileall.py -f -d %p/$QGIS_DIR/Resources/python/qgis %b/$QGIS_DIR/Resources/python/qgis %p/bin/python$PY_VER -O %p/lib/python$PY_VER/compileall.py -f -d %p/$QGIS_DIR/Resources/python/qgis %b/$QGIS_DIR/Resources/python/qgis << InstallScript: << ln -s %p/share/qgis/python%type_pkg[python]/plugins %b/Applications/QGIS-py%type_pkg[python]-%v.app/Contents/Resources/python/plugins << AppBundles: Applications/QGIS-py%type_pkg[python]-%v.app SplitOff: << Package: %N-shlibs Description: QGIS Shared Libraries Depends: << qt4-base-mac-qtcore-shlibs, python%type_pkg[python], sip-py%type_pkg[python] (>= 4.13.3-1), pyqt4-mac-py%type_pkg[python] , gsl-shlibs, xerces-c31-shlibs, libgeos3.4.2-shlibs, gdal-shlibs | gdal-pgsql-shlibs | gdal-mysql-shlibs| gdal-pgsql-mysql-shlibs, libspatialite5-shlibs, proj-shlibs (>=4), qwt-qt4-mac-shlibs << Files: << Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgis_analysis.%v.dylib Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgis_core.%v.dylib Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgis_gui.%v.dylib Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgissqlanyconnection.%v.dylib Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgisgrass.%v.dylib Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgispython.%v.dylib << Shlibs: << %p/Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgis_analysis.%v.dylib 1.7.4 %n (>= 1.7.4-1) %p/Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgis_core.%v.dylib 1.7.4 %n (>= 1.7.4-1) %p/Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgis_gui.%v.dylib 1.7.4 %n (>= 1.7.4-1) %p/Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgissqlanyconnection.%v.dylib 1.7.4 %n (>= 1.7.4-1) %p/Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgisgrass.%v.dylib 1.7.4 %n (>= 1.7.4-1) %p/Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/lib/libqgispython.%v.dylib 1.7.4 %n (>= 1.7.4-1) << #End of SplitOff << SplitOff2: << Package: %N-dev Depends: %N-shlibs (=%v-%r) BuildDependsOnly: true Description: QGIS Headers Files: Applications/QGIS-py%type_pkg[python]-%v.app/Contents/MacOS/include << DescPackaging: << Since 1.7.0, 1. qgis has Python variants, e.g. qgis17-py31 and qgis17-py27. 2. separates all the python plugins as independent packages. Not compatible: qwt6 << DescPort: << See http://wiki.qgis.org/qgiswiki/BuildingFromSource See the flags in SetXXXX and CompileScript as well as the patch for details. << # End of Info2 <<