Skip to content

Commit

Permalink
gdal: Install only the includes and lib
Browse files Browse the repository at this point in the history
GDAL - Geospatial Data Abstraction Library, the name is legion.

Actually we don't really need it in a biologicial context, or?
  • Loading branch information
thomas authored and donald committed Sep 10, 2018
1 parent cdc4a5f commit 3197367
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions gdal.be0
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


###############################################################################
##
Expand Down

0 comments on commit 3197367

Please sign in to comment.