summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authordsainty <dsainty@pkgsrc.org>2013-02-11 01:13:19 +0000
committerdsainty <dsainty@pkgsrc.org>2013-02-11 01:13:19 +0000
commite3b98402546953534e9d6735bed3cec12fa86399 (patch)
treec99150c167081f9355d295a5dd3a1b04c1d5f97f /comms
parent5a017f4f977784d18c07ca61bf2d9a3d876e0782 (diff)
downloadpkgsrc-e3b98402546953534e9d6735bed3cec12fa86399.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')
-rw-r--r--comms/java-rxtx/DESCR8
-rw-r--r--comms/java-rxtx/Makefile41
-rw-r--r--comms/java-rxtx/PLIST3
-rw-r--r--comms/java-rxtx/distinfo12
-rw-r--r--comms/java-rxtx/patches/patch-Makefile_am19
-rw-r--r--comms/java-rxtx/patches/patch-configure_in52
-rw-r--r--comms/java-rxtx/patches/patch-src_I2CImp_c15
-rw-r--r--comms/java-rxtx/patches/patch-src_RS485Imp_c15
-rw-r--r--comms/java-rxtx/patches/patch-src_RawImp_c15
-rw-r--r--comms/java-rxtx/patches/patch-src_SerialImp_c15
-rw-r--r--comms/java-rxtx/patches/patch-src_SerialImp_cpp15
11 files changed, 210 insertions, 0 deletions
diff --git a/comms/java-rxtx/DESCR b/comms/java-rxtx/DESCR
new file mode 100644
index 00000000000..e47880b1372
--- /dev/null
+++ b/comms/java-rxtx/DESCR
@@ -0,0 +1,8 @@
+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.
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"
diff --git a/comms/java-rxtx/PLIST b/comms/java-rxtx/PLIST
new file mode 100644
index 00000000000..f13a5a09098
--- /dev/null
+++ b/comms/java-rxtx/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2013/02/11 01:13:19 dsainty Exp $
+${JAVA_HOME}/jre/lib/ext/RXTXcomm.jar
+${JAVA_HOME}/jre/lib/${MACHINE_ARCH}/librxtxSerial.la
diff --git a/comms/java-rxtx/distinfo b/comms/java-rxtx/distinfo
new file mode 100644
index 00000000000..d6082e11e88
--- /dev/null
+++ b/comms/java-rxtx/distinfo
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1 2013/02/11 01:13:20 dsainty Exp $
+
+SHA1 (rxtx-2.1-7r2.zip) = 1d9ef2f80b23bc08b8fdeaa547ee78cb5f76e613
+RMD160 (rxtx-2.1-7r2.zip) = dc569a654fbef58aa521013e170c0200b8b3668f
+Size (rxtx-2.1-7r2.zip) = 1345757 bytes
+SHA1 (patch-Makefile_am) = a0f4bdf62bab3c21bfe062cd489b5f9b8941194c
+SHA1 (patch-configure_in) = 9c8d4c8b49e7748656296028095389922b4296d0
+SHA1 (patch-src_I2CImp_c) = 2d6bba8aa2f1460722dc69d17da091cb55f5c844
+SHA1 (patch-src_RS485Imp_c) = 6606b79c629556fd010e8d38ec3a0f88c2d8ecfd
+SHA1 (patch-src_RawImp_c) = eedc53a9f30e77a8a5437003177e9b20adf64f28
+SHA1 (patch-src_SerialImp_c) = ea2751b5d5e97ef6255b3e01f45696e70a197b9d
+SHA1 (patch-src_SerialImp_cpp) = 8453cbc8a71ec00be4ce97e05ba4055af5e59079
diff --git a/comms/java-rxtx/patches/patch-Makefile_am b/comms/java-rxtx/patches/patch-Makefile_am
new file mode 100644
index 00000000000..3ad8d407d20
--- /dev/null
+++ b/comms/java-rxtx/patches/patch-Makefile_am
@@ -0,0 +1,19 @@
+$NetBSD: patch-Makefile_am,v 1.1 2013/02/11 01:13:20 dsainty Exp $
+
+A Jar can't be stripped nor executed - it's data.
+
+Add DESTDIR support.
+
+--- Makefile.am.orig 2005-07-08 15:47:33.000000000 +1200
++++ Makefile.am 2011-11-29 02:56:50.674521001 +1300
+@@ -86,8 +86,8 @@
+ if [ -f $$i ];then \
+ echo $$i; \
+ fi; \
+- done` $(RXTX_PATH)
+- $(INSTALL_PROGRAM) $(JARTARGET) $(JHOME)/
++ done` $(DESTDIR)$(RXTX_PATH)
++ $(INSTALL_DATA) $(JARTARGET) $(DESTDIR)$(JHOME)/
+
+ clean-generic:
+ rm -rf $(DEST) $(TOP)/$(CLASSTOP)
diff --git a/comms/java-rxtx/patches/patch-configure_in b/comms/java-rxtx/patches/patch-configure_in
new file mode 100644
index 00000000000..4521541bd0b
--- /dev/null
+++ b/comms/java-rxtx/patches/patch-configure_in
@@ -0,0 +1,52 @@
+$NetBSD: patch-configure_in,v 1.1 2013/02/11 01:13:20 dsainty Exp $
+
+AM_CONFIG_HEADER is obsolete.
+
+UTS_RELEASE isn't even reliably available on Linux, let alone portable.
+
+Recognise Java 1.6, and openjdk7 as 1.7.
+
+--- configure.in.orig 2006-01-30 17:37:47.000000000 +1300
++++ configure.in 2013-01-30 15:15:04.159793907 +1300
+@@ -17,7 +17,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ #-------------------------------------------------------------------------
+ AC_INIT(src/SerialImp.c)
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+ AC_CANONICAL_SYSTEM
+ AC_MSG_WARN(Trying libtool. If the following fails install libtool)
+ AC_PROG_CC
+@@ -458,12 +458,12 @@
+ [ case $OS_NAME in
+ Linux)
+ LDFLAGS=$LDFLAGS" -lpthread"
+- check_kernel_headers
++ #check_kernel_headers
+ check_java_headers
+ CFLAGS=$CFLAGS" -D__need_timespec"
+ case $JAVA_VERSION in
+
+- 1.2*|1.3*|1.4*|1.5*)
++ 1.2*|1.3*|1.4*|1.5*|1.6*|1.7*)
+ #fix_parameters $JPATH/jre/lib/javax.comm.properties
+ CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1`
+ JHOME=$JPATH"/jre/lib/ext"
+@@ -533,7 +533,7 @@
+ TARGETLIB="\$(target_triplet)/librxtxSerial.la \
+ \$(target_triplet)/librxtxParallel.la"
+ case $JAVA_VERSION in
+- 1.2*|1.3*|1.4*|1.5*)
++ 1.2*|1.3*|1.4*|1.5*|1.6*|1.7*)
+ #fix_parameters $JPATH/jre/lib/javax.comm.properties
+ CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1`
+ RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
+@@ -721,7 +721,7 @@
+ CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
+
+ case $JAVA_VERSION in
+- 1.2*|1.3*|1.4*|1.5*)
++ 1.2*|1.3*|1.4*|1.5*|1.6*|1.7*)
+ RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
+ ;;
+ 1.1*)
diff --git a/comms/java-rxtx/patches/patch-src_I2CImp_c b/comms/java-rxtx/patches/patch-src_I2CImp_c
new file mode 100644
index 00000000000..af605e991e2
--- /dev/null
+++ b/comms/java-rxtx/patches/patch-src_I2CImp_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_I2CImp_c,v 1.1 2013/02/11 01:13:21 dsainty Exp $
+
+UTS_RELEASE isn't even reliably available on Linux, let alone portable.
+
+--- src/I2CImp.c.orig 2011-11-29 00:39:56.242521000 +1300
++++ src/I2CImp.c 2011-11-29 00:40:16.090521000 +1300
+@@ -86,7 +86,7 @@
+ sigaction( SIGIO, NULL, &handler );
+ if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
+ #endif /* !__FreeBSD__ */
+-#if defined(__linux__)
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {
diff --git a/comms/java-rxtx/patches/patch-src_RS485Imp_c b/comms/java-rxtx/patches/patch-src_RS485Imp_c
new file mode 100644
index 00000000000..bb76e82ba23
--- /dev/null
+++ b/comms/java-rxtx/patches/patch-src_RS485Imp_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_RS485Imp_c,v 1.1 2013/02/11 01:13:21 dsainty Exp $
+
+UTS_RELEASE isn't even reliably available on Linux, let alone portable.
+
+--- src/RS485Imp.c.orig 2011-11-29 00:38:07.798521000 +1300
++++ src/RS485Imp.c 2011-11-29 00:38:52.626521000 +1300
+@@ -86,7 +86,7 @@
+ sigaction( SIGIO, NULL, &handler );
+ if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
+ #endif /* !__FreeBSD__ */
+-#if defined(__linux__)
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {
diff --git a/comms/java-rxtx/patches/patch-src_RawImp_c b/comms/java-rxtx/patches/patch-src_RawImp_c
new file mode 100644
index 00000000000..1fc27103217
--- /dev/null
+++ b/comms/java-rxtx/patches/patch-src_RawImp_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_RawImp_c,v 1.1 2013/02/11 01:13:21 dsainty Exp $
+
+UTS_RELEASE isn't even reliably available on Linux, let alone portable.
+
+--- src/RawImp.c.orig 2011-11-29 00:35:42.582521001 +1300
++++ src/RawImp.c 2011-11-29 00:36:06.226521000 +1300
+@@ -230,7 +230,7 @@
+ sigaction( SIGIO, NULL, &handler );
+ if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
+ #endif /* !__FreeBSD__ */
+-#if defined(__linux__)
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {
diff --git a/comms/java-rxtx/patches/patch-src_SerialImp_c b/comms/java-rxtx/patches/patch-src_SerialImp_c
new file mode 100644
index 00000000000..5b57e3545f8
--- /dev/null
+++ b/comms/java-rxtx/patches/patch-src_SerialImp_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_SerialImp_c,v 1.1 2013/02/11 01:13:21 dsainty Exp $
+
+UTS_RELEASE isn't even reliably available on Linux, let alone portable.
+
+--- src/SerialImp.c.orig 2011-11-29 00:22:44.514521000 +1300
++++ src/SerialImp.c 2011-11-29 00:23:01.778521001 +1300
+@@ -279,7 +279,7 @@
+ #if DEBUG_TIMING
+ gettimeofday(&seloop, NULL);
+ #endif /* DEBUG_TIMING */
+-#if defined(DEBUG) && defined(__linux__)
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {
diff --git a/comms/java-rxtx/patches/patch-src_SerialImp_cpp b/comms/java-rxtx/patches/patch-src_SerialImp_cpp
new file mode 100644
index 00000000000..27d8baac70f
--- /dev/null
+++ b/comms/java-rxtx/patches/patch-src_SerialImp_cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_SerialImp_cpp,v 1.1 2013/02/11 01:13:22 dsainty Exp $
+
+UTS_RELEASE isn't even reliably available on Linux, let alone portable.
+
+--- src/SerialImp.cpp.orig 2011-11-29 00:31:50.230521000 +1300
++++ src/SerialImp.cpp 2011-11-29 00:32:05.906521000 +1300
+@@ -101,7 +101,7 @@
+ sigaction( SIGIO, NULL, &handler );
+ if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
+ #endif /* !__FreeBSD__ */
+-#ifdef DEBUG
++#if 0
+ /* Lets let people who upgraded kernels know they may have problems */
+ if (uname (&name) == -1)
+ {