summaryrefslogtreecommitdiff
path: root/comms/java-rxtx/Makefile
diff options
context:
space:
mode:
authordsainty <dsainty>2013-02-11 01:13:19 +0000
committerdsainty <dsainty>2013-02-11 01:13:19 +0000
commitfb074ff2bb2e0b16a5ceeb4b4854aa3afcf6a047 (patch)
treec99150c167081f9355d295a5dd3a1b04c1d5f97f /comms/java-rxtx/Makefile
parent6fb234809500f2042990731ba4b11683b73c7ea9 (diff)
downloadpkgsrc-fb074ff2bb2e0b16a5ceeb4b4854aa3afcf6a047.tar.gz
Add RXTX version 2.1-7r2.
RXTX is a Java library, using a native implementation (via JNI), providing serial and parallel communication for the Java Development Toolkit (JDK). It is based on the specification for Sun's Java Communications API, though while many of the class descriptions are the same the package used it not, since gnu.io is used instead. A certain amount of compatibility is intended with API, though this project should be considered as a fork and therefore compatible in spirit, but not in implementation.
Diffstat (limited to 'comms/java-rxtx/Makefile')
-rw-r--r--comms/java-rxtx/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/comms/java-rxtx/Makefile b/comms/java-rxtx/Makefile
new file mode 100644
index 00000000000..22c16393b30
--- /dev/null
+++ b/comms/java-rxtx/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2013/02/11 01:13:19 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
+
+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
+
+INSTALLATION_DIRS+= ${PKG_JAVA_HOME}/jre/lib/ext
+INSTALLATION_DIRS+= ${PKG_JAVA_HOME}/jre/lib/${MACHINE_ARCH}
+
+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"