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

d_pocock at users.sourceforge.net d_pocock at users.sourceforge.net
Thu Dec 15 05:36:40 CET 2011


Revision: 16513
          http://gar.svn.sourceforge.net/gar/?rev=16513&view=rev
Author:   d_pocock
Date:     2011-12-15 04:36:40 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
sqsh: continue filling out Makefile using CSWpm-dbd-sybase-* as a reference

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

Modified: csw/mgar/pkg/sqsh/trunk/Makefile
===================================================================
--- csw/mgar/pkg/sqsh/trunk/Makefile	2011-12-14 22:03:22 UTC (rev 16512)
+++ csw/mgar/pkg/sqsh/trunk/Makefile	2011-12-15 04:36:40 UTC (rev 16513)
@@ -2,8 +2,15 @@
 VERSION = 2.1.7
 CATEGORIES = utils
 
-PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
+#PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
 
+# using this recipe as a reference for how to work with Sybase OCS
+# under CSW:
+#
+#    http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/cpan/DBD-Sybase/trunk/Makefile
+#
+#
+
 # Hardwired to skip the tests
 ifeq ($(VERSION),2.1.7)
 #TEST_TARGET = check
@@ -42,7 +49,48 @@
 
 BUILD64 = 1
 
+EXTRA_MODULATORS = DBDRIVER
+MODULATIONS_DBDRIVER = ocs freetds
+
+SKIP_MODULATIONS = isa-i386-dbdriver-ocs
+
+PACKAGES = CSWsqsh-ocs CSWsqsh-freetds
+
+CATALOGNAME_CSWsqsh-ocs = sqsh_ocs
+CATALOGNAME_CSWsqsh-freetds = sqsh_freetds
+
+SPKG_DESC_CSWsqsh-ocs = $(DESCRIPTION) (Linked against Sybase OCS)
+SPKG_DESC_CSWsqsh-freetds = $(DESCRIPTION) (Linked against FreeTDS)
+
+RUNTIME_DEP_PKGS_CSWsqsh-freetds += CSWfreetds
+RUNTIME_DEP_PKGS_CSWsqsh-freetds += CSWggettextrt
+RUNTIME_DEP_PKGS_CSWsqsh-ocs += CSWsqsh-freetds
+
+SYBASE_ocs = /opt/csw/sybase/OCS-12_5
+SYBASE_freetds = /opt/csw
+SYBASE = $(SYBASE_$(DBDRIVER))
+
+LD_LIBRARY_PATH = $(SYBASE)/lib
+	
+NOISALIST = 1
+EXTRA_LIB = $(SYBASE)/lib
+	
+LD_OPTIONS =
+EXTRA_LINKER_FLAGS = $(RUNPATH_LINKER_FLAGS)
+
+EXTRA_CONFIGURE_EXPORTS = SYBASE LD_LIBRARY_PATH
+
+EXTRA_TEST_EXPORTS = LD_LIBRARY_PATH
+
+PKGFILES_CSWsqsh-ocs = /opt/csw/bin/sqsh-ocs
+
 CONFIGURE_ARGS = $(DIRPATHS)
 CONFIGURE_ARGS += --enable-shared --disable-nls
 
+# These are provided by the Sybase OCS libraries
+CHECKPKG_OVERRIDES_CSWsqsh-ocs += soname-not-found|libcs.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase-ocs.so
+CHECKPKG_OVERRIDES_CSWsqsh-ocs += soname-not-found|libcomn.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase-ocs.so
+CHECKPKG_OVERRIDES_CSWsqsh-ocs += soname-not-found|libtcl.so|is|needed|by|opt/csw/lib/perl/site_perl/auto/DBD/Sybase/Sybase-ocs.so
+CHECKPKG_OVERRIDES_CSWsqsh-ocs += 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