[csw-devel] SF.net SVN: gar:[10739] csw/mgar/pkg/opendbx/trunk/Makefile

idogan23 at users.sourceforge.net idogan23 at users.sourceforge.net
Sat Aug 14 22:25:35 CEST 2010


Revision: 10739
          http://gar.svn.sourceforge.net/gar/?rev=10739&view=rev
Author:   idogan23
Date:     2010-08-14 20:25:35 +0000 (Sat, 14 Aug 2010)

Log Message:
-----------
opendbx: added oracle support

Modified Paths:
--------------
    csw/mgar/pkg/opendbx/trunk/Makefile

Modified: csw/mgar/pkg/opendbx/trunk/Makefile
===================================================================
--- csw/mgar/pkg/opendbx/trunk/Makefile	2010-08-14 20:04:26 UTC (rev 10738)
+++ csw/mgar/pkg/opendbx/trunk/Makefile	2010-08-14 20:25:35 UTC (rev 10739)
@@ -17,16 +17,18 @@
 MASTER_SITES = http://www.linuxnetworks.de/opendbx/
 DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
 
-PACKAGES = CSWopendbx CSWopendbxdevel CSWopendbxmysql CSWopendbxsqlite3
+PACKAGES = CSWopendbx CSWopendbxdevel CSWopendbxmysql CSWopendbxsqlite3 CSWopendbxoracle
 CATALOGNAME_CSWopendbx = opendbx
 CATALOGNAME_CSWopendbxdevel = opendbx_devel
 CATALOGNAME_CSWopendbxmysql = opendbx_mysql
 CATALOGNAME_CSWopendbxsqlite3 = opendbx_sqlite3
+CATALOGNAME_CSWopendbxoracle = opendbx_oracle
 
 SPKG_DESC_CSWopendbx = $(DESCRIPTION)
 SPKG_DESC_CSWopendbxdevel = $(DESCRIPTION), development package
 SPKG_DESC_CSWopendbxmysql = $(DESCRIPTION), mysql backend package
 SPKG_DESC_CSWopendbxsqlite3 = $(DESCRIPTION), sqlite3 backend package
+SPKG_DESC_CSWopendbxsoracle = $(DESCRIPTION), oracle backend package
 
 # File name regex to get notifications about upstream software releases
 UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
@@ -37,38 +39,41 @@
 
 GARCOMPILER = GCC4
 BUILD64 = 1
-#EXTRA_BUILD_ISAS_i386 = pentium_pro
-#EXTRA_BUILD_ISAS_sparc = sparcv8plus
 
-EXTRA_INC = /opt/csw/mysql5/include/mysql
-EXTRA_LINKER_DIRS_32 = $(prefix)/mysql5/lib/mysql
-EXTRA_LINKER_DIRS_64 = $(prefix)/mysql5/lib/64/mysql
-EXTRA_LINKER_FLAGS = -L$(EXTRA_LINKER_DIRS_$(MEMORYMODEL))
-EXTRA_RUNPATH_LINKER_FLAGS = -R$(EXTRA_LINKER_DIRS_$(MEMORYMODEL))
+EXTRA_INC =  $(prefix)/mysql5/include/mysql $(prefix)/instantclient_10_2/sdk/include
+EXTRA_LINKER_DIRS_MYSQL_32 = $(prefix)/mysql5/lib/mysql
+EXTRA_LINKER_DIRS_ORACLE_32 += $(prefix)/instantclient_10_2
+EXTRA_LINKER_DIRS_MYSQL_64 = $(prefix)/mysql5/lib/64/mysql
+EXTRA_LINKER_DIRS_ORACLE_64 += $(prefix)/instantclient_10_2/64
+EXTRA_LINKER_FLAGS = -L$(EXTRA_LINKER_DIRS_MYSQL_$(MEMORYMODEL)) -L$(EXTRA_LINKER_DIRS_ORACLE_$(MEMORYMODEL))
+EXTRA_RUNPATH_LINKER_FLAGS = -R$(EXTRA_LINKER_DIRS_MYSQL_$(MEMORYMODEL)) -R$(EXTRA_LINKER_DIRS_ORACLE_$(MEMORYMODEL))
 
 CONFIGURE_ARGS = $(DIRPATHS)
 CONFIGURE_ARGS += --disable-utils
