summaryrefslogtreecommitdiff
path: root/comms/xdemorse
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2019-05-06 03:14:08 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2019-05-06 03:14:08 +0000
commitbfed6d1a9ea9a2979c20dac2602e68c02192ca15 (patch)
tree9b33eb2eb11ac87c6ac68ad6d1168020bb7e12e1 /comms/xdemorse
parentNew port: emulators/pcem: PC-Compatible low-level emulator striving for accuracy (diff)
New port: comms/xdemorse: X/GTK+-3 application for decoding Morse code signals into text
Notes
Notes: svn path=/head/; revision=500882
Diffstat (limited to 'comms/xdemorse')
-rw-r--r--comms/xdemorse/Makefile31
-rw-r--r--comms/xdemorse/distinfo3
-rw-r--r--comms/xdemorse/files/patch-Makefile.in38
-rw-r--r--comms/xdemorse/pkg-descr9
4 files changed, 81 insertions, 0 deletions
diff --git a/comms/xdemorse/Makefile b/comms/xdemorse/Makefile
new file mode 100644
index 000000000000..289c37fead47
--- /dev/null
+++ b/comms/xdemorse/Makefile
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+PORTNAME= xdemorse
+DISTVERSION= 3.6.2
+CATEGORIES= comms
+MASTER_SITES= https://www.qsl.net/5/5b4az/pkg/morse/xdemorse/
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= X/GTK+-3 application for decoding Morse code signals into text
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libasound.so:audio/alsa-lib
+
+USES= gettext-tools gmake gnome localbase:ldflags pkgconfig tar:bz2
+GNU_CONFIGURE= yes
+USE_GNOME= cairo gdkpixbuf2 glib20 gtk30
+
+LDFLAGS+= -lgmodule-2.0
+
+PLIST_FILES= bin/${PORTNAME} \
+ man/man1/${PORTNAME}.1.gz \
+ share/applications/${PORTNAME}.desktop \
+ share/pixmaps/${PORTNAME}.png
+
+OPTIONS_DEFINE= DOCS
+
+PORTDOCS= *
+
+.include <bsd.port.mk>
diff --git a/comms/xdemorse/distinfo b/comms/xdemorse/distinfo
new file mode 100644
index 000000000000..35f2b4388693
--- /dev/null
+++ b/comms/xdemorse/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1557108773
+SHA256 (xdemorse-3.6.2.tar.bz2) = 8abecc219fd8293963766457e0fa952f7be715f7c8837bdcaa45a890829aebd4
+SIZE (xdemorse-3.6.2.tar.bz2) = 257003
diff --git a/comms/xdemorse/files/patch-Makefile.in b/comms/xdemorse/files/patch-Makefile.in
new file mode 100644
index 000000000000..157bf43caf7d
--- /dev/null
+++ b/comms/xdemorse/files/patch-Makefile.in
@@ -0,0 +1,38 @@
+--- Makefile.in.orig 2019-05-06 02:59:19 UTC
++++ Makefile.in
+@@ -900,22 +900,22 @@ uninstall-am:
+ install-data-local:
+ @$(NORMAL_INSTALL)
+ if test -d files/; then \
+- cp files/$(PACKAGE).desktop $(DESTDIR)/usr/share/applications/; \
+- cp files/$(PACKAGE).png $(DESTDIR)/usr/share/pixmaps/; \
++ cp files/$(PACKAGE).desktop $(DESTDIR)$(prefix)/share/applications/; \
++ cp files/$(PACKAGE).png $(DESTDIR)$(prefix)/share/pixmaps/; \
+ fi; \
+- if !(test -d $(DESTDIR)/usr/share/doc/$(PACKAGE)); then \
+- mkdir $(DESTDIR)/usr/share/doc/$(PACKAGE)/; \
++ if !(test -d $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)); then \
++ mkdir $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)/; \
+ fi; \
+ if test -d doc/; then \
+- cp -r doc/* $(DESTDIR)/usr/share/doc/$(PACKAGE)/; \
+- cp -r doc/$(PACKAGE).1.gz $(DESTDIR)/usr/share/man/man1/; \
+- fi; \
+- if !(test -d /home/`logname`/.$(PACKAGE)); then \
+- cp -r .$(PACKAGE) /home/`logname`/; \
+- else \
+- cp .$(PACKAGE)/$(PACKAGE).glade /home/`logname`/.$(PACKAGE); \
+- fi; \
+- chown -R `logname`:`logname` /home/`logname`/.$(PACKAGE);
++ cp -r doc/* $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)/; \
++ cp -r doc/$(PACKAGE).1.gz $(DESTDIR)$(prefix)/man/man1/; \
++ fi;
++ #if !(test -d /home/`logname`/.$(PACKAGE)); then \
++ # cp -r .$(PACKAGE) /home/`logname`/; \
++ #else \
++ # cp .$(PACKAGE)/$(PACKAGE).glade /home/`logname`/.$(PACKAGE); \
++ #fi; \
++ #chown -R `logname`:`logname` /home/`logname`/.$(PACKAGE);
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/comms/xdemorse/pkg-descr b/comms/xdemorse/pkg-descr
new file mode 100644
index 000000000000..e8dbe6688d9f
--- /dev/null
+++ b/comms/xdemorse/pkg-descr
@@ -0,0 +1,9 @@
+xdemorse is a X/GTK+-3 application for decoding Morse code signals into text.
+xdemorse detects the "dihs" and "dahs" that make a Morse code character via the
+computer's sound card, which can be connected to a radio receiver tuned to a CW
+Morse code transmission or to a tone generator. The input signal is processed by
+a Goertzel tone detector algorithm which produces "mark" or "space" (signal/no
+signal) outputs and the resulting stream of Morse code "elements" is decoded
+into an ASCII character for printing to the Text viewer.
+
+WWW: https://www.qsl.net/5b4az/pkg/morse/xdemorse/xdemorse.html