aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2006-12-22 02:47:33 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2006-12-22 02:47:33 +0000
commitcdcb91922078c3340e4a51d1ef396c987d8d3e9a (patch)
tree4aa3f6b6ca02223238a280d2c832529048eba771 /comms
parent0a5101fcfa4792e20cacb06f31af5129277e66fd (diff)
downloadports-cdcb91922078c3340e4a51d1ef396c987d8d3e9a.tar.gz
ports-cdcb91922078c3340e4a51d1ef396c987d8d3e9a.zip
Notes
Diffstat (limited to 'comms')
-rw-r--r--comms/Makefile1
-rw-r--r--comms/fldigi/Makefile40
-rw-r--r--comms/fldigi/distinfo3
-rw-r--r--comms/fldigi/files/fldigi18
-rw-r--r--comms/fldigi/files/patch-Makefile53
-rw-r--r--comms/fldigi/files/patch-src_include_rigclass.h10
-rw-r--r--comms/fldigi/files/patch-src_soundcard_sound.cxx30
-rw-r--r--comms/fldigi/pkg-descr19
-rw-r--r--comms/fldigi/pkg-plist6
9 files changed, 180 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index ce4cb76fb967..c2d1b0f3b753 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -22,6 +22,7 @@
SUBDIR += ecu
SUBDIR += efax
SUBDIR += efax-gtk
+ SUBDIR += fldigi
SUBDIR += gammu
SUBDIR += garmin-utils
SUBDIR += gfax
diff --git a/comms/fldigi/Makefile b/comms/fldigi/Makefile
new file mode 100644
index 000000000000..604364d2b4b0
--- /dev/null
+++ b/comms/fldigi/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: fldigi
+# Date created: December 20 2006
+# Whom: Diane Bruce <db@db.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fldigi
+PORTVERSION= 1.11
+DISTVERSIONSUFFIX= .src
+CATEGORIES= comms hamradio
+MASTER_SITES= http://www.w1hkj.com/LinuxApps/
+
+MAINTAINER= db@db.net
+COMMENT= Digital decoder for psk, cw, psk31, olivia
+
+LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk-threads \
+ hamlib:${PORTSDIR}/comms/hamlib
+
+USE_GMAKE= yes
+ALL_TARGET= fldigi
+
+MAKE_ENV+= CXX="${CXX}"
+
+post-extract:
+ @${SED} -e 's|%%DATADIR%%|${DATADIR}|' \
+ ${FILESDIR}/${PORTNAME} > ${WRKSRC}/${PORTNAME}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/Release/${PORTNAME} \
+ ${PREFIX}/bin/${PORTNAME}.bin
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/macros.mdf ${DATADIR}
+.if(!defined(NOPORTDOCS))
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/comms/fldigi/distinfo b/comms/fldigi/distinfo
new file mode 100644
index 000000000000..5ece7612c220
--- /dev/null
+++ b/comms/fldigi/distinfo
@@ -0,0 +1,3 @@
+MD5 (fldigi-1.11.src.tar.gz) = 32f3a4fa8f3569b8486650e60c03d538
+SHA256 (fldigi-1.11.src.tar.gz) = b49f962232729cac2ffca28461de28ad1c47aef84bfef22058b5f407ae8c74f9
+SIZE (fldigi-1.11.src.tar.gz) = 376827
diff --git a/comms/fldigi/files/fldigi b/comms/fldigi/files/fldigi
new file mode 100644
index 000000000000..ac779ef56c7a
--- /dev/null
+++ b/comms/fldigi/files/fldigi
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# fldigi install shell script
+# loosely based on original script by Dave Freese, W1HKJ
+#
+# $FreeBSD$
+#
+
+installdir=$HOME/.fldigi
+macrofile=%%DATADIR%%/macros.mdf
+
+if [ ! -d $installdir ]; then
+ mkdir $installdir
+ cp $macrofile $installdir
+ echo "You should edit $HOME/.flidi/macros.mdf"
+fi
+cd $installdir
+fldigi.bin
diff --git a/comms/fldigi/files/patch-Makefile b/comms/fldigi/files/patch-Makefile
new file mode 100644
index 000000000000..b73f850c71f5
--- /dev/null
+++ b/comms/fldigi/files/patch-Makefile
@@ -0,0 +1,53 @@
+--- Makefile.orig Wed Dec 20 03:31:04 2006
++++ Makefile Fri Dec 22 00:56:54 2006
+@@ -3,23 +3,19 @@
+ ## Copyright (c) 2005 by Parinya Thipchart
+ #################################################################
+
+-ifneq (,$(findstring Release, $(CFG)))
+- override CFG = Release
+-else
+- override CFG = Debug
+-endif
++CFG = Release
+
+ PROJECT = fldigi
+-CC = "/usr/bin/g++"
++CXX ?= c++
++CC = ${CXX}
+
+ ifeq ($(CFG),Debug)
+ OBJ_DIR = Debug
+ OUTPUT_DIR = Debug
+ TARGET = fldigi
+- C_INCLUDE_DIRS = -I"src" -I"src/include"
+ C_PREPROC =
+- CFLAGS = -pipe `fltk-config --cxxflags` -Wno-deprecated -ffast-math -Wall -ggdb2 -O0 -fno-rtti -fexceptions
+- LIB_DIRS = -L"src/lib /usr/local/lib" -L"../../../../../usr/local/lib"
++ CFLAGS = -pipe -I"src" -I"src/include" `fltk-config --cxxflags` -Wno-deprecated -ffast-math -Wall -ggdb2 -O0 -fno-rtti -fexceptions
++ LIB_DIRS = -L"src/lib $(PREFIX)/lib" -L"$(PREFIX)/lib"
+ LIBS = -lhamlib -lfltk_images -ljpeg -lpng
+ LDFLAGS = -pipe `fltk-config --ldflags --use-images`
+ endif
+@@ -28,10 +24,9 @@
+ OBJ_DIR = Release
+ OUTPUT_DIR = Release
+ TARGET = fldigi
+- C_INCLUDE_DIRS = -I"src" -I"src/include"
+ C_PREPROC =
+- CFLAGS = -pipe `fltk-config --cxxflags` -Wno-deprecated -ffast-math -Wall -g0 -O2 -fno-rtti -fexceptions
+- LIB_DIRS = -L"src/lib" -L"../../../../../usr/local/lib"
++ CFLAGS += -I"src" -I"src/include" `fltk-config --cxxflags` -Wno-deprecated -ffast-math -Wall -g0 -fno-rtti -fexceptions
++ LIB_DIRS = -L"src/lib" -L"$(PREFIX)/lib"
+ LIBS = -lhamlib -lfltk_images -ljpeg -lpng -lz
+ LDFLAGS = -pipe -s `fltk-config --ldflags --use-images`
+ endif
+@@ -105,7 +100,7 @@
+
+ define compile_source
+ @echo Compiling $<
+-@$(CC) $(CFLAGS) $(C_PREPROC) $(C_INCLUDE_DIRS) -c "$<" -o "$@"
++@$(CC) $(CFLAGS) $(C_PREPROC) -c "$<" -o "$@"
+ endef
+
+ .PHONY: print_header directories
diff --git a/comms/fldigi/files/patch-src_include_rigclass.h b/comms/fldigi/files/patch-src_include_rigclass.h
new file mode 100644
index 000000000000..e68c4cae1f76
--- /dev/null
+++ b/comms/fldigi/files/patch-src_include_rigclass.h
@@ -0,0 +1,10 @@
+--- src/include/rigclass.h.orig Tue Dec 19 21:31:04 2006
++++ src/include/rigclass.h Wed Dec 20 18:38:55 2006
+@@ -15,7 +15,6 @@
+ #include <list>
+
+ #include <hamlib/rig.h>
+-#include <values.h>
+ #include <assert.h>
+ #include <errno.h>
+
diff --git a/comms/fldigi/files/patch-src_soundcard_sound.cxx b/comms/fldigi/files/patch-src_soundcard_sound.cxx
new file mode 100644
index 000000000000..126aa00e60ae
--- /dev/null
+++ b/comms/fldigi/files/patch-src_soundcard_sound.cxx
@@ -0,0 +1,30 @@
+--- src/soundcard/sound.cxx.orig Tue Dec 19 21:31:04 2006
++++ src/soundcard/sound.cxx Wed Dec 20 18:46:00 2006
+@@ -16,7 +16,9 @@
+
+ try {
+ Open(O_RDONLY);
++#if 0
+ getVersion();
++#endif
+ getCapabilities();
+ getFormats();
+ Close();
+@@ -78,7 +80,7 @@
+ {
+ int sndparam;
+ // Try to get ~100ms worth of samples per fragment
+- sndparam = (int)log2(sample_frequency * 0.1);
++ sndparam = (int)log2((unsigned int)(sample_frequency * 0.1));
+ // double since we are using 16 bit samples
+ sndparam += 1;
+ // Unlimited amount of buffers for RX, four for TX
+@@ -120,7 +122,7 @@
+ void cSound::getVersion()
+ {
+ version = 0;
+- if (ioctl(device_fd, OSS_GETVERSION, &version) == -1) {
++ if (ioctl(device_fd, SOUND_VERSION, &version) == -1) {
+ version = -1;
+ throw SndException("OSS Version");
+ }
diff --git a/comms/fldigi/pkg-descr b/comms/fldigi/pkg-descr
new file mode 100644
index 000000000000..56b38b323282
--- /dev/null
+++ b/comms/fldigi/pkg-descr
@@ -0,0 +1,19 @@
+Digital modem program.
+Supports the following digital modes:
+
+CW,
+DominoEX 4 DominoEX 5 DominoEX 8 DominoEX 11 DominoEX 16 DominoEX 22,
+Feld-Hell FSK-Hell FSK-Hell 105,
+MFSK-8 MFSK-16 MFSK-16 pix ,
+PSK-31 QPSK-31 PSK-63 QPSK-63 PSK-125 QPSK-125,
+OLIVIA various tones and bandwidth,
+RTTY various Baud Rates, Shifts, Nbr of data bits, etc.,
+Throb-1 Throb-2 Throb-4 ThrobX-1 ThrobX-2 ThrobX-4,
+WWV Receive only - calibrate your sound card to WWV and
+Freq Analysis Receive only - be ready for the (next)
+ARRL FMT (freq meas test).
+
+WWW: http://www.w1hkj.com/Fldigi.html
+
+- Diane VA3DB
+db@db.net
diff --git a/comms/fldigi/pkg-plist b/comms/fldigi/pkg-plist
new file mode 100644
index 000000000000..dbd56516cbe3
--- /dev/null
+++ b/comms/fldigi/pkg-plist
@@ -0,0 +1,6 @@
+bin/fldigi.bin
+bin/fldigi
+%%DATADIR%%/macros.mdf
+%%PORTDOCS%%%%DOCSDIR%%/README
+@dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%