- Unbreak build

- See http://www.w1hkj.com/Fldigi.html many fixes and enhancements to macro
  system, internationalisation, UI and modems

Feature safe:	Yes
This commit is contained in:
Diane Bruce 2011-12-07 21:02:18 +00:00
parent dc451a7ea8
commit cc1b0786f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287034
4 changed files with 27 additions and 13 deletions

View file

@ -6,7 +6,7 @@
# #
PORTNAME= fldigi PORTNAME= fldigi
PORTVERSION= 3.21.12 PORTVERSION= 3.21.31
CATEGORIES= comms hamradio CATEGORIES= comms hamradio
MASTER_SITES= http://www.w1hkj.com/downloads/fldigi/ \ MASTER_SITES= http://www.w1hkj.com/downloads/fldigi/ \
${MASTER_SITE_LOCAL} ${MASTER_SITE_LOCAL}
@ -17,17 +17,18 @@ COMMENT= Digital decoder for psk, cw, psk31, olivia
LICENSE= GPLv3 LICENSE= GPLv3
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk \ LIB_DEPENDS= samplerate:${PORTSDIR}/audio/libsamplerate
samplerate:${PORTSDIR}/audio/libsamplerate
BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \ BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \
xsltproc:${PORTSDIR}/textproc/libxslt xsltproc:${PORTSDIR}/textproc/libxslt \
${LOCALBASE}/lib/fltk11/libfltk.so:${PORTSDIR}/x11-toolkits/fltk11
BROKEN= does not compile
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_DOS2UNIX= yes USE_DOS2UNIX= yes
USE_GMAKE= yes USE_GMAKE= yes
CONFIGURE_ENV= FLTK_CONFIG="/usr/local/bin/fltk11/fltk-config"
MAN1= fldigi.1 MAN1= fldigi.1
@ -43,6 +44,7 @@ OPTIONS= NATIVE_OPT "Enable Native Optimizations" off \
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64" .if ${ARCH} == "sparc64"
BROKEN= Fails to install BROKEN= Fails to install
.endif .endif
@ -117,15 +119,16 @@ PLIST_SUB+= ASCIIDOC="@comment "
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|png_infopp_NULL|NULL|' \ @${REINPLACE_CMD} -e 's|png_infopp_NULL|NULL|' \
${WRKSRC}/src/widgets/picture.cxx ${WRKSRC}/src/widgets/picture.cxx
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/Makefile.in
post-configure: post-configure:
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \ @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
-e 's|^CPPFLAGS|#CPPFLAGS|' \ -e 's|^CPPFLAGS|#CPPFLAGS|' \
${WRKSRC}/src/Makefile ${WRKSRC}/src/Makefile
# force rebuild of man pages
rm ${WRKSRC}/doc/*.1
do-build:
# It will not build the man pages without the rm
(cd ${WRKSRC}/doc/;rm *.1;gmake;cd ${WRKSRC}/src;gmake)
post-install: post-install:
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)

View file

@ -1,2 +1,2 @@
SHA256 (fldigi-3.21.12.tar.gz) = 6d54fbf776822c15b6ff8b38675be761972e767979091eaeae5e4ac34e4f9afc SHA256 (fldigi-3.21.31.tar.gz) = a6e54ebdcae20ea99eb8fe46ff5f25316c371af31c6c963d33272f405c20d6af
SIZE (fldigi-3.21.12.tar.gz) = 1608635 SIZE (fldigi-3.21.31.tar.gz) = 1638671

View file

@ -0,0 +1,11 @@
--- Makefile.in.orig 2011-12-01 12:09:41.000000000 -0500
+++ Makefile.in 2011-12-07 14:54:15.000000000 -0500
@@ -141,7 +141,7 @@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
+CPPFLAGS = "-I%%LOCALBASE%%/include/portaudio2 @CPPFLAGS@"
CXX = @CXX@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@

View file

@ -1,5 +1,5 @@
--- src/dialogs/fl_digi.cxx.orig 2011-05-28 14:08:32.000000000 -0400 --- src/dialogs/fl_digi.cxx.orig 2011-12-01 12:03:25.000000000 -0500
+++ src/dialogs/fl_digi.cxx 2011-05-29 18:51:27.000000000 -0400 +++ src/dialogs/fl_digi.cxx 2011-12-05 16:02:10.000000000 -0500
@@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
#include <config.h> #include <config.h>
@ -8,7 +8,7 @@
#ifdef __WOE32__ #ifdef __WOE32__
# ifdef __CYGWIN__ # ifdef __CYGWIN__
@@ -1866,7 +1867,7 @@ @@ -1884,7 +1885,7 @@
Fl::repeat_timeout(st, ztimer); Fl::repeat_timeout(st, ztimer);
struct tm tm; struct tm tm;