diff --git a/gdal.be0 b/gdal.be0 index 7b88bcdf0..793d0aa32 100755 --- a/gdal.be0 +++ b/gdal.be0 @@ -53,20 +53,35 @@ build_in_sourcedir # bee_patch "${@}" #} +export CXXFLAGS='-fPIC -O2' +export CFLAGS='-fPIC -O2' + mee_configure() { - #bee_configure # some other packages expect /usr/include/gdal - its a mess anyway, we dont want it in /usr/include - ./configure --prefix=/usr --includedir=/usr/include/gdal + bee_configure --includedir=/usr/include/gdal --enable-shared=no } #mee_build() { # bee_build #} -#mee_install() { -# bee_install -#} -## by default this may be 'make install DESTDIR="${D}"' +# Install the whole package (incl. useless binaries, icons, bash completion, ...) in a +# temporary location: +mee_install() { + make install DESTDIR=${D}/cruft +} + +mee_install_post() { + mkdir -p ${D}/usr/bin + mv --verbose ${D}/cruft/usr/bin/gdal-config ${D}/usr/bin + mv --verbose ${D}/cruft/usr/include ${D}/usr + rmdir --verbose ${D}/cruft/usr/lib/gdalplugins + mv --verbose ${D}/cruft/usr/lib ${D}/usr + + # Remove cruft: + rm -rf ${D}/cruft +} + ############################################################################### ##