# $Id: Portfile 56161 2009-08-24 23:10:32Z wsiegrist@apple.com $

PortSystem      1.0

name            darwinbuild
version         0.8.0
revision	549
categories      devel
platforms       darwin
maintainers     wms
description     Darwinbuild is a set of tools that facilitate building the sources \
		released by Apple.

long_description \
		The Darwin Build Scripts are a collection of tools that assist compilation of \
		the many projects contained in Darwin, the open source base of Apple's \
		Mac OS X operating system.  Apple publishes the sources of these projects \
		in an archive format (.tar.gz).  An archive is published for each project \
		version on Apple's site. These tools will provide the proper build environment as well as help to \
		resolve any necessary dependencies prior to building.

homepage        http://darwinbuild.macosforge.org/
master_sites    http://svn.macosforge.org/repository/darwinbuild/

fetch.type	svn
svn.url		http://svn.macosforge.org/repository/darwinbuild/trunk/
svn.tag		${revision}
#set svninfo 	[exec svn info ${svn.url}]
#set svnret 	[regexp {Last Changed Rev: (\d+)} $svninfo svnline svnrev]

worksrcdir	trunk

build.post_args-append		PREFIX=${prefix}
if {[info exists build_arch]} {
	build.env-append		RC_CFLAGS="-arch ${build_arch}"
}
destroot.post_args-append	PREFIX=${prefix}

depends_lib-append	port:sqlite3 \
			port:openssl

use_configure 	no

