forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Portfile
45 lines (34 loc) · 1.7 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PortSystem 1.0
name jna
version 3.2.7
categories java
platforms darwin
maintainers nomaintainer
description Access to native shared libraries with pure Java code
long_description Java Native Access provides Java programs easy \
access to native shared libraries (DLLs on Windows) \
without writing anything but Java code - no JNI or \
native code is required. This functionality is \
comparable to Windows' Platform/Invoke and Python's \
ctypes. Access is dynamic at runtime without code \
generation. JNA's design aims to provide native \
access in a natural way with a minimum of effort. \
No boilerplate or generated code is required. While \
some attention is paid to performance, correctness \
and ease of use take priority.
homepage https://jna.dev.java.net/
master_sites ${homepage}source/browse/*checkout*/${name}/tags/${version}/jnalib/dist/
distfiles ${name}.jar
fetch.ignore_sslcert yes
extract.only
checksums md5 56c4d32d08c89a93159259e0da38d9db \
sha1 4f25aa7292f70e721a9b96a6ed49365ba6e03eab \
rmd160 93a01009c06ee9821f9677930634211a8ca9e666
depends_lib bin:java:kaffe
use_configure no
build { }
destroot {
set javadir ${destroot}${prefix}/share/java
xinstall -d -m 755 ${javadir}
file copy ${distpath}/${name}.jar ${javadir}/
}