DESKTOP_ENTRIES automatically adds a pkg-plist entry, so the extra entry added to PLIST_FILES in b0e679ed7d1f creates a stage-qa error. This port does not consider the DESKTOP_LAUNCH_ID environment variable, so the final DESKTOP_ENTRIES sub-variable should be set to "false" (unquoted). Switch PLIST_FILES to a regular pkg-plist file, since there are 17 entries which is 11 over the 'handful' of 6 entries convention recommended in the PHB and tested for by portlint(1). Remove superfluous and commented-out PORTREVISON. We have scripts to bump PORTREVSION correctly and don't need this sort of placeholder. USE_QT=tools should be a build-only dep and USE_QT=sqldriver-sqlite should be a run-only dep. Qt 6.x requires at least C++17 and links to OpenGL, not GL. [1] With hat: kde@ [1]
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
PORTNAME= klog
|
|
PORTVERSION= 2.4.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= comms hamradio
|
|
|
|
MAINTAINER= hamradio@FreeBSD.org
|
|
COMMENT= Simple Qt-based amateur radio logger
|
|
WWW= https://github.com/ea4k/klog/wiki
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libhamlib.so:comms/hamlib
|
|
USES= compiler:c++17-lang gl qmake qt:6 xorg
|
|
USE_GITHUB= yes
|
|
USE_GL= opengl
|
|
USE_QT= base declarative charts location positioning serialport \
|
|
sqldriver-sqlite:run tools:build
|
|
GH_ACCOUNT= ea4k
|
|
GH_PROJECT= klog
|
|
|
|
# https://github.com/ea4k/klog/issues/419
|
|
DESKTOP_ENTRIES="KLog" "Simple Amateur Radio Logging Program" \
|
|
"" "klog" "Network;HamRadio;" \
|
|
false
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
's|"\/usr\/share\/klog\/translations\/klog_"|"${DATADIR}/translations/klog_"|' \
|
|
${WRKSRC}/src/main.cpp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/build/target/klog ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/translations
|
|
${INSTALL_DATA} ${WRKSRC}/src/build/target/translations/klog_*.qm \
|
|
${STAGEDIR}${DATADIR}/translations
|
|
${INSTALL_MAN} ${WRKSRC}/src/klog.1 ${STAGEDIR}${PREFIX}/share/man/man1
|
|
|
|
.include <bsd.port.mk>
|