Ticket #56080: Portfile.2

File Portfile.2, 1.6 KB (added by gaming-hacker (G Alexander), 7 years ago)

java ndk

Line 
1# -*- coding: utf-8; mode: _tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2
2
3PortSystem          1.0
4
5name                android-ndk
6version             r16b
7
8categories          java cross devel
9maintainers         nomaintainer
10license             Apache-2
11platforms           darwin
12description         Android NDK
13long_description  ${description} allows native development \
14                  for the Android mobile platform.
15supported_archs     noarch
16
17set prog    ${name}-${version}-darwin-x86.zip
18
19homepage            https://developer.android.com/
20master_sites    https://dl.google.com/android/repository
21
22use_zip           yes
23extract.mkdir     no
24
25distname            ${name}-${version}-darwin-x86_64
26worksrcdir          android-ndk-${version}
27
28checksums rmd160  295b861433bd6e9980cf441d718643c19147c173 \
29sha256  9654a692ed97713e35154bfcacb0028fdc368128d636326f9644ed83eec5d88b \
30              size 839630771
31
32use_configure       no
33build.cmd           true
34
35destroot {
36    xinstall -m 755 -d ${destroot}${prefix}/share/java
37
38    system "
39        cp -a ${worksrcpath} ${destroot}${prefix}/share/java/${distname};
40        chgrp -R _developer  ${destroot}${prefix}/share/java/${distname};
41        chmod -R g+w         ${destroot}${prefix}/share/java/${distname};
42    "
43}
44
45notes "
46${distname} has been made group _developer writable
47set ANDROID_NDK to ${prefix}/share/java/android-ndk-${version}-darwin-x86_64??
48"
49# declare +devel variant
50variant devel description {beta version } {
51version     r17-beta1
52checksums sha1 883d7d1be3007637de7f2f2cb1f1bb66193d89e0 \
53    size 679061122
54}