summaryrefslogtreecommitdiffstats
path: root/comms/java-commapi-freebsd/Makefile
blob: b63b74e3ee29c15f3c104b4eb63612223111b3d8 (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
# Created by: Ari Suutari <ari.suutari@syncrontech.com>
# $FreeBSD$

PORTNAME=	java-commapi-freebsd
PORTVERSION=	0.9
CATEGORIES=	comms java
MASTER_SITES=	http://www.syncrontech.org/freebsd/
DISTNAME=	freebsd-commapi-${PORTVERSION}

MAINTAINER=	ari.suutari@syncrontech.com
COMMENT=	Java Communication API for FreeBSD

BUILD_DEPENDS=	${JDKDIR}/jre/lib/ext/comm.jar:comms/java-commapi
RUN_DEPENDS=	${JDKDIR}/jre/lib/ext/comm.jar:comms/java-commapi

MAKE_JOBS_UNSAFE=	yes

USE_JAVA=	yes
JAVA_VERSION=	1.6+
JAVA_OS=	native
JAVA_BUILD=	yes

JDKDIR=		${JAVA_HOME}

MAKE_ENV=	JAVA_HOME=${JDKDIR}

PLIST_SUB+=	JAVA_HOME=${JAVA_HOME:S/${PREFIX}\///}
PLIST_FILES=	%%JAVA_HOME%%/jre/lib/ext/CommDriver.jar \
		%%JAVA_HOME%%/jre/lib/${MACHINE_ARCH}/libSerial.so \
		%%JAVA_HOME%%/jre/lib/${MACHINE_ARCH}/libParallel.so \
		%%JAVA_HOME%%/jre/lib/javax.comm.properties

.include <bsd.port.mk>
OpenPOWER on IntegriCloud