wok-next annotate gdal/receipt @ rev 20577
More fix libtool
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 03:34:33 2018 +0300 (2018-04-14) |
parents | 5baa3b6a24e7 |
children | a3c581bf52b8 |
rev | line source |
---|---|
pascal@20031 | 1 # SliTaz package receipt v2. |
pascal@11640 | 2 |
pascal@11640 | 3 PACKAGE="gdal" |
pascal@20031 | 4 VERSION="2.2.2" |
erjo@11646 | 5 CATEGORY="meta" |
al@20513 | 6 SHORT_DESC="Geospatial Data Abstraction Library" |
pascal@11640 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15215 | 8 LICENSE="MIT" |
pascal@11640 | 9 WEB_SITE="http://www.gdal.org/" |
al@20513 | 10 |
pascal@20031 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@20031 | 12 WGET_URL="http://download.osgeo.org/gdal/$VERSION/$TARBALL" |
pascal@11640 | 13 |
erjo@11646 | 14 BUILD_DEPENDS="python-dev postgresql-dev geos-dev proj-dev curl-dev \ |
pascal@20031 | 15 swig tiff-dev jasper-dev jpeg-dev perl-dev" |
al@20513 | 16 SPLIT="gdal gdal-dev gdal-bin gdal-datas libgdal" |
pascal@11640 | 17 |
al@20568 | 18 COOKOPTS="skip-log-errors" |
al@20568 | 19 |
al@20513 | 20 compile_rules() { |
al@20570 | 21 # fix math |
al@20513 | 22 ./configure \ |
erjo@11646 | 23 --datadir=/usr/share/gdal \ |
erjo@11646 | 24 --with-threads \ |
erjo@11646 | 25 --with-perl \ |
erjo@11646 | 26 --with-python \ |
erjo@11646 | 27 --with-geos \ |
erjo@11646 | 28 --with-sqlite3=no \ |
al@20513 | 29 --with-ogr && |
al@20570 | 30 fix libtool && |
al@20534 | 31 make && |
al@20534 | 32 make install BINDINGS="perl python" |
pascal@11640 | 33 } |
pascal@11640 | 34 |
al@20513 | 35 genpkg_rules() { |
pascal@20031 | 36 case $PACKAGE in |
al@20513 | 37 gdal) |
al@20513 | 38 DEPENDS="libgdal gdal-bin gdal-datas" |
al@20513 | 39 ;; |
al@20513 | 40 gdal-dev) |
al@20513 | 41 copy @dev |
al@20513 | 42 DEPENDS="libgdal" |
al@20513 | 43 ;; |
al@20513 | 44 gdal-bin) |
al@20513 | 45 copy bin/ @rm # remove dev gdal-config |
al@20513 | 46 CAT="misc|tools" |
al@20513 | 47 DEPENDS="libgdal" |
al@20513 | 48 ;; |
al@20513 | 49 gdal-datas) |
al@20513 | 50 copy usr/share/gdal/ |
al@20513 | 51 CAT="misc|datas" |
al@20513 | 52 DEPENDS="libgdal" |
al@20513 | 53 ;; |
al@20513 | 54 libgdal) |
al@20513 | 55 copy *.so* |
al@20513 | 56 CAT="misc|library" |
al@20513 | 57 DEPENDS="geos proj libcurl jasper libpostgresqlclient tiff" |
al@20513 | 58 ;; |
pascal@20031 | 59 esac |
pascal@11640 | 60 } |