Ticket #19551: Portfile

File Portfile, 1.4 KB (added by ian.eure@…, 16 years ago)

Portfile

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