Revision: 7531
          http://gar.svn.sourceforge.net/gar/?rev=7531&view=rev
Author:   wahwah
Date:     2009-12-02 00:29:09 +0000 (Wed, 02 Dec 2009)

Log Message:
-----------
postgresql: Enabling contrib

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

Modified: csw/mgar/pkg/postgresql/trunk/Makefile
===================================================================
--- csw/mgar/pkg/postgresql/trunk/Makefile      2009-12-02 00:25:50 UTC (rev 
7530)
+++ csw/mgar/pkg/postgresql/trunk/Makefile      2009-12-02 00:29:09 UTC (rev 
7531)
@@ -83,7 +83,14 @@
 # NO_ISAEXEC = 1
 
 CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --with-includes=/opt/csw/include
+CONFIGURE_ARGS_isa-sparcv8 += --with-libraries=/opt/csw/lib/32
+CONFIGURE_ARGS_isa-i386    += --with-libraries=/opt/csw/lib/32
+CONFIGURE_ARGS_isa-sparcv9 += --with-libraries=/opt/csw/lib/64
+CONFIGURE_ARGS_isa-amd64   += --with-libraries=/opt/csw/lib/64
+CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(MODULATION))
 
+
 TEST_TARGET = check
 
 EXTRA_PAX_ARGS = -s 
",^\./opt/csw/postgresql/share/doc,./opt/csw/share/doc/postgresql,p"
@@ -93,6 +100,7 @@
 PKGFILES_CSWpostgresqldevel += $(prefix)/share/doc/postgresql/html.*
 PKGFILES_CSWlibpq  = $(PKGFILES_RT)
 PKGFILES_CSWlibpq += $(libdir)/64
+PKGFILES_CSWlibpq += $(libdir)/32
 
 INITSMF = /etc$(prefix)/init\.d/cswpostgres-$(BASE_VERSION)
 USERGROUP = /etc$(prefix)/pkg/postgresql-$(BASE_VERSION)
@@ -117,6 +125,14 @@
 
 CFLAGS := $(filter-out -I%,$(CFLAGS))
 
+post-build-modulated:
+       $(BUILD_ENV) gmake -C $(WORKSRC)/contrib all
+       @$(MAKECOOKIE)
+
+post-install-modulated:
+       $(INSTALL_ENV) gmake -C $(WORKSRC)/contrib DESTDIR=$(DESTDIR) install
+       @$(MAKECOOKIE)
+
 post-merge:
        ginstall -d $(PKGROOT)/etc$(prefix)/init.d
        sed -e 's...@pgdata@+$(PGDATA)+' \
@@ -146,4 +162,5 @@
        done
        ginstall -d $(PKGROOT)$(PGDATA)
        gln -s $(ISA_DEFAULT64) $(PKGROOT)$(libdir)/64
+       gln -s . $(PKGROOT)$(libdir)/32
        @$(MAKECOOKIE)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
devel mailing list
[email protected]
https://lists.opencsw.org/mailman/listinfo/devel

Reply via email to