1#!/bin/sh 2 3# Copyright (C) 2000-2019 The Xastir Group 4# <http://gdal.org/> 5 6# Compile gdal-1.3.2b2 under Linux Standard Base 3.0. Install into 7# /opt/lsb-tmp/ directory structure. 8 9# NOTE: 10# "Free Standards Group, FSG, Linux Standard Base, LSB, Free 11# Standards Certified, LSB Certified and the Free Standards 12# Certified logo are trademarks, service marks and certification 13# marks, as appropriate, of Free Standards Group in the United 14# States and in other countries." 15# 16# We are in no way representing that Xastir has been certified by 17# the FSG. To do so costs real money. We do intend some Xastir 18# binaries to install and run properly on LSB-3.0 compliant x86 19# Linux systems though... 20# 21 22 23export PATH=${PATH}:/opt/lsb/bin 24export LSBCC_WARN=1 25 26# A colon-separated list of "extra" shared libraries to link with 27# the application. Each shared lib must be LSB-compliant and must 28# be distributed along with the application. 29#export LSBCC_SHAREDLIBS= 30 31# Change "export *" to "const std::exception &e" 32sed -i -e 's/exception\*/const std::exception \&e/g' frmts/ilwis/ilwisdataset.cpp 33 34CC=lsbcc CXX=lsbc++ ./configure \ 35 --prefix=/opt/lsb-gdal \ 36 --exec_prefix=/opt/lsb-gdal \ 37 --oldincludedir=/opt/lsb/include \ 38 --disable-shared \ 39 --without-ld-shared \ 40 --enable-static \ 41 --with-static-proj4 \ 42 --with-threads \ 43 --without-pcraster \ 44 --without-pg \ 45 --without-python \ 46 --without-ngpyton \ 47 --without-netcdf \ 48 --without-png \ 49 --without-jpeg \ 50 --without-gif \ 51 --without-jasper \ 52 --without-perl \ 53 --without-libz 54 55# --without-libtiff \ 56# --without-geotiff \ 57# --without-libtool \ 58 59make clean 60 61find . -type f -name Makefile -print | while read i 62 do 63 sed -i 's@/usr/include@/opt/lsb/include@g' $i 64 sed -i 's@/usr/local/include@/opt/lsb/include@g' $i 65 sed -i 's@/usr/X11R6/include@/opt/lsb/include@g' $i 66 sed -i 's@/usr/lib@/opt/lsb/lib@g' $i 67 sed -i 's@/usr/local/lib@/opt/lsb/lib@g' $i 68 sed -i 's@/usr/X11R6/lib@/opt/lsb/lib@g' $i 69 sed -i 's@/usr/X11/lib@/opt/lsb/lib@g' $i 70 done 71 72sed -i 's@/usr/lib@/opt/lsb/lib@g' libgdal.la 73sed -i 's@/usr/local/lib@/opt/lsb/lib@g' libgdal.la 74 75(make 2>&1) | tee make.log 76 77#make -n install 78#(sudo make install 2>&1) | tee install.log 79 80 81