#!/bin/bash source $(dirname $0)/global.sh PACKAGE=xml2 VERSION=0.4 DEP_DEV="libxml2-dev.tcz" # dependencies during compilation DEP_RLS="libxml2.tcz" # dependencies at stable status AUTHOR="Dan Egnor" LICENSE="GPL" HOMEPAGE=http://www.ofb.net/~egnor/xml2/ DOWNLOAD_URL=http://download.ofb.net/gale/$PACKAGE-$VERSION.tar.gz ADDITIONAL_INFO="These tools are used to convert XML and HTML to and from a line-oriented format" compile_xml2 () { set_cflags tce-load -wi compiletc $DEP_DEV cd wget -qO- $DOWNLOAD_URL | tar -${TARFLAGS}- #ln -s /usr/local/bin/xml2-config /usr/local/bin/xml-config cd $DIRNAME export XML_CFLAGS="$(xml2-config --cflags) -I /usr/local/include/libxml2/libxml" export XML_LIBS=$(xml2-config --libs) ./configure patch <