1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

Add cutecom 0.0.5, a graphical serial terminal.

This commit is contained in:
Markus Brueffer 2004-07-15 00:21:07 +00:00
parent 44dd2efdea
commit a5c2db5a19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113676
8 changed files with 138 additions and 0 deletions

View File

@ -14,6 +14,7 @@
SUBDIR += comserv
SUBDIR += conserver
SUBDIR += conserver-com
SUBDIR += cutecom
SUBDIR += echolinux
SUBDIR += ecu
SUBDIR += efax

37
comms/cutecom/Makefile Normal file
View File

@ -0,0 +1,37 @@
# New ports collection makefile for: cutecom
# Date created: Thu Jul 15 02:07:06 CEST 2004
# Whom: Markus Brueffer <markus@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= cutecom
PORTVERSION= 0.0.5
CATEGORIES= comms
MASTER_SITES= http://cutecom.sourceforge.net/
MAINTAINER= markus@FreeBSD.org
COMMENT= Graphical serial terminal
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
USE_QT_VER= 3
MAKE_ENV+= QTDIR="${X11BASE}"
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
-spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ cutecom.pro
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cutecom ${PREFIX}/bin
${MKDIR} ${PREFIX}/share/applnk/Utilities
${INSTALL_DATA} ${WRKSRC}/cutecom.desktop ${PREFIX}/share/applnk/Utilities
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
EXTRA_PATCHES= ${FILESDIR}/current-cutecommdlg.ui.patch
.else
EXTRA_PATCHES= ${FILESDIR}/stable-cutecommdlg.ui.patch
.endif
.include <bsd.port.post.mk>

2
comms/cutecom/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (cutecom-0.0.5.tar.gz) = dea531a2ac9f82312f4888b9a2e7dc28
SIZE (cutecom-0.0.5.tar.gz) = 16150

View File

@ -0,0 +1,14 @@
--- cutecommdlg.ui.orig Thu Jul 15 01:11:45 2004
+++ cutecommdlg.ui Thu Jul 15 01:12:07 2004
@@ -248,11 +248,6 @@
</item>
<item>
<property name="text">
- <string>576000</string>
- </property>
- </item>
- <item>
- <property name="text">
<string>921600</string>
</property>
</item>

View File

@ -0,0 +1,54 @@
--- qcppdialogimpl.cpp.orig Tue Jul 13 21:30:51 2004
+++ qcppdialogimpl.cpp Thu Jul 15 01:45:55 2004
@@ -44,6 +44,9 @@
#include <ctype.h>
#include <sys/ioctl.h>
#include <sys/termios.h>
+#ifdef __FreeBSD__
+#include <sys/time.h>
+#endif
#include <fcntl.h>
QCPPDialogImpl::QCPPDialogImpl(QWidget* parent)
@@ -147,11 +150,19 @@
bool entryFound=false;
QStringList devices=settings.readListEntry("/cutecom/AllDevices", &entryFound);
if (!entryFound)
+#ifdef __FreeBSD__
+ devices<<"/dev/cuaa0"<<"/dev/cuaa1"<<"/dev/cuaa2"<<"/dev/cuaa3";
+#else
devices<<"/dev/ttyS0"<<"/dev/ttyS1"<<"/dev/ttyS2"<<"/dev/ttyS3";
+#endif
m_deviceCb->insertStringList(devices);
+#ifdef __FreeBSD__
+ m_deviceCb->setCurrentText(settings.readEntry("/cutecom/CurrentDevice", "/dev/cuaa0"));
+#else
m_deviceCb->setCurrentText(settings.readEntry("/cutecom/CurrentDevice", "/dev/ttyS0"));
+#endif
}
void QCPPDialogImpl::showAboutMsg()
@@ -610,15 +621,21 @@
case 230400:
_baud=B230400;
break;
+#if !defined(__FreeBSD__) || (_FreeBSD_version > 500000)
case 460800:
_baud=B460800;
break;
+#endif
+#ifndef __FreeBSD__
case 576000:
_baud=B576000;
break;
+#endif
+#if !defined(__FreeBSD__) || (_FreeBSD_version >= 500000)
case 921600:
_baud=B921600;
break;
+#endif
// case 128000:
// _baud=B128000;
// break;

View File

@ -0,0 +1,24 @@
--- cutecommdlg.ui.orig Tue Jul 13 21:24:38 2004
+++ cutecommdlg.ui Thu Jul 15 01:47:55 2004
@@ -241,21 +241,6 @@
<string>230400</string>
</property>
</item>
- <item>
- <property name="text">
- <string>460800</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>576000</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>921600</string>
- </property>
- </item>
<property name="name">
<cstring>m_baudCb</cstring>
</property>

3
comms/cutecom/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
CuteCom is a graphical serial terminal, like minicom.
WWW: http://cutecom.sourceforge.net/

3
comms/cutecom/pkg-plist Normal file
View File

@ -0,0 +1,3 @@
bin/cutecom
share/applnk/Utilities/cutecom.desktop
@unexec rmdir %D/share/applnk/Utilities 2>/dev/null || true