head	1.11;
access;
symbols
	REL7_4_29:1.3
	REL8_0_25:1.10.4.1
	REL7_4_28:1.3
	REL8_0_24:1.10.4.1
	REL7_4_27:1.3
	REL8_0_23:1.10.4.1
	REL7_4_26:1.3
	REL8_0_22:1.10.4.1
	REL7_4_25:1.3
	REL8_0_21:1.10.4.1
	REL7_4_24:1.3
	REL8_0_20:1.10.4.1
	REL7_4_23:1.3
	REL8_0_19:1.10.4.1
	REL7_4_22:1.3
	REL8_0_18:1.10.4.1
	REL7_4_21:1.3
	REL8_0_17:1.10.4.1
	REL7_4_20:1.3
	REL8_0_16:1.10.4.1
	REL7_3_21:1.3
	REL7_4_19:1.3
	REL8_0_15:1.10
	REL7_3_20:1.3
	REL7_4_18:1.3
	REL8_0_14:1.10
	REL7_3_19:1.3
	REL7_4_17:1.3
	REL8_0_13:1.10
	REL8_0_12:1.10
	REL7_3_18:1.3
	REL7_4_16:1.3
	REL8_0_11:1.10
	REL8_0_10:1.10
	REL7_4_15:1.3
	REL7_3_17:1.3
	REL8_0_9:1.10
	REL7_4_14:1.3
	REL7_3_16:1.3
	REL7_3_15:1.3
	REL7_4_13:1.3
	REL8_0_8:1.10
	REL7_3_14:1.3
	REL7_4_12:1.3
	REL8_0_7:1.10
	REL7_3_13:1.3
	REL7_4_11:1.3
	REL8_0_6:1.10
	REL7_3_12:1.3
	REL7_4_10:1.3
	REL8_0_5:1.10
	REL7_3_11:1.3
	REL7_4_9:1.3
	REL8_0_4:1.10
	REL7_2_8:1.2
	REL7_3_10:1.3
	REL7_4_8:1.3
	REL8_0_3:1.10
	REL8_0_2:1.10
	REL7_2_7:1.2
	REL7_3_9:1.3
	REL7_4_7:1.3
	REL8_0_1:1.10
	REL8_0_STABLE:1.10.0.4
	REL8_0_0:1.10.0.2
	REL8_0_0RC5:1.10
	REL8_0_0RC4:1.10
	REL8_0_0RC3:1.10
	REL8_0_0RC2:1.10
	REL8_0_0RC1:1.10
	REL8_0_0BETA5:1.10
	REL8_0_0BETA4:1.9
	REL7_4_6:1.3
	REL7_3_8:1.3
	REL7_2_6:1.2
	REL8_0_0BETA3:1.9
	REL8_0_0BETA2:1.9
	REL7_2_5:1.2
	REL7_4_5:1.3
	REL7_3_7:1.3
	REL7_4_4:1.3
	REL8_0_0BETA1:1.8
	REL7_4_3:1.3
	REL7_4_2:1.3
	REL7_3_6:1.3
	REL7_4_1:1.3
	REL7_3_5:1.3
	REL7_4:1.3
	REL7_4_RC2:1.3
	REL7_4_STABLE:1.3.0.6
	REL7_4_RC1:1.3
	REL7_4_BETA5:1.3
	REL7_4_BETA4:1.3
	REL7_4_BETA3:1.3
	REL7_4_BETA2:1.3
	WIN32_DEV:1.3.0.4
	REL7_4_BETA1:1.3
	REL7_3_4:1.3
	REL7_3_2:1.3
	REL7_2_4:1.2
	REL7_3_STABLE:1.3.0.2
	REL7_2_3:1.2
	REL7_2_STABLE:1.2.0.2
	REL7_2:1.2
	REL7_2_RC2:1.2
	REL7_2_RC1:1.2
	REL7_2_BETA5:1.2
	REL7_2_BETA4:1.2
	REL7_2_BETA3:1.2
	REL7_2_BETA2:1.2
	REL7_2_BETA1:1.2;
locks; strict;
comment	@# @;


