1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name tokyocabinet-java |
---|
6 | version 1.18 |
---|
7 | categories database java |
---|
8 | maintainers ime |
---|
9 | description Java API for Tokyo Cabinet, a modern DBM |
---|
10 | long_description Clojure is a dynamic programming language for the JVM. |
---|
11 | |
---|
12 | homepage http://tokyocabinet.sourceforge.net/ |
---|
13 | platforms darwin |
---|
14 | depends_build port:tokyocabinet |
---|
15 | master_sites http://tokyocabinet.sourceforge.net/javapkg |
---|
16 | |
---|
17 | checksums md5 b87d892620df55e1088b6b8e22d87ad5 \ |
---|
18 | sha1 d7e98944fbdc0753477c0d430a056de2fac07695 \ |
---|
19 | rmd160 f354be0d0929860062812278f5f178aae64d2a36 |
---|
20 | |
---|
21 | set javahome /System/Library/Frameworks/JavaVM.framework |
---|
22 | |
---|
23 | |
---|
24 | ## patch ## |
---|
25 | patch.args -p1 |
---|
26 | patchfiles patch-Makefile.in.diff |
---|
27 | |
---|
28 | ## configure ## |
---|
29 | |
---|
30 | configure.env MYJAVAHOME=${javahome} \ |
---|
31 | CFLAGS="-I${prefix}/include -I${javahome}/Headers" \ |
---|
32 | LDFLAGS=-L${prefix}/lib INCLUDEDIR=${javahome}/Headers |
---|
33 | |
---|
34 | ## build ## |
---|
35 | |
---|
36 | build.env CFLAGS="-I${prefix}/include -I${javahome}/Headers" \ |
---|
37 | LDFLAGS=-L${prefix}/lib |
---|
38 | |
---|
39 | post-destroot { |
---|
40 | set jarfile tokyocabinet.jar |
---|
41 | set javadir ${destroot}${prefix}/share/java |
---|
42 | set dest ${javadir}/${jarfile} |
---|
43 | |
---|
44 | xinstall -m 0755 -d ${javadir} |
---|
45 | file rename ${destroot}/${prefix}/lib/${jarfile} ${dest} |
---|
46 | } |
---|