Package: libxml++2
# 2.36 and up require glibmm-2.32.0 NEWGLIB24
Version: 2.34.2
Revision: 1
Description: C++ wrapper for the libxml XML parser library
License: LGPL
# Please take this over if you use it
Maintainer: Hanspeter Niederstrasser <nieder@users.sourceforge.net>

Source: mirror:gnome:sources/libxml++/2.34/libxml++-%v.tar.xz
Source-Checksum: SHA256(77daba20ab76631071d4ed4cc18fa2e981160ca05ae661e8d146f2b0728f9baa)
GCC: 4.0

Depends: %N-shlibs (= %v-%r)
BuildDepends: <<
	fink (>= 0.32),
	fink-package-precedence,
	glib2-dev (>= 2.22.0-1),
	glibmm2.4-dev (>= 2.22.0-1),
	libiconv-dev,
	libsigc++2 (>= 2.0.11-1003),
	libxml2 (>= 2.9.1-2),
	pkgconfig (>= 0.23)
<<
BuildDependsOnly: True

ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info --disable-static PERL=/usr/bin/perl PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH"
CompileScript: <<
	./configure %c
	make
	fink-package-precedence --prohibit-bdep %n .
	# clean up .pc to avoid publishing unnecessary Requires:
	# can't patch in PatchScript because then lose libxml2 includes for build
	perl -pi -e 's|Requires: libxml-2.0 \>\= [0-9]\.[0-9]\.[0-9]|Requires:|g' libxml++-2.6.pc
<<

InstallScript: make -j1 install DESTDIR="%d"

SplitOff: <<
	Package: %N-shlibs
	Depends: <<
		glib2-shlibs (>= 2.22.0-1),
		glibmm2.4-shlibs (>= 2.22.0-1),
		libsigc++2-shlibs (>= 2.0.11-1003),
		libxml2-shlibs (>= 2.9.1-2)
	<<
	Files: lib/libxml++-2.6.*.dylib
	Shlibs: %p/lib/libxml++-2.6.2.dylib 3.0.0 %n (>= 2.20.0-1)
	DocFiles: AUTHORS COPYING ChangeLog INSTALL NEWS README
<<

DocFiles: AUTHORS COPYING ChangeLog INSTALL NEWS README
Homepage: http://libxmlplusplus.sourceforge.net/
DescPackaging: <<
	Clean up .pc Requires: don't need entries that are not
	#included by public .h to avoid publishing useless and hidden
	InheritedBuildDepends.

Previously maintained by Benjamin Reed <libxml_2@fink.raccoonfink.com>
<<