2014-06-11 10:49:57 +02:00
|
|
|
# Template file for 'JAI'
|
|
|
|
pkgname=JAI
|
|
|
|
version=1.1.3
|
2014-06-22 10:06:38 +02:00
|
|
|
revision=2
|
2014-06-11 10:49:57 +02:00
|
|
|
short_desc="Java Advanced Imaging Library - binary version"
|
2014-10-27 18:05:31 +01:00
|
|
|
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
|
2014-06-11 10:49:57 +02:00
|
|
|
license="Apache-2.0"
|
|
|
|
homepage="https://java.net/projects/jai-core"
|
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
_arch="amd64"
|
|
|
|
_jarch=${_arch}
|
|
|
|
checksum=4bf0d26acbedc9e203059b18f8a1a7bfef0b448cb5515b8c1b530706e68eb75a
|
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
|
|
_arch="i586"
|
|
|
|
_jarch="i386"
|
|
|
|
checksum=00e68ee1742f972e1602913afcf095e4ca49c17e2df1d2c0938ecb267d41f94f
|
|
|
|
fi
|
|
|
|
|
|
|
|
distfiles="http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-${_arch}.tar.gz"
|
|
|
|
wrksrc="jai-1_1_3"
|
2014-06-22 10:06:38 +02:00
|
|
|
depends="java-runtime>=0"
|
2014-06-11 10:49:57 +02:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
# put jar files in place
|
|
|
|
vmkdir usr/share/java/lib/ext
|
|
|
|
vcopy "lib/jai*" usr/share/java/lib/ext
|
|
|
|
vcopy lib/mlibwrapper_jai.jar usr/share/java/lib/ext
|
|
|
|
# put the architecture dependant files in place
|
|
|
|
vmkdir usr/share/java/lib/${_jarch}
|
|
|
|
vcopy lib/libmlib_jai.so usr/share/java/lib/${_jarch}
|
|
|
|
# put the license files in place
|
|
|
|
vmkdir usr/share/licenses/${pkgname}
|
|
|
|
vcopy *-jai.txt usr/share/licenses/${pkgname}
|
|
|
|
}
|