diff options
author | markus <markus@FreeBSD.org> | 2004-07-15 08:21:07 +0800 |
---|---|---|
committer | markus <markus@FreeBSD.org> | 2004-07-15 08:21:07 +0800 |
commit | 6dda2fb49729306d417ec13dd00aa09dda22ec84 (patch) | |
tree | 068197a55d7c406a8e784c1fa74a3847680886a1 /comms/cutecom/files | |
parent | e1d496183e732c4891e7f562be701edea0d6802d (diff) | |
download | freebsd-ports-gnome-6dda2fb49729306d417ec13dd00aa09dda22ec84.tar.gz freebsd-ports-gnome-6dda2fb49729306d417ec13dd00aa09dda22ec84.tar.zst freebsd-ports-gnome-6dda2fb49729306d417ec13dd00aa09dda22ec84.zip |
Add cutecom 0.0.5, a graphical serial terminal.
Diffstat (limited to 'comms/cutecom/files')
-rw-r--r-- | comms/cutecom/files/current-cutecommdlg.ui.patch | 14 | ||||
-rw-r--r-- | comms/cutecom/files/patch-qcppdialogimpl.cpp | 54 | ||||
-rw-r--r-- | comms/cutecom/files/stable-cutecommdlg.ui.patch | 24 |
3 files changed, 92 insertions, 0 deletions
diff --git a/comms/cutecom/files/current-cutecommdlg.ui.patch b/comms/cutecom/files/current-cutecommdlg.ui.patch new file mode 100644 index 000000000000..67276a99aebf --- /dev/null +++ b/comms/cutecom/files/current-cutecommdlg.ui.patch @@ -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> diff --git a/comms/cutecom/files/patch-qcppdialogimpl.cpp b/comms/cutecom/files/patch-qcppdialogimpl.cpp new file mode 100644 index 000000000000..fa5fa98af744 --- /dev/null +++ b/comms/cutecom/files/patch-qcppdialogimpl.cpp @@ -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; diff --git a/comms/cutecom/files/stable-cutecommdlg.ui.patch b/comms/cutecom/files/stable-cutecommdlg.ui.patch new file mode 100644 index 000000000000..bf1adf1ac921 --- /dev/null +++ b/comms/cutecom/files/stable-cutecommdlg.ui.patch @@ -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> |