Bug 65396 - New port: java/rxtx: Native interface to serial ports in Java
Summary: New port: java/rxtx: Native interface to serial ports in Java
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Herve Quiroz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-10 13:20 UTC by Jean-Baptiste Quenot
Modified: 2004-10-20 12:19 UTC (History)
1 user (show)

See Also:


Attachments
file.shar (2.96 KB, text/plain)
2004-04-10 13:20 UTC, Jean-Baptiste Quenot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Baptiste Quenot 2004-04-10 13:20:11 UTC
RXTX  : serial  and  parallel  I/O libraries  supporting
Sun's CommAPI.   Open-source implementation of  the Java
Communications API.  Native interface to serial ports in
Java.

WWW: http://www.rxtx.org/
Comment 1 Herve Quiroz freebsd_committer freebsd_triage 2004-09-01 14:26:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->hq

I'll handle this.
Comment 2 Hervé Quiroz 2004-09-01 17:14:54 UTC
Hi Jean-Baptiste,


Here's what I get:

$ make
===>  rxtx-2.1.7p17 is marked as broken: USE_LIBTOOL deprecated: replace with USE_LIBTOOL_VER=....


BTW, on the portlint front:

FATAL: Makefile: extra item "ODISTNAME" placed in the PORTNAME section.


Would you consider creating this port as comms/rxtx rather than
java/rxtx ?

Also, I would be glad if you could make the port bsd.java.mk 2.0
compliant:

USE_JAVA=	yes
JAVA_VERSION=	1.1+

Herve
Comment 3 Jean-Baptiste Quenot 2004-09-01 17:25:45 UTC
Dear Hervé,

Please find below an updated shell archive.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	rxtx
#	rxtx/files
#	rxtx/files/patch-ab
#	rxtx/files/patch-ac
#	rxtx/files/patch-aa
#	rxtx/pkg-descr
#	rxtx/distinfo
#	rxtx/pkg-plist
#	rxtx/Makefile
#
echo c - rxtx
mkdir -p rxtx > /dev/null 2>&1
echo c - rxtx/files
mkdir -p rxtx/files > /dev/null 2>&1
echo x - rxtx/files/patch-ab
sed 's/^X//' >rxtx/files/patch-ab << 'END-of-rxtx/files/patch-ab'
X--- Makefile.in.orig	Fri Apr  9 23:57:20 2004
X+++ Makefile.in	Fri Apr  9 23:58:06 2004
X@@ -451,7 +451,7 @@
X 			echo $$i; \
X 		fi; \
X 	done` $(RXTX_PATH)
X-	$(INSTALL_PROGRAM) $(JARTARGET) $(JHOME)/
X+	$(INSTALL) $(JARTARGET) $(JHOME)/
X 
X clean-generic:
X 	rm -rf $(DEST) $(TOP)/$(CLASSTOP)
END-of-rxtx/files/patch-ab
echo x - rxtx/files/patch-ac
sed 's/^X//' >rxtx/files/patch-ac << 'END-of-rxtx/files/patch-ac'
X--- src/SerialImp.h.orig	Sat Apr 24 23:31:27 2004
X+++ src/SerialImp.h	Sat Apr 24 23:31:38 2004
X@@ -126,7 +126,7 @@
X #endif /* __sgi__ || sgi */
X #if defined(__FreeBSD__)
X #	define DEVICEDIR "/dev/"
X-#	define LOCKDIR "/var/spool/uucp"
X+#	define LOCKDIR "/var/spool/lock"
X #	define LOCKFILEPREFIX "LK."
X #	define UUCP
X #endif
END-of-rxtx/files/patch-ac
echo x - rxtx/files/patch-aa
sed 's/^X//' >rxtx/files/patch-aa << 'END-of-rxtx/files/patch-aa'
X--- src/ParallelImp.c.orig	Fri Apr  9 23:31:09 2004
X+++ src/ParallelImp.c	Fri Apr  9 23:35:01 2004
X@@ -222,9 +222,6 @@
X #if defined(__linux__)
X 	return( status & LP_BUSY ? JNI_TRUE : JNI_FALSE );
X #endif
X-#if defined(__FreeBSD__)
X-	return( status & EBUSY ? JNI_TRUE : JNI_FALSE );
X-#endif
X 	return(JNI_FALSE);
X }
X /*----------------------------------------------------------
END-of-rxtx/files/patch-aa
echo x - rxtx/pkg-descr
sed 's/^X//' >rxtx/pkg-descr << 'END-of-rxtx/pkg-descr'
XRXTX  : serial  and  parallel  I/O libraries  supporting
XSun's CommAPI.   Open-source implementation of  the Java
XCommunications API.  Native interface to serial ports in
XJava.
X
XWWW: http://www.rxtx.org/
END-of-rxtx/pkg-descr
echo x - rxtx/distinfo
sed 's/^X//' >rxtx/distinfo << 'END-of-rxtx/distinfo'
XMD5 (rxtx-2.1-7pre17.tar.gz) = 1ae2a0fc82bfb3f7a911f2313c8cad44
XSIZE (rxtx-2.1-7pre17.tar.gz) = 985729
END-of-rxtx/distinfo
echo x - rxtx/pkg-plist
sed 's/^X//' >rxtx/pkg-plist << 'END-of-rxtx/pkg-plist'
Xlib/ext/RXTXcomm.jar
Xlib/i386/librxtxParallel-2.1-7pre17.so
Xlib/i386/librxtxParallel.la
Xlib/i386/librxtxParallel.so
Xlib/i386/librxtxSerial-2.1-7pre17.so
Xlib/i386/librxtxSerial.la
Xlib/i386/librxtxSerial.so
END-of-rxtx/pkg-plist
echo x - rxtx/Makefile
sed 's/^X//' >rxtx/Makefile << 'END-of-rxtx/Makefile'
X# New ports collection makefile for:   rxtx
X# Whom:                                Jean-Baptiste Quenot <jb.quenot@caraldi.com>
X# Date Created:                        2004-04-10 00:15:35
X#
X# ex:ts=18
X#
X# $FreeBSD$
X#
X
XPORTNAME=	rxtx
XPORTVERSION=	2.1.7p17
XCATEGORIES=	comms java
XMASTER_SITES=	ftp://jarvi.dsl.frii.com/pub/rxtx/
XDISTNAME=	${ODISTNAME:S/p/pre/}
X
XMAINTAINER=	jb.quenot@caraldi.com
XCOMMENT=	Native interface to serial ports in Java
X
XUSE_GMAKE=	yes
XUSE_JAVA=	yes
XJAVA_VERSION=	1.1+
XUSE_LIBTOOL_VER=	13
XINSTALLS_SHLIB=	yes
XMAKE_ENV=	JAVA_HOME=${JAVA_HOME}
XPREFIX=	${JAVA_HOME}/jre
X
XODISTNAME=	${PORTNAME}-${PORTVERSION:C/\.([^\.]*)$/-\1/}
X
X.include <bsd.port.mk>
END-of-rxtx/Makefile
exit
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/
Comment 4 Herve Quiroz freebsd_committer freebsd_triage 2004-09-20 13:05:53 UTC
State Changed
From-To: open->feedback

The port has been reviewed and a new version of the port has been sent to the 
submitter for his approval.
Comment 5 Jean-Baptiste Quenot 2004-09-20 13:21:14 UTC
Hervé,

Those changes look perfect!

Thanks a lot,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/
Comment 6 Herve Quiroz freebsd_committer freebsd_triage 2004-10-20 12:19:32 UTC
State Changed
From-To: feedback->closed

Commited, thanks!