maintainers {vince @Veence}
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/
license Restrictive NoMirror
distname MrSID_DSDK-${version}-darwin16.universal.clang80
worksrcdir MrSID_DSDK-${version}-darwin16.universal.clang80
checksums rmd160 62c164015c1a08ea5ad8509a6d6734da0095a357 \
sha256 2dae719de7e852ac2aa46c0de5781924350ec84bf2c0c4915a3eab2f0e8301d2 \
if {![file exists ${distpath}/${distfiles}]} {
ui_error "NOTE: Due to licensing restrictions, '${distfiles}' must be manually downloaded from ${homepage}"
ui_error "and placed in ${distpath} for example using: ‘sudo cp ~/Downloads/${distfiles} ${distpath}'"
set SID_RST ${prefix}/share/Geo_DSDK/Raster_DSDK
set SID_LAS ${prefix}/share/Geo_DSDK/Lidar_DSDK
copy ${worksrcpath} ${destroot}${prefix}/share/Geo_DSDK
system "install_name_tool -id ${SID_RST}/lib/libltidsdk.9.dylib ${destroot}${SID_RST}/lib/libltidsdk.9.dylib"
system "install_name_tool -id ${SID_LAS}/lib/liblti_lidar_dsdk.dylib ${destroot}${SID_LAS}/lib/liblti_lidar_dsdk.1.dylib"
system "install_name_tool -id ${SID_RST}/lib/libtbb.dylib ${destroot}${SID_RST}/lib/libtbb.dylib"
system "install_name_tool -id ${SID_LAS}/lib/libtbb.dylib ${destroot}${SID_LAS}/lib/libtbb.dylib"
system "install_name_tool -change @rpath/libtbb.dylib ${SID_RST}/lib/libtbb.dylib ${destroot}${SID_RST}/lib/libltidsdk.9.dylib"
system "install_name_tool -change @rpath/libtbb.dylib ${SID_LAS}/lib/libtbb.dylib ${destroot}${SID_LAS}/lib/liblti_lidar_dsdk.1.dylib"