Skip to content

Commit

Permalink
debian packaging: optional support for oracle instantclient 12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 29, 2016
1 parent d4e400a commit 78d9617
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion debian/control.in
Expand Up @@ -56,7 +56,7 @@ Build-Depends:
txt2tags,
xvfb, xauth,
xfonts-base, xfonts-100dpi, xfonts-75dpi, xfonts-scalable,
#oracle# oracle-instantclient11.2-devel,
#oracle# oracle-instantclient12.1-devel,
spawn-fcgi, lighttpd, poppler-utils, locales, qt4-doc-html,
libqt4-sql-sqlite, python-psycopg2
Build-Conflicts: libqgis-dev, qgis-dev
Expand Down
17 changes: 15 additions & 2 deletions debian/rules
Expand Up @@ -20,8 +20,10 @@ QGIS_BUILDDIR ?= debian/build

QGIS_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \([0-9]\+:\)\?\([^+-]\+\).*$$/\2/p')

ifeq (,$(DISTRIBUTION))
ifeq (,$(DIST))
DISTRIBUTION := $(shell dpkg-parsechangelog --format rfc822 | sed -ne "s/^Distribution: //p")
else
DISTRIBUTION := $(DIST)
endif

ifneq (,$(findstring -oracle,$(DISTRIBUTION)))
Expand Down Expand Up @@ -106,7 +108,18 @@ ifneq (,$(findstring $(DISTRIBUTION),"jessie stretch trusty utopic vivid wily si
endif

ifneq (,$(WITH_ORACLE))
CMAKE_OPTS += -DWITH_ORACLE=TRUE
ifeq ($(DEB_BUILD_ARCH),amd64)
CMAKE_OPTS += \
-DWITH_ORACLE=TRUE \
-DORACLE_INCLUDEDIR=/usr/include/oracle/12.1/client64/ \
-DORACLE_LIBDIR=/usr/lib/oracle/12.1/client64/lib/
endif
ifeq ($(DEB_BUILD_ARCH),i386)
CMAKE_OPTS += \
-DWITH_ORACLE=TRUE \
-DORACLE_INCLUDEDIR=/usr/include/oracle/12.1/client/ \
-DORACLE_LIBDIR=/usr/lib/oracle/12.1/client/lib/
endif
endif

ifneq (,$(findstring $(DISTRIBUTION),"sid stretch jessie"))
Expand Down
2 changes: 0 additions & 2 deletions src/providers/oracle/ocispatial/cmake/FindOCI.cmake
Expand Up @@ -13,15 +13,13 @@
FIND_PATH(OCI_INCLUDE_DIR oci.h
PATHS
${ORACLE_INCLUDEDIR}
/usr/include/oracle/11.2/client64
$ENV{OSGEO4W_ROOT}/include
$ENV{ORACLE_HOME}/rdbms/public
)

FIND_LIBRARY(OCI_LIBRARY clntsh oci
PATHS
${ORACLE_LIBDIR}
/usr/lib/oracle/11.2/client64/lib/
$ENV{OSGEO4W_ROOT}/lib
$ENV{ORACLE_HOME}/lib
)
Expand Down

0 comments on commit 78d9617

Please sign in to comment.