aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorDiane Bruce <db@FreeBSD.org>2008-01-31 17:35:39 +0000
committerDiane Bruce <db@FreeBSD.org>2008-01-31 17:35:39 +0000
commit45c354e681e1e4a3fbcd8f2f4692a5227dad142a (patch)
treee2566deca2ec5e42d2ee5ce3b716ef5455401657 /comms
parent86a019e6d2758cb9dff086a4935f0852c9351e55 (diff)
downloadports-45c354e681e1e4a3fbcd8f2f4692a5227dad142a.tar.gz
ports-45c354e681e1e4a3fbcd8f2f4692a5227dad142a.zip
Notes
Diffstat (limited to 'comms')
-rw-r--r--comms/fldigi/Makefile34
-rw-r--r--comms/fldigi/distinfo6
-rw-r--r--comms/fldigi/files/patch-Makefile39
-rw-r--r--comms/fldigi/files/patch-src_Makefile.in21
-rw-r--r--comms/fldigi/pkg-plist7
5 files changed, 44 insertions, 63 deletions
diff --git a/comms/fldigi/Makefile b/comms/fldigi/Makefile
index b63a304310a8..a2ed3cdd5f3d 100644
--- a/comms/fldigi/Makefile
+++ b/comms/fldigi/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= fldigi
-PORTVERSION= 2.03
+PORTVERSION= 2.08
CATEGORIES= comms hamradio
MASTER_SITES= http://www.w1hkj.com/fldigi-2.0.distro/ \
${MASTER_SITE_LOCAL}
@@ -15,33 +15,33 @@ MASTER_SITE_SUBDIR= db
MAINTAINER= db@FreeBSD.org
COMMENT= Digital decoder for psk, cw, psk31, olivia
+BUILD_DEPENDS= ${LOCALBASE}/lib/portaudio2/libportaudio.so:${PORTSDIR}/audio/portaudio2
LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk-threads \
hamlib:${PORTSDIR}/comms/hamlib \
sndfile:${PORTSDIR}/audio/libsndfile \
boost_wave:${PORTSDIR}/devel/boost
USE_GMAKE= yes
-
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ENV+= CXX="${CXX}"
-post-patch:
- @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/Makefile
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/Install/fldigi ${PREFIX}/bin/fldigi
- ${MKDIR} ${DATADIR}
-.for f in ${WRKSRC}/icons/fldigi-psk.png \
- ${WRKSRC}/icons/fldigi-rtty.png \
- ${WRKSRC}/icons/fldigi.xpm
- ${INSTALL_DATA} ${WRKSRC}$f ${DATADIR}
-.endfor
- @${ECHO} ""
+.include <bsd.port.pre.mk>
+.if ${ARCH} == "amd64" && ${OSVERSION} < 700000
+USE_GCC= 4.1
+.endif
+
+post-configure:
+ @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
+ ${WRKSRC}/src/Makefile
+
+post-install:
.if !defined(NOPORTDOCS)
+ @${ECHO} ""
${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@${ECHO} "fldigi docs installed in ${DOCSDIR}"
-.endif
- @${ECHO} "fldigi icons installed in ${DATADIR}"
@${ECHO} ""
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/comms/fldigi/distinfo b/comms/fldigi/distinfo
index afd3a41537f8..036558d2ccb7 100644
--- a/comms/fldigi/distinfo
+++ b/comms/fldigi/distinfo
@@ -1,3 +1,3 @@
-MD5 (fldigi-2.03.tar.gz) = 5518c16b1671119c381fb68ccdf6fba7
-SHA256 (fldigi-2.03.tar.gz) = 9615735fc305e7d6c06908206674cfe4f6b0fb3c5debac010febf5a62c34de7f
-SIZE (fldigi-2.03.tar.gz) = 449658
+MD5 (fldigi-2.08.tar.gz) = c4de82f422a5b3e3b29e168ac2f850b2
+SHA256 (fldigi-2.08.tar.gz) = 024c2c090ca42bfea603c31198cb15e6be84cea1b298d73c26e991d0dcd470a8
+SIZE (fldigi-2.08.tar.gz) = 540064
diff --git a/comms/fldigi/files/patch-Makefile b/comms/fldigi/files/patch-Makefile
deleted file mode 100644
index ea63bbf1ffc8..000000000000
--- a/comms/fldigi/files/patch-Makefile
+++ /dev/null
@@ -1,39 +0,0 @@
---- Makefile.orig 2007-10-20 19:22:39.000000000 -0400
-+++ Makefile 2007-10-29 13:17:56.000000000 -0400
-@@ -46,10 +46,10 @@
-
-
- # compiler and preprocessor options
--CXX = g++
-+CXX ?= g++
-
--INCLUDE_DIRS = src src/include src/irrxml
--CPPFLAGS = $(addprefix -I,$(INCLUDE_DIRS)) -DNDEBUG -DUSE_TLS=$(USE_TLS)
-+INCLUDE_DIRS = src src/include src/irrxml
-+CPPFLAGS = $(addprefix -I,$(INCLUDE_DIRS)) -I%%LOCALBASE%%/include -DNDEBUG -DUSE_TLS=$(USE_TLS)
-
- #CXXFLAGS = -pipe $(shell fltk-config --cxxflags) -Wall -Wno-deprecated -O2 -ffast-math -fno-rtti -fexceptions
- CXXFLAGS = -pipe $(shell fltk-config --cxxflags) -Wno-uninitialized -Wno-deprecated \
-@@ -63,8 +63,8 @@
- IMGLIBS = -lfltk_jpeg -lfltk_png -lfltk_z
- #LIB_DIRS = -L/usr/local/lib
-
--DYN_LDFLAGS = $(shell fltk-config --ldflags --use-images)
--STATIC_LDFLAGS = $(shell fltk-config --ldstaticflags --use-images)
-+DYN_LDFLAGS = $(shell fltk-config --ldflags --use-images) -L%%LOCALBASE%%/lib
-+STATIC_LDFLAGS = $(shell fltk-config --ldstaticflags --use-images) -L%%LOCALBASE%%/lib
-
- # our source files
- SRC_DIR = src
-@@ -159,8 +159,9 @@
-
- #################### begin cfg
- ifeq ($(CTARG),hamlib)
-- CPPFLAGS += -DPORTAUDIO
-- LDFLAGS = $(DYN_LDFLAGS) -lportaudiocpp -lportaudio -lsndfile $(HAMLIBS)
-+# CPPFLAGS += -DPORTAUDIO
-+# LDFLAGS = $(DYN_LDFLAGS) -lportaudiocpp -lportaudio -lsndfile $(HAMLIBS)
-+ LDFLAGS = $(DYN_LDFLAGS) -lsndfile $(HAMLIBS)
- SRC += $(HAMLIB_SRC)
- endif
-
diff --git a/comms/fldigi/files/patch-src_Makefile.in b/comms/fldigi/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..44ca17ee5357
--- /dev/null
+++ b/comms/fldigi/files/patch-src_Makefile.in
@@ -0,0 +1,21 @@
+--- src/Makefile.in.orig 2008-01-26 07:59:17.000000000 -0500
++++ src/Makefile.in 2008-01-31 11:42:23.000000000 -0500
+@@ -280,15 +280,15 @@
+ target_alias = @target_alias@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/irrxml \
++AM_CPPFLAGS = @PORTAUDIO_CFLAGS@ -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/irrxml \
+ @BOOST_CPPFLAGS@ $(am__append_1) $(am__append_3) \
+ $(am__append_4)
+-AM_CXXFLAGS = @FLTK_CFLAGS@ @PORTAUDIO_CFLAGS@ @SNDFILE_CFLAGS@ \
++AM_CXXFLAGS = @PORTAUDIO_CFLAGS@ @FLTK_CFLAGS@ @SNDFILE_CFLAGS@ \
+ @SAMPLERATE_CFLAGS@ @HAMLIB_CFLAGS@ \
+ -pipe -Wall -O2 -ffast-math -fexceptions -finline-functions
+
+ AM_CFLAGS = $(AM_CXXFLAGS)
+-LDADD = @BOOST_LDFLAGS@ @FLTK_LIBS@ @PORTAUDIO_LIBS@ @SNDFILE_LIBS@ \
++LDADD = @PORTAUDIO_LIBS@ @BOOST_LDFLAGS@ @FLTK_LIBS@ @SNDFILE_LIBS@ \
+ @SAMPLERATE_LIBS@ @HAMLIB_LIBS@ @RTLIB@ $(am__append_2)
+ SAMPLERATE_SRC = samplerate/common.h samplerate/fastest_coeffs.h \
+ samplerate/float_cast.h samplerate/samplerate.c samplerate/samplerate.h \
diff --git a/comms/fldigi/pkg-plist b/comms/fldigi/pkg-plist
index ed5aca19c8d5..a63dee951d04 100644
--- a/comms/fldigi/pkg-plist
+++ b/comms/fldigi/pkg-plist
@@ -1,7 +1,6 @@
bin/fldigi
-%%DATADIR%%/fldigi.xpm
-%%DATADIR%%/fldigi-psk.png
-%%DATADIR%%/fldigi-rtty.png
+share/applications/fldigi.desktop
+share/pixmaps/fldigi.xpm
%%PORTDOCS%%%%DOCSDIR%%/README
-@dirrm %%DATADIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry share/applications