[Expat-checkins] expat expat.pc.in, NONE, 1.1 .cvsignore, 1.10, 1.11 Makefile.in, 1.58, 1.59 configure.in, 1.45, 1.46
Karl Waclawek
kwaclaw at users.sourceforge.net
Mon Sep 3 19:26:23 CEST 2007
Update of /cvsroot/expat/expat
In directory sc8-pr-cvs17:/tmp/cvs-serv565
Modified Files:
.cvsignore Makefile.in configure.in
Added Files:
expat.pc.in
Log Message:
Added pkg-config support - patch #1749198 by Dan Nicholson.
--- NEW FILE: expat.pc.in ---
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: expat
Version: @PACKAGE_VERSION@
Description: expat XML parser
Libs: -L${libdir} -lexpat
Cflags: -I${includedir}
Index: .cvsignore
===================================================================
RCS file: /cvsroot/expat/expat/.cvsignore,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- .cvsignore 3 May 2007 19:54:50 -0000 1.10
+++ .cvsignore 3 Sep 2007 17:26:20 -0000 1.11
@@ -11,3 +11,4 @@
expat.ncb
expat.opt
.project
+expat.pc
Index: Makefile.in
===================================================================
RCS file: /cvsroot/expat/expat/Makefile.in,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- Makefile.in 9 May 2007 18:38:50 -0000 1.58
+++ Makefile.in 3 Sep 2007 17:26:20 -0000 1.59
@@ -31,6 +31,7 @@
libdir = @libdir@
includedir = @includedir@
man1dir = @mandir@/man1
+pkgconfigdir = $(libdir)/pkgconfig
top_builddir = .
@@ -48,9 +49,9 @@
default: buildlib xmlwf/xmlwf
-buildlib: $(LIBRARY)
+buildlib: $(LIBRARY) expat.pc
-all: $(LIBRARY) xmlwf/xmlwf examples/elements examples/outline
+all: $(LIBRARY) expat.pc xmlwf/xmlwf examples/elements examples/outline
clean:
cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs
@@ -65,7 +66,7 @@
distclean: clean
rm -f expat_config.h config.status config.log config.cache libtool
- rm -f Makefile
+ rm -f Makefile expat.pc
extraclean: distclean
rm -f expat_config.h.in configure
@@ -80,10 +81,11 @@
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(DESTDIR)$(bindir)/xmlwf
$(INSTALL_DATA) $(MANFILE) $(DESTDIR)$(man1dir)
-installlib: $(LIBRARY) $(APIHEADER)
- $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
+installlib: $(LIBRARY) $(APIHEADER) expat.pc
+ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(pkgconfigdir)
$(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY)
for FN in $(APIHEADER) ; do $(INSTALL_DATA) $$FN $(DESTDIR)$(includedir) ; done
+ $(INSTALL_DATA) expat.pc $(DESTDIR)$(pkgconfigdir)/expat.pc
uninstall: uninstalllib
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(bindir)/xmlwf
@@ -93,6 +95,7 @@
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(LIBRARY)
rm -f $(DESTDIR)$(includedir)/expat.h
rm -f $(DESTDIR)$(includedir)/expat_external.h
+ rm -f $(DESTDIR)$(pkgconfigdir)/expat.pc
# for VPATH builds (invoked by configure)
mkdir-init:
@@ -125,6 +128,9 @@
$(LIBRARY): $(LIB_OBJS)
$(LINK_LIB) $(LIB_OBJS)
+expat.pc: $(top_builddir)/config.status
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+
lib/xmlparse.lo: lib/xmlparse.c lib/expat.h lib/xmlrole.h lib/xmltok.h \
$(top_builddir)/expat_config.h lib/expat_external.h lib/internal.h
Index: configure.in
===================================================================
RCS file: /cvsroot/expat/expat/configure.in,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- configure.in 9 May 2007 13:26:48 -0000 1.45
+++ configure.in 3 Sep 2007 17:26:20 -0000 1.46
@@ -144,7 +144,7 @@
AC_DEFINE([XML_CONTEXT_BYTES], 1024,
[Define to specify how much context to retain around the current parse point.])
-AC_CONFIG_FILES(Makefile)
+AC_CONFIG_FILES([Makefile expat.pc])
AC_OUTPUT
abs_srcdir="`cd $srcdir && pwd`"
More information about the Expat-checkins
mailing list