blob: 37cb6c78a0197a360f09848b6369616bacc662a5 (
plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# $FreeBSD$
PORTNAME= jna
PORTVERSION= 4.0
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= GH
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Java access to native shared libraries
BROKEN= Build fails due to test failures
USES= gmake
USE_GCC= any
USE_ANT= yes
USE_JAVA= 1.4+
USE_XORG= x11 xt
MAKE_ARGS= -DCC=${CC} -DLD=${LD}
MAKE_ENV+= ANT_OPTS=-Drelease -DARCH=${ANT_ARCH}
USE_GITHUB= yes
GH_ACCOUNT= twall
GH_TAG= ${PORTVERSION}
GH_COMMIT= 9b7ba38
PLIST_FILES= %%JAVAJARDIR%%/jna-platform.jar \
%%JAVAJARDIR%%/jna.jar
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= javadoc platform-${PORTVERSION:L}.0-javadoc.jar
.endif
.if ${ARCH} == "i386"
ANT_ARCH= x86
.elif ${ARCH} == "amd64"
ANT_ARCH= x86-64
.endif
NO_STAGE= yes
post-patch:
@${CHMOD} 755 ${WRKSRC}/native/libffi/configure
@${CHMOD} 755 ${WRKSRC}/native/libffi/install-sh
post-build-script:
.if ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${ANT} javadoc
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/build/freebsd-${ANT_ARCH}.jar ${JAVAJARDIR}/jna-platform.jar
${INSTALL_DATA} ${WRKSRC}/build/jna.jar ${JAVAJARDIR}/jna.jar
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} javadoc ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/dist/platform-${PORTVERSION:L}.0-javadoc.jar ${DOCSDIR}
.endif
.include <bsd.port.mk>
|