-CONFIGURE_ARGS += --with-backends="mysql sqlite3"
+CONFIGURE_ARGS += --with-backends="mysql sqlite3 oracle"
 
 PKGFILES_CSWopendbxdevel = $(PKGFILES_DEVEL)
 PKGFILES_CSWopendbxmysql = $(call baseisadirs,$(libdir),opendbx/libmysqlbackend.*) 
 PKGFILES_CSWopendbxsqlite3 = $(call baseisadirs,$(libdir),opendbx/libsqlite3backend.*) 
+PKGFILES_CSWopendbxoracle = $(call baseisadirs,$(libdir),opendbx/liboraclebackend.*) 
 
-#CONFIGURE_ARGS += --with-backends=oracle
-#EXTRA_LIB = /opt/csw/instantclient_10_2
-#EXTRA_INC = /opt/csw/instantclient_10_2/sdk/include
-#RUNTIME_DEP_PKGS_CSWopendbx += CSWorainstclient102
-#CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2|opt/csw/lib/libopendbx.so.1.2.0
-#CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2/$ISALIST|opt/csw/lib/libopendbx.so.1.2.0
-#CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2|opt/csw/lib/libopendbxplus.so.1.0.0
-#CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2/$ISALIST|opt/csw/lib/libopendbxplus.so.1.0.0
-#CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2|opt/csw/lib/opendbx/liboraclebackend.so.1.2.0
-#CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2/$ISALIST|opt/csw/lib/opendbx/liboraclebackend.so.1.2.0
-
 CHECKPKG_OVERRIDES_CSWopendbxdevel += surplus-dependency|CSWopendbx
 CHECKPKG_OVERRIDES_CSWopendbxmysql += surplus-dependency|CSWopendbx
 CHECKPKG_OVERRIDES_CSWopendbxsqlite3 += surplus-dependency|CSWopendbx
+CHECKPKG_OVERRIDES_CSWopendbxoracle += surplus-dependency|CSWopendbx
 
+CHECKPKG_OVERRIDES_CSWopendbxsqlite3 += bad-rpath-entry|/opt/csw/instantclient_10_2/64|opt/csw/lib/amd64/opendbx/libsqlite3backend.so.1.2.0
+CHECKPKG_OVERRIDES_CSWopendbxsqlite3 += bad-rpath-entry|/opt/csw/instantclient_10_2|opt/csw/lib/opendbx/libsqlite3backend.so.1.2.0
+CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2/64|opt/csw/lib/amd64/libopendbx.so.1.2.0
+CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2/64|opt/csw/lib/amd64/libopendbxplus.so.1.0.0
+CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2|opt/csw/lib/libopendbx.so.1.2.0
+CHECKPKG_OVERRIDES_CSWopendbx += bad-rpath-entry|/opt/csw/instantclient_10_2|opt/csw/lib/libopendbxplus.so.1.0.0
+CHECKPKG_OVERRIDES_CSWopendbxmysql += bad-rpath-entry|/opt/csw/instantclient_10_2/64|opt/csw/lib/amd64/opendbx/libmysqlbackend.so.1.2.0
+CHECKPKG_OVERRIDES_CSWopendbxmysql += bad-rpath-entry|/opt/csw/instantclient_10_2|opt/csw/lib/opendbx/libmysqlbackend.so.1.2.0
+CHECKPKG_OVERRIDES_CSWopendbxoracle += bad-rpath-entry|/opt/csw/instantclient_10_2/64|opt/csw/lib/amd64/opendbx/liboraclebackend.so.1.2.0
+CHECKPKG_OVERRIDES_CSWopendbxoracle += bad-rpath-entry|/opt/csw/instantclient_10_2|opt/csw/lib/opendbx/liboraclebackend.so.1.2.0
+CHECKPKG_OVERRIDES_CSWopendbxoracle += missing-dependency|CSWorainstclient102
+
 RUNTIME_DEP_PKGS_CSWopendbx += CSWgcc4corert
 RUNTIME_DEP_PKGS_CSWopendbx += CSWgcc4g++rt
 RUNTIME_DEP_PKGS_CSWopendbx += CSWggettextrt
@@ -78,5 +83,7 @@
 RUNTIME_DEP_PKGS_CSWopendbxmysql += CSWmysql5rt
 RUNTIME_DEP_PKGS_CSWopendbxsqlite3 += CSWgcc4corert
 RUNTIME_DEP_PKGS_CSWopendbxsqlite3 += CSWsqlite3rt
+RUNTIME_DEP_PKGS_CSWopendbxoracle += CSWgcc4corert
+RUNTIME_DEP_PKGS_CSWopendbxoracle += CSWopendbx
 
 include gar/category.mk


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list