aboutsummaryrefslogtreecommitdiffstats
path: root/devel/jna/Makefile
blob: c9e33c75bcf7d0661f2b538a1b7b028ae9cff642 (plain) (blame)
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
# New ports collection makefile for:    jna
# Date created:     2010-10-01
# Whom:         Jimmy Olgeni <olgeni@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   jna
PORTVERSION=    3.2.7
CATEGORIES= devel java
MASTER_SITES=   LOCAL/olgeni
DISTFILES=  ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
        ${PORTNAME}-${PORTVERSION}-doc${EXTRACT_SUFX}

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Java access to native shared libraries

USE_ANT=    yes
USE_GMAKE=  yes
USE_JAVA=   1.4+
USE_ZIP=    yes

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DOCSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}-doc

PLIST_FILES=    %%JAVAJARDIR%%/jna-freebsd-${ARCH}.jar \
        %%JAVAJARDIR%%/jna.jar

.if !defined(NOPORTDOCS)
PORTDOCS=   javadoc platform
.endif

post-patch:
    @${CHMOD} 755 ${WRKSRC}/native/libffi/configure
    @${CHMOD} 755 ${WRKSRC}/native/libffi/install-sh

do-install:
    @${INSTALL_DATA} ${WRKSRC}/build*/freebsd-${ARCH}.jar ${JAVAJARDIR}/jna-freebsd-${ARCH}.jar
    @${INSTALL_DATA} ${WRKSRC}/build*/jna.jar ${JAVAJARDIR}/jna.jar
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @cd ${DOCSRC} && ${COPYTREE_SHARE} javadoc ${DOCSDIR}
    @cd ${DOCSRC} && ${COPYTREE_SHARE} platform ${DOCSDIR}
.endif

.include <bsd.port.mk>