# $Id: Portfile 66718 2010-04-21 14:01:36Z jmr@macports.org $

PortSystem 1.0

name			xalanc
version			1.10.0
revision		1
categories		textproc
platforms		darwin freebsd
maintainers		mww
description		XSLT processor in C++ for transforming XML
long_description	Xalan is an XSLT processor for transforming XML \
				documents into HTML, text, or other XML document \
				types.  Xalan-C++ version 1.6 is a robust \
				implementation of the W3C Recommendations for XSL \
				Transformations (XSLT) and the XML Path Language \
				(XPath).

homepage		http://xml.apache.org/xalan-c/
master_sites	apache:xml/xalan-c/source/
distname		Xalan-C_1_10_0-src
checksums		md5 0a3fbb535885531cc544b07a2060bfb1
patchfiles		patch-Makefile.incl.in

depends_lib		port:xercesc

worksrcdir		xml-xalan/c

configure.env	XALANCROOT='${workpath}/xml-xalan/c' \
				XERCESCROOT='${prefix}'
if {![info exists configure.ld_archflags] && ![variant_isset universal]} {
    eval configure.ldflags-append ${configure.cc_archflags}
}
configure.cmd	./runConfigure
configure.pre_args -C --prefix=${prefix}

platform darwin	{
	configure.pre_args-append	-p macosx
}

platform darwin 8 {
	configure.pre_args-append	-c /usr/bin/gcc-4.0 -x /usr/bin/g++-4.0
}

build.env		${configure.env}
build.type		gnu

destroot.env	${configure.env}

livecheck.type	moddate

