[csw-devel] SF.net SVN: gar:[11542] csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Nov 10 13:14:39 CET 2010


Revision: 11542
          http://gar.svn.sourceforge.net/gar/?rev=11542&view=rev
Author:   dmichelsen
Date:     2010-11-10 12:14:39 +0000 (Wed, 10 Nov 2010)

Log Message:
-----------
cpan/DBD-Sybase: Add alternative for FreeTDS

Modified Paths:
--------------
    csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile

Modified: csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile	2010-11-10 11:34:16 UTC (rev 11541)
+++ csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile	2010-11-10 12:14:39 UTC (rev 11542)
@@ -10,10 +10,28 @@
 DISTFILES = COPYING
 PATCHFILES = 0001-Use-CS_UNITEXT_TYPE-only-when-available.patch
 
-PACKAGES = CSWpmdbdsybase
-CATALOGNAME = pm_dbdsybase
+EXTRA_MODULATORS = DBDRIVER
+MODULATIONS_DBDRIVER = ocs freetds
 
-SYBASE = /opt/csw/sybase/OCS-12_5
+PACKAGES = CSWpmdbdsybase CSWpmdbdsybaseftds
+
+CATALOGNAME_CSWpmdbdsybase = pm_dbdsybase
+CATALOGNAME_CSWpmdbdsybaseftds = pm_dbdsybaseftds
+
+SPKG_DESC_CSWpmdbdsybase = $(DESCRIPTION) (Linked against Sybase OCS)
+SPKG_DESC_CSWpmdbdsybaseftds = $(DESCRIPTION) (Linked against FreeTDS)
+
+# The "standard" is to link against Sybase OCS as it does not have additional
+# dependencies. If you don't have that you can *additionally* install
+# the version linked against FreeTDS pulling in all additional dependencies.
+RUNTIME_DEP_PKGS_CSWpmdbdsybaseftds += CSWpmdbdsybase
+RUNTIME_DEP_PKGS_CSWpmdbdsybaseftds += CSWfreetds
+RUNTIME_DEP_PKGS_CSWpmdbdsybaseftds += CSWggettextrt
+
+SYBASE_ocs = /opt/csw/sybase/OCS-12_5
+SYBASE_freetds = /opt/csw
+SYBASE = $(SYBASE_$(DBDRIVER))
+
 LD_LIBRARY_PATH = $(SYBASE)/lib
 
 NOISALIST = 1
@@ -30,10 +48,28 @@
 # We need a running database for this
 TEST_SCRIPTS ?=
 
+DBDSYBASEDIR = $(libdir)/perl/site_perl/auto/DBD/Sybase
+
+MERGE_SCRIPTS_isa-default-dbdriver-ocs = copy-all
+MERGE_SCRIPTS_isa-default-dbdriver-freetds = copy-only
+MERGE_DIRS_isa-default-dbdriver-freetds = $(DBDSYBASEDIR)
+
+EXTRA_PAX_ARGS  = -s ",/Sybase\.bs$$,/Sybase-$(DBDRIVER).bs,p"
+EXTRA_PAX_ARGS += -s ",/Sybase\.so$$,/Sybase-$(DBDRIVER).so,p"
+
+PKGFILES_CSWpmdbdsybaseftds = $(DBDSYBASEDIR)/.*-freetds\..*
+
+ALTERNATIVES_CSWpmdbdsybase = ocs
+ALTERNATIVES_CSWpmdbdsybaseftds = freetds
+ALTERNATIVE_ocs  = $(DBDSYBASEDIR)/Sybase.so so $(DBDSYBASEDIR)/Sybase-ocs.so 200
+ALTERNATIVE_ocs += $(DBDSYBASEDIR)/Sybase.bs bs $(DBDSYBASEDIR)/Sybase-ocs.bs
+ALTERNATIVE_freetds  = $(DBDSYBASEDIR)/Sybase.so so $(DBDSYBASEDIR)/Sybase-freetds.so 100
+ALTERNATIVE_freetds += $(DBDSYBASEDIR)/Sybase.bs bs $(DBDSYBASEDIR)/Sybase-freetds.bs
+
 # These are provided by the Sybase OCS libraries
-CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libcs.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase.so
-CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libcomn.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase.so
-CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libtcl.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase.so
-CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libct.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase.so
+CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libcs.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase-ocs.so
+CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libcomn.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase-ocs.so
+CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libtcl.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase-ocs.so
+CHECKPKG_OVERRIDES_CSWpmdbdsybase += soname-not-found|libct.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase-ocs.so
 
 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