# $Id: Portfile 30224 2007-10-22 22:49:14Z jmpp@macports.org $

PortSystem 1.0

name			sglib
version			1.0.0
categories		devel
platforms		darwin
maintainers		nomaintainer
description		useful macros for manipulating common data structures
long_description	sglib is a library defining useful macros manipulating \
					common data structures.

homepage		http://xref-tech.com/sglib/main.html
master_sites	http://xref-tech.com/sglib/
extract.suffix	.tgz
checksums		md5 1067e1533f85fbd144892ee45dbc19cd

use_configure	no

build			{}

destroot	{
	xinstall -m 644 ${worksrcpath}/sglib.h ${destroot}${prefix}/include/
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	file copy ${worksrcpath}/samples \
		${destroot}${prefix}/share/doc/${name}/examples
	xinstall -m 644 -W ${worksrcpath} doc/GenerateDoc doc/index.html \
		doc/index.html.sss doc/sssi README \
		${destroot}${prefix}/share/doc/${name}
}
