blob: 5dd2c60402e6709a826bc3067bcd50429d05e963 (
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
|
# $NetBSD: Makefile,v 1.3 2013/03/06 08:30:40 dsainty Exp $
#
DISTNAME= rxtx-2.1-7r2
PKGNAME= java-rxtx-2.1.7r2
CATEGORIES= comms java
MASTER_SITES= http://rxtx.qbang.org/pub/rxtx/
EXTRACT_SUFX= .zip
MAINTAINER= dsainty@NetBSD.org
HOMEPAGE= http://rxtx.qbang.org/
COMMENT= Java serial IO library
LICENSE= gnu-lgpl-v2 # or later
USE_TOOLS+= aclocal autoconf autoheader automake gmake unzip
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= no
PKG_DESTDIR_SUPPORT= user-destdir
# Configuration looks for certain versions of JDK - this list can be expanded
# if the patches are also appropriately updated.
PKG_JVMS_ACCEPTED= openjdk7 sun-jdk7 sun-jdk6 sun-jdk15 sun-jdk14
MAKE_ENV+= JAVA_HOME=${PKG_JAVA_HOME}
# The printer port support is experimental, and only supported on some
# platforms. Disable it for consistency.
CONFIGURE_ARGS+= --disable-PRINTER
JAVA_MACHINE_ARCH= ${MACHINE_ARCH:S/x86_64/amd64/}
INSTALLATION_DIRS+= ${PKG_JAVA_HOME}/jre/lib/ext
INSTALLATION_DIRS+= ${PKG_JAVA_HOME}/jre/lib/${JAVA_MACHINE_ARCH}
PLIST_SUBST+= JAVA_MACHINE_ARCH=${JAVA_MACHINE_ARCH:Q}
PLIST_SUBST+= JAVA_HOME="${PKG_JAVA_HOME:C/^${PREFIX}\///}"
pre-configure:
set -e; cd ${WRKSRC}; \
aclocal; autoheader; automake -a --foreign -i; autoconf
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|