Skip to content

Commit

Permalink
comms/fldigi: Fix plist and modernize Makefile
Browse files Browse the repository at this point in the history
* Define LICENSE_FILE
* Remove dependency of (lib)Boost, the source code doesn't reference it at all
* Rearrange Makefile to closer follow Porters Handbook
* Drop native optimization option, rely on framework CPUTYPE variable instead
* Use framework _DESC
* Fix plist with NLS

PR:		276650
Approved by:	hamradio (db)
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed Jan 28, 2024
1 parent 5c3342e commit 3e253bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
38 changes: 15 additions & 23 deletions comms/fldigi/Makefile
Expand Up @@ -9,12 +9,12 @@ COMMENT= Digital decoder for psk, cw, psk31, olivia
WWW= http://www.w1hkj.com

LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= asciidoc:textproc/asciidoc \
docbook-xsl>=1.0:textproc/docbook-xsl \
xsltproc:textproc/libxslt
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libfltk.so:x11-toolkits/fltk \
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \
libfontconfig.so:x11-fonts/fontconfig \
libpng.so:graphics/png \
libportaudio.so:audio/portaudio \
Expand All @@ -24,42 +24,34 @@ LIB_DEPENDS= libboost_system.so:devel/boost-libs \

USES= autoreconf compiler:c++11-lib desktop-file-utils gmake jpeg \
perl5 pkgconfig shebangfix xorg
USE_XORG= x11 xcursor xext xfixes xft xinerama xrender

USE_CXXSTD= gnu++0x
GNU_CONFIGURE= yes
USE_XORG= x11 xcursor xext xfixes xft xinerama xrender

CONFIGURE_ENV= EXTRA_LIBS="-lexecinfo" \
FLTK_CONFIG="${LOCALBASE}/bin/fltk-config"
CONFIGURE_ARGS= --with-asciidoc \
--with-sndfile \
--enable-optimizations=none

OPTIONS_DEFINE= DOCS FLARQ HAMLIB NLS OSS PULSEAUDIO
OPTIONS_DEFAULT=FLARQ HAMLIB OSS
OPTIONS_SUB= yes

NATIVE_OPT_DESC= Enable Native Optimizations
FLARQ_DESC= Compile flarq
OSS_DESC= Support OSS
PULSEAUDIO_DESC= PulseAudio support
HAMLIB_DESC= Support rig control via hamlib

OPTIONS_DEFAULT= FLARQ HAMLIB OSS
OPTIONS_SUB= yes
FLARQ_DESC= Compile flarq
HAMLIB_DESC= Support rig control via hamlib

NATIVE_OPT_CONFIGURE_ON= --enable-optimizations=native
NATIVE_OPT_CONFIGURE_OFF= --enable-optimizations=none
FLARQ_CONFIGURE_ENABLE= flarq
HAMLIB_LIB_DEPENDS= libhamlib.so:comms/hamlib
HAMLIB_CONFIGURE_WITH= hamlib
OSS_CONFIGURE_ENABLE= oss
PULSEAUDIO_CONFIGURE_WITH= pulseaudio
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
HAMLIB_CONFIGURE_WITH= hamlib
HAMLIB_LIB_DEPENDS= libhamlib.so:comms/hamlib
NLS_CONFIGURE_ENABLE= nls
PULSEAUDIO_CONFIGURE_WITH= pulseaudio
NLS_USES= gettext

# Always need asciidoc for man pages
CONFIGURE_ARGS+= --with-asciidoc
# Always need soundfile
CONFIGURE_ARGS+= --with-sndfile
NLS_CONFIGURE_ENABLE= nls

post-configure:
# force rebuild of man pages
${RM} ${WRKSRC}/doc/*.1

post-install-DOCS-on:
Expand Down
1 change: 1 addition & 0 deletions comms/fldigi/pkg-plist
Expand Up @@ -4,6 +4,7 @@ bin/fldigi
man/man1/fldigi.1.gz
%%FLARQ%%share/applications/flarq.desktop
share/applications/fldigi.desktop
%%NLS%%share/locale/ca/LC_MESSAGES/fldigi.mo
%%NLS%%share/locale/de/LC_MESSAGES/fldigi.mo
%%NLS%%share/locale/el/LC_MESSAGES/fldigi.mo
%%NLS%%share/locale/es/LC_MESSAGES/fldigi.mo
Expand Down

0 comments on commit 3e253bc

Please sign in to comment.