Portfile

# $Id: Portfile 20405 2006-11-03 02:13:31Z jberry@macports.org $
PortSystem 1.0
name agregex
version 0.4
categories devel framework
platforms darwin
maintainers nomaintainer@macports.org
description a Perl-compatible regex framework for using the PCRE library
long_description AGRegex provides Perl-compatible pattern matching to \
Cocoa applications. Regular expression support is \
provided by the PCRE library package, which is open \
source software, written by Philip Hazel, and \
copyright by the University of Cambridge, England.
homepage http://sourceforge.net/projects/agkit/
master_sites sourceforge:agkit
set framework AGRegex
distname ${framework}-${version}
extract.suffix .tgz
checksums md5 b6bcc0b77c9c72bf3af876147b7ac034
worksrcdir ${framework}

use_configure no

build.type pbx
build.target ${framework}
build.pre_args -target ${build.target}
build.args -configuration Deployment
post-build {
system "install_name_tool \
-id /Library/Frameworks/${framework}.framework/${framework} \
${worksrcpath}/build/Deployment/${framework}.framework/${framework}"
}

destroot {
xinstall -d -m 0755 ${destroot}/Library/Frameworks
system "cp -R ${worksrcpath}/build/Deployment/${framework}.framework \
${destroot}/Library/Frameworks"
}