Commit 11b64785 authored by Leigh B Stoller's avatar Leigh B Stoller

Add script to install xerces-c2.

parent 61a0a68f
# Note that all actions *MUST* be idempotent; if this script is run
# again, it should always do the right thing, not break if something
# was already done. See boss-install for lots of example of how to use
# libinstall to help with this.
use strict;
use libinstall;
sub InstallUpdate($$)
my ($version, $phase) = @_;
# If something should run in the pre-install phase.
if ($phase eq "pre") {
Phase "xerces-c2", "Checking xerces-c2 status", sub {
Phase "port", "Checking for port xerces-c2", sub {
ExecQuietFatal("cd $PORTSDIR/textproc/xerces-c2; ".
"make -DBATCH install");
Phase "reconfig", "Checking to see if reconfigure needed", sub {
PhaseSkip("No reconfig needed")
if ($HAVE_XERCES eq "yes");
# Must stop and reconfigure.
PhaseStop("New software package xerces-c2 has ".
"been installed.\n".
"Please reconfigure and rebuild your ".
"object tree,\n".
"then restart the update process.");
# If something should run in the post-install phase.
if ($phase eq "post") {
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment