2006-12-22 02:47:33 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fldigi
|
2014-06-28 13:48:54 +00:00
|
|
|
PORTVERSION= 3.21.83
|
2006-12-22 02:47:33 +00:00
|
|
|
CATEGORIES= comms hamradio
|
2012-04-22 23:20:37 +00:00
|
|
|
MASTER_SITES= http://www.w1hkj.com/downloads/fldigi/\
|
2007-02-01 23:14:06 +00:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= db
|
2006-12-22 02:47:33 +00:00
|
|
|
|
2014-06-28 13:48:54 +00:00
|
|
|
MAINTAINER= hamradio@FreeBSD.org
|
2006-12-22 02:47:33 +00:00
|
|
|
COMMENT= Digital decoder for psk, cw, psk31, olivia
|
|
|
|
|
2011-08-19 02:39:06 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-12-08 01:14:18 +00:00
|
|
|
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconf \
|
|
|
|
asciidoc:${PORTSDIR}/textproc/asciidoc\
|
2013-04-02 01:48:51 +00:00
|
|
|
docbook-xsl>=1.0:${PORTSDIR}/textproc/docbook-xsl\
|
2012-04-22 23:20:37 +00:00
|
|
|
xsltproc:${PORTSDIR}/textproc/libxslt
|
2013-12-11 15:10:44 +00:00
|
|
|
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
|
|
|
|
libsamplerate.so:${PORTSDIR}/audio/libsamplerate\
|
|
|
|
libboost_system.so:${PORTSDIR}/devel/boost-libs\
|
|
|
|
libfltk.so:${PORTSDIR}/x11-toolkits/fltk
|
2011-11-04 22:19:36 +00:00
|
|
|
|
2014-06-28 13:48:54 +00:00
|
|
|
USE_CXXSTD= gnu++0x
|
2011-04-22 23:51:33 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2014-06-28 13:48:54 +00:00
|
|
|
USES= gmake pkgconfig compiler:c++11-lib perl5 shebangfix
|
2013-12-08 01:14:18 +00:00
|
|
|
CONFIGURE_ENV= FLTK_CONFIG="${LOCALBASE}/bin/fltk-config" \
|
|
|
|
EXTRA_LIBS="-lexecinfo"
|
2014-06-28 13:48:54 +00:00
|
|
|
SHEBANG_FILES= scripts/fldigi-shell
|
2011-08-19 02:39:06 +00:00
|
|
|
|
2014-03-31 03:30:22 +00:00
|
|
|
OPTIONS_DEFINE= NATIVE_OPT FLARQ OSS SNDFILE PORTAUDIO PULSEAUDIO HAMLIB NLS
|
2012-06-08 03:37:38 +00:00
|
|
|
|
|
|
|
NATIVE_OPT_DESC= Enable Native Optimizations
|
|
|
|
FLARQ_DESC= Compile flarq
|
|
|
|
OSS_DESC= Support OSS
|
|
|
|
SNDFILE_DESC= Support for libsndfile
|
|
|
|
PORTAUDIO_DESC= PortAudio support
|
|
|
|
PULSEAUDIO_DESC= PulseAudio support
|
|
|
|
HAMLIB_DESC= Support rig control via hamlib
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= OPTFLARQ OPTOSS HAMLIB
|
2009-04-13 19:12:26 +00:00
|
|
|
|
2008-01-31 17:35:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2011-11-06 16:36:34 +00:00
|
|
|
|
2008-02-01 06:47:54 +00:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Fails to install
|
|
|
|
.endif
|
2012-06-08 03:37:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MNATIVE_OPT}
|
2011-08-19 02:39:06 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-optimizations=native
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-optimizations=none
|
|
|
|
.endif
|
2012-06-08 03:37:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MFLARQ}
|
2011-08-19 02:39:06 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-flarq
|
|
|
|
MAN1+= flarq.1
|
|
|
|
PLIST_SUB+= FLARQ=""
|
2012-06-08 03:37:38 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-flarq
|
|
|
|
PLIST_SUB+= FLARQ="@comment "
|
2011-08-19 02:39:06 +00:00
|
|
|
.endif
|
|
|
|
PLIST_SUB+= XMLRPC=""
|
2012-06-08 03:37:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MOSS}
|
2011-08-19 02:39:06 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-oss
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-oss
|
|
|
|
.endif
|
2012-06-08 03:37:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MSNDFILE}
|
2011-08-19 02:39:06 +00:00
|
|
|
CONFIGURE_ARGS+=--with-sndfile
|
2014-06-28 13:48:54 +00:00
|
|
|
LIB_DEPENDS+= libsndfile.so:${PORTSDIR}/audio/libsndfile
|
2011-08-19 02:39:06 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-sndfile
|
|
|
|
.endif
|
2012-06-08 03:37:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MPORTAUDIO}
|
2011-08-19 02:39:06 +00:00
|
|
|
CONFIGURE_ARGS+=--with-portaudio
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/portaudio2/libportaudio.so:${PORTSDIR}/audio/portaudio2
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/portaudio2/libportaudio.so:${PORTSDIR}/audio/portaudio2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-portaudio
|
|
|
|
.endif
|
2012-06-08 03:37:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MPULSEAUDIO}
|
2011-08-19 02:39:06 +00:00
|
|
|
CONFIGURE_ARGS+=--with-pulseaudio
|
2014-06-28 13:48:54 +00:00
|
|
|
LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio
|
2011-08-19 02:39:06 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-pulseaudio
|
|
|
|
.endif
|
2012-06-08 03:37:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MHAMLIB}
|
2011-08-19 02:39:06 +00:00
|
|
|
CONFIGURE_ARGS+=--with-hamlib
|
2014-06-28 13:48:54 +00:00
|
|
|
LIB_DEPENDS+= libhamlib.so:${PORTSDIR}/comms/hamlib
|
2011-08-19 02:39:06 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-hamlib
|
|
|
|
.endif
|
2013-04-26 15:10:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
USES+= gettext
|
2012-06-08 03:37:38 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-nls
|
|
|
|
PLIST_SUB+= NLS=""
|
2013-04-26 15:10:57 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2012-06-08 03:37:38 +00:00
|
|
|
.endif
|
2012-08-09 01:56:00 +00:00
|
|
|
# Always need asciidoc for man pages
|
2011-08-19 02:39:06 +00:00
|
|
|
CONFIGURE_ARGS+=--with-asciidoc
|
2008-01-31 17:35:39 +00:00
|
|
|
|
2010-03-30 07:18:04 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|png_infopp_NULL|NULL|' \
|
|
|
|
${WRKSRC}/src/widgets/picture.cxx
|
2011-12-07 21:02:18 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2010-03-30 07:18:04 +00:00
|
|
|
|
2008-01-31 17:35:39 +00:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
|
2009-01-18 00:56:45 +00:00
|
|
|
-e 's|^CPPFLAGS|#CPPFLAGS|' \
|
2008-01-31 17:35:39 +00:00
|
|
|
${WRKSRC}/src/Makefile
|
2011-12-07 21:02:18 +00:00
|
|
|
# force rebuild of man pages
|
2012-04-22 23:20:37 +00:00
|
|
|
${RM} ${WRKSRC}/doc/*.1
|
2011-04-22 23:51:33 +00:00
|
|
|
|
2008-01-31 17:35:39 +00:00
|
|
|
post-install:
|
2013-12-08 01:14:18 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/guide.html ${STAGEDIR}${DOCSDIR}
|
2006-12-22 02:47:33 +00:00
|
|
|
|
2008-01-31 17:35:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|