# $Id: Portfile 61888 2009-12-23 02:35:55Z jmr@macports.org $

PortSystem 1.0

name			Cenon
version			3.83
categories		aqua graphics
platforms		darwin
maintainers		bfulgham
description		Modular Graphics Application
long_description	Cenon is a graphical tool kernel.  Built upon a modular \
				graphical core, Cenon offers a wide variety of \
				possible applications.  The default install \
				includes support for desktop publishing, vector \
				graphics conversion (PostScript, PDF, DXF, HPGL \
				Gerber, DIN, and more), graphics (TIFF, GIF, JPEG, \
				etc.), Typography (font import, text rotation), and \
				some rudimentary drafting features.

homepage		http://www.cenon.info/
master_sites		http://www.vhf-group.com/vhfInterservice/download/source/Apple
distfiles		Cenon-${version}.tar.bz2 \
			CenonLibrary-${version}-1.tar.bz2
checksums		Cenon-${version}.tar.bz2 md5 5994f15e7e02a3318d5058949f5c851e \
			CenonLibrary-${version}-1.tar.bz2 md5 3455746ac9dabbc61ae29d7dcad7d884
use_bzip2		yes

patchfiles		patch-Cenon.xcodeproj-project.pbxproj	patch-Cenon.xcodeproj-georg.pbxuser

worksrcdir		Cenon

use_configure		no

set xcodebuilddir	build
if {$xcodeversion == "2.1"} {
	set xcodebuilddir	build/Default
}

build.type		pbx
build.dir		${workpath}/${name}
build.target		-configuration Default ARCHS="ppc i386"

destroot	{
	xinstall -m 755 -d ${destroot}/Applications/MacPorts/
	file copy ${worksrcpath}/${xcodebuilddir}/${name}.app \
		${destroot}/Applications/MacPorts/
	xinstall -m 755 -d ${destroot}/Library/
	system "tar -C ${destroot}/Library -xjvf ${distpath}/CenonLibrary-${version}-1.tar.bz2"
}

