# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {@lhaeger} openmaintainer
description OpenJFX ${major}
long_description OpenJFX is an open source, next generation client application platform \
for desktop, mobile and embedded systems built on Java.
homepage https://openjfx.io/
depends_lib port:openjdk11
master_sites https://download2.gluonhq.com/openjfx/${version}/
distname openjfx-${version}_osx-x64_bin-sdk
checksums rmd160 3b74b4bd563cc46e28b886df5c9e239fb00845c2 \
sha256 e98158812db1a0037cdaf85824adff384e41e3edf046fda145479ce6057cb514 \
worksrcdir javafx-sdk-${version}
# macOS Java tools expect to find Java virtual machines under /Library/Java/JavaVirtualMachines, which is not under ${prefix}.
destroot.violate_mtree yes
set target /Library/Java/JavaVirtualMachines/openjdk11/Contents/Home
set destroot_target ${destroot}${target}
xinstall -m 755 -d ${destroot_target}/Contents/Home
copy ${worksrcpath}/legal ${destroot_target}/legal
copy ${worksrcpath}/lib ${destroot_target}/lib
# src.zip is already provided by openjdk11
move ${destroot_target}/lib/src.zip ${destroot_target}/lib/src_javafx.zip
livecheck.url https://gluonhq.com/products/javafx/
livecheck.regex "href=\"https://download2.gluonhq.com/openjfx/(\[0-9\\.\]+)/openjfx-11\[0-9\\.\]+_osx-x64_bin-sdk.zip.sha256\""