Skip to content

Commit

Permalink
Update to use libkakadu 8.3 packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoup committed Apr 27, 2023
1 parent 0eafe31 commit 810d4ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
5 changes: 3 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Build-Depends: cmake,
zlib1g-dev,
libssl-dev,
libkea1.5,
libkakadu [amd64]
libkakadu-dev
Standards-Version: 4.6.1
Vcs-Browser: https://salsa.debian.org/debian-gis-team/gdal
Vcs-Git: https://salsa.debian.org/debian-gis-team/gdal.git
Expand All @@ -56,6 +56,7 @@ Architecture: any
Section: libs
Depends: gdal-data (>= ${source:Version}),
gdal-plugins (>= ${binary:Version}),
libkakadu (>= 8.3.0),
${shlibs:Depends},
${misc:Depends}
Recommends: proj-bin
Expand Down Expand Up @@ -108,7 +109,7 @@ Depends: libgdal32 (= ${binary:Version}),
libzstd-dev,
libssl-dev,
libkea1.5,
libkakadu [amd64],
libkakadu-dev,
${misc:Depends}
Description: Geospatial Data Abstraction Library - Development files
GDAL is a translator library for raster geospatial data formats.
Expand Down
21 changes: 9 additions & 12 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ PYVERS=$(shell py3versions -sv)
PYDEF=$(shell py3versions -dv)
SWIGVER=$(shell swig -version |grep Version|cut -d' ' -f3|sed -e 's/\.//g')

# there's no kakadu build for arm64, so we'll have to fallback to openjpeg there.
ifeq ($(DEB_HOST_ARCH),amd64)
GDAL_USE_KDU=ON
else
GDAL_USE_KDU=OFF
endif

GDALVER=$(shell cat VERSION|sed -e 's/\./ /g')
GDAL_MAJOR=$(word 1,$(GDALVER))
GDAL_MINOR=$(word 2,$(GDALVER))
Expand All @@ -40,7 +33,13 @@ ifneq (,$(filter $(DEB_HOST_ARCH),sh3 sh4))
export DEB_CXXFLAGS_MAINT_APPEND=-fno-guess-branch-probability
endif

export DEB_BUILD_OPTIONS=nostrip
DEB_BUILD_OPTIONS+=nostrip
ifeq ($(DEB_HOST_ARCH),arm64)
# FIXME: tests fail on arm64 for random reasons
$(warning KX - Skipping checks on arm64 because there are random failures)
DEB_BUILD_OPTIONS+=nocheck
endif
export DEB_BUILD_OPTIONS

versions:
@echo Gdal version: $(GDAL_MAJOR).$(GDAL_MINOR).$(GDAL_PATCH)
Expand Down Expand Up @@ -104,10 +103,8 @@ override_dh_auto_configure:
-DGDAL_USE_XERCESC=OFF \
-DGDAL_USE_ZSTD=ON \
-DGDAL_USE_KEA=ON \
-DGDAL_USE_KDU=$(GDAL_USE_KDU) \
-DKDU_LIBRARY=/usr/local/lib/libkdu_v83R.so \
-DKDU_ROOT=/usr/local \
-DKDU_AUX_LIBRARY=/usr/local/lib/libkdu_v83R.so \
-DGDAL_USE_KDU=ON \
-DKDU_ROOT=/usr/local/kakadu \
; \
done

Expand Down

0 comments on commit 810d4ac

Please sign in to comment.