freebsd-ports/comms/klog/Makefile
Alexey Dokuchaev d428f6652c - Add missing `_build' suffix to USE_QT5's buildtools and linguisttools
components and remove second entry of printsupport
- Wrap one overly long command in the installation recipe
- Properly terminate sentence with a dot and merge two paragraphs in the
  port description text: they are closely coupled and extra pause is not
  warranted there, plus first one consisted of just one sentence
2016-04-16 15:31:15 +00:00

44 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= klog
PORTVERSION= 0.9.2.3
CATEGORIES= comms hamradio
MASTER_SITES= SAVANNAH
MAINTAINER= hamradio@FreeBSD.org
COMMENT= Simple Qt-based amateur radio logger
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= qmake
USE_QT5= buildtools_build core gui linguisttools_build network \
printsupport sql sql-sqlite3_run widgets
DESKTOP_ENTRIES= "KLog" "Simple Amateur Radio Logging Program" \
"" "klog" "Network;HamRadio;" \
true
PLIST_FILES= bin/klog \
${DATADIR}/translations/klog_ca.qm \
${DATADIR}/translations/klog_es.qm \
${DATADIR}/translations/klog_ja.qm \
man/man1/klog.1.gz
post-patch:
@${REINPLACE_CMD} '/"\/usr\/share\/klog\/translations\/klog_" + \
QLocale::system().name()/\
s|);|, "${DATADIR}/translations/");|' \
${WRKSRC}/main.cpp
post-build:
${LRELEASE} ${WRKSRC}/${PORTNAME}.pro
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/klog ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}/translations
${INSTALL_DATA} ${WRKSRC}/translations/klog_*.qm \
${STAGEDIR}${DATADIR}/translations
${INSTALL_MAN} ${WRKSRC}/klog.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>