1.11
date	2005.06.22.22.56.29;	author tgl;	state dead;
branches;
next	1.10;

1.10
date	2004.11.04.06.09.23;	author neilc;	state Exp;
branches
	1.10.4.1;
next	1.9;

1.9
date	2004.08.20.20.13.10;	author momjian;	state Exp;
branches;
next	1.8;

1.8
date	2004.03.14.03.19.13;	author momjian;	state Exp;
branches;
next	1.7;

1.7
date	2004.03.05.04.10.11;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	2004.03.05.03.57.58;	author momjian;	state dead;
branches;
next	1.5;

1.5
date	2004.03.05.03.24.50;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	2003.11.29.19.51.36;	author pgsql;	state Exp;
branches;
next	1.3;

1.3
date	2002.10.22.20.03.09;	author petere;	state Exp;
branches;
next	1.2;

1.2
date	2001.08.21.00.39.20;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	2001.07.30.14.59.02;	author momjian;	state Exp;
branches;
next	;

1.10.4.1
date	2008.05.08.17.12.08;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Remove contrib modules that have been agreed to be obsolete.
(There are more that will be removed once they've been copied to
pgfoundry.org.)
@
text
@# $PostgreSQL: pgsql/contrib/xml/Makefile,v 1.10 2004/11/04 06:09:23 neilc Exp $

MODULE_big = pgxml_dom
OBJS = pgxml_dom.o
SHLIB_LINK = -lxml2
DATA_built = pgxml_dom.sql
DOCS = README.xml

override CFLAGS += $(shell xml2-config --cflags)

ifdef USE_PGXS
PGXS = $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/xml
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
@


1.10
log
@Contrib build fixes:

- add some additional files to the dbmirror install (approved by
ssinger)

- add a makefile for contrib/mysql, and add mysql to the list of
contribs build by default

- use xml2-config to pickup -I flags for libxml2 in contrib/xml and
contrib/xml2

Original work from Martin Pitt of Debian, minor cleanups by Neil
Conway.
@
text
@d1 1
a1 1
# $PostgreSQL$
@


1.10.4.1
log
@Fix contrib/xml makefile to not override CFLAGS.
@
text
@d1 1
a1 1
# $PostgreSQL: pgsql/contrib/xml/Makefile,v 1.10 2004/11/04 06:09:23 neilc Exp $
d9 1
a9 1
PG_CPPFLAGS := $(shell xml2-config --cflags)
@


1.9
log
@> Please find enclose a submission to fix these problems.
>
> The patch adds missing the "libpgport.a" file to the installation under
> "install-all-headers". It is needed by some contribs. I install the
> library in "pkglibdir", but I was wondering whether it should be "libdir"?
> I was wondering also whether it would make sense to have a "libpgport.so"?
>
> It fixes various macros which are used by contrib makefiles, especially
> libpq_*dir and LDFLAGS when used under PGXS. It seems to me that they are
> needed to
>
> It adds the ability to test and use PGXS with contribs, with "make
> USE_PGXS=1". Without the macro, this is exactly as before, there should be
> no difference, esp. wrt the vpath feature that seemed broken by previous
> submission. So it should not harm anybody, and it is useful at least to me.
>
> It fixes some inconsistencies in various contrib makefiles
> (useless override, ":=" instead of "=").

Fabien COELHO
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/xml/Makefile,v 1.8 2004/03/14 03:19:13 momjian Exp $
d9 2
@


1.8
log
@Rename README's to match directory names.  Mention copyright matches
PostgreSQL's.
@
text
@d1 1
a1 5
# $Header: /cvsroot/pgsql-server/contrib/xml/Makefile,v 1.7 2004/03/05 04:10:11 momjian Exp $

subdir = contrib/xml
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
d9 7
d17 1
@


1.7
log
@Add missing xml files.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/contrib/xml/Makefile,v 1.3 2002/10/22 20:03:09 petere Exp $
d11 1
a11 1
DOCS = README.pgxml
@


1.6
log
@Move new version of contrib/ xml into xml2, keep old version in /xml.
@
text
@d1 2
a2 1
# This makefile will build the new XML and XSLT routines.
d4 1
a4 1
top_builddir = ../../
d7 4
a10 9
MODULE_big = pgxml

# Remove xslt_proc.o from the following line if you don't have libxslt
OBJS = xpath.o xslt_proc.o

# Remove -lxslt from the following line if you don't have libxslt.
SHLIB_LINK = -lxml2 -lxslt

DATA_built = pgxml.sql
d13 1
a13 2
include $(top_builddir)contrib/contrib-global.mk

@


1.5
log
@Thanks to the generous support of Torchbox (http://www.torchbox.com), I
have been able to significantly improve the contrib/xml XPath
integration code.

New features:

* XPath set-returning function allows multiple results from an several
XPath queries to be used as a virtual table.
* Using libxslt, XSLT transformations (with and without parameters) are
supported. (Caution: This support allows generic URL fetching from
within the backend as well).

I've removed the old code so that it is all libxml based. Rather than
attach as a patch, I've put the tar.gz (10k!) at
http://www.azuli.co.uk/pgxml-1.0.tar.gz
(all files in archive are xml/....).

I think this is worth replacing the contrib version with, even though
the function names have changed (though the same functionality is
there), because it includes a SRF and some SPI usage, in addition to
linking to an external library. And it isn't a big module! Obviously, I
understand that people might prefer to move it elsewhere, or might have
reservations about replacing an existing contrib module with an
incompatible one. I'm open to suggestions.

John Gray
@
text
@@


1.4
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d1 1
a1 2
# $PostgreSQL: /cvsroot/pgsql-server/contrib/xml/Makefile,v 1.3 2002/10/22 20:03:09 petere Exp $

d3 1
a3 1
top_builddir = ../..
d6 9
a14 4
MODULE_big = pgxml_dom
OBJS = pgxml_dom.o
SHLIB_LINK = -lxml2
DATA_built = pgxml_dom.sql
d17 2
a18 1
include $(top_srcdir)/contrib/contrib-global.mk
@


1.3
log
@Update build system.
@
text
@d1 1
a1 1
# $Header$
@


1.2
log
@1. I've now produced an updated version (and called it 0.2) of my XML
parser interface code. It now uses libxml2 instead of expat (though I've
left the old code in the tarball). This means *proper* XPath support, and
the provided function allows you to wrap your result set in XML tags to
produce a new XML document.

John Gray
@
text
@d1 1
a1 5
#-------------------------------------------------------------------------
#
# Makefile--
# Adapted from tutorial makefile
#-------------------------------------------------------------------------
d7 5
a11 34
override CFLAGS+= $(CFLAGS_SL) -g


#
# DLOBJS is the dynamically-loaded object files.  The "funcs" queries
# include CREATE FUNCTIONs that load routines from these files.
#
DLOBJS= pgxml_dom$(DLSUFFIX)


QUERIES= pgxml_dom.sql

all: $(DLOBJS) $(QUERIES)

%.so: %.o
	$(CC) -shared -lxml2 -o $@@ $<


%.sql: %.source
	if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \
	if [ -z "$$USER" ]; then USER=`whoami`; fi; \
	if [ -z "$$USER" ]; then echo 'Cannot deduce $$USER.'; exit 1; fi; \
	rm -f $@@; \
	C=`pwd`; \
	sed -e "s:_CWD_:$$C:g" \
	    -e "s:_OBJWD_:$$C:g" \
	    -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
	    -e "s/_USER_/$$USER/g" < $< > $@@

clean:
	rm -f $(DLOBJS) $(QUERIES)



d13 1
@


1.1
log
@XML conversion utility, requires expat library.

John Gray
@
text
@d11 1
a11 1
override CFLAGS+= $(CFLAGS_SL)
d18 1
a18 1
DLOBJS= pgxml$(DLSUFFIX)
d21 1
a21 1
QUERIES= pgxml.sql
a24 2
# Requires the expat library

d26 1
a26 1
	$(CC) -shared -lexpat -o $@@ $<
d42 4
@
