diff options
Diffstat (limited to 'comms/java-rxtx/Makefile')
-rw-r--r-- | comms/java-rxtx/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/comms/java-rxtx/Makefile b/comms/java-rxtx/Makefile index 22c16393b30..fa94d5231c3 100644 --- a/comms/java-rxtx/Makefile +++ b/comms/java-rxtx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2013/02/11 01:13:19 dsainty Exp $ +# $NetBSD: Makefile,v 1.2 2013/02/19 23:35:48 dsainty Exp $ # DISTNAME= rxtx-2.1-7r2 @@ -28,10 +28,13 @@ MAKE_ENV+= JAVA_HOME=${PKG_JAVA_HOME} # 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/${MACHINE_ARCH} +INSTALLATION_DIRS+= ${PKG_JAVA_HOME}/jre/lib/${JAVA_MACHINE_ARCH} -PLIST_SUBST+= JAVA_HOME="${PKG_JAVA_HOME:C/^${PREFIX}\///}" +PLIST_SUBST+= JAVA_MACHINE_ARCH=${JAVA_MACHINE_ARCH:Q} +PLIST_SUBST+= JAVA_HOME="${PKG_JAVA_HOME:C/^${PREFIX}\///}" pre-configure: set -e; cd ${WRKSRC}; \ |