# $Id: Portfile 91353 2012-03-30 16:58:25Z snc@macports.org $

PortSystem 1.0
name		geoexpress-sdk
version		7.0.0.2167
maintainers	landonf openmaintainer
platforms	darwin
description	LizardTech's SDK for reading MrSID and JPEG 2000 imagery
long_description \
		LizardTech's SDK for reading MrSID and JPEG 2000 imagery. This \
		SDK is NOT open source software, and must be downloaded \
		manually from http://www.lizardtech.com/developer/ \
		Please carefully review the SDK agreement prior to downloading \
		and installing this software.
homepage	http://www.lizardtech.com/developer/
master_sites	http://www.lizardtech.com/developer/
categories	science

distname	Geo_DSDK-${version}.darwin9.universal.gccA40
worksrcdir	Geo_DSDK-${version}

checksums	md5	526277e18ecaa69c22ab55def986f3d8 \
		sha1	3252d905bdb555385afb13c8726faf8d5c65d79e \
		rmd160	380c80b8bb039c9e853d9813623a854f8fe24819


fetch {
	file mkdir ${distpath}
	if {![file exists ${distpath}/${distfiles}]} {
		error "NOTE: Due to licensing restrictions, '${distfiles}' must be manually downloaded from ${homepage} and placed in ${distpath}"
	}
}

use_configure       no
build {}

destroot {
	file copy ${worksrcpath} ${destroot}${prefix}/share/Geo_DSDK
	system "ln -s ${prefix}/share/Geo_DSDK/bin/mrsiddecode ${destroot}${prefix}/bin"
	system "ln -s ${prefix}/share/Geo_DSDK/bin/mrsidinfo ${destroot}${prefix}/bin"
}
