freebsd-ports/astro/gpsbabel/Makefile
Felix Palmen ddae4e92d8 Mk/Uses: always use colon for build/run suffix
Most USES use a colon for build/run(/test) suffixes. Change kde.mk,
qt.mk and pyqt.mk to do the same, and update all ports using that.

Document in CHANGES.

PR:			266034
Exp-run by:		antoine
Approved by:		tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D36349
2022-09-11 12:20:14 +02:00

59 lines
1.6 KiB
Makefile

PORTNAME= gpsbabel
DISTVERSIONPREFIX= ${PORTNAME}_
DISTVERSION= 1_7_0
CATEGORIES= astro geography
MAINTAINER= dev2@heesakkers.info
COMMENT= GPS file translating tool
WWW= https://www.gpsbabel.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++11-lang gmake localbase qt:5
USE_QT= core qmake:build
CONFLICTS= gpsbabel14
USE_GITHUB= yes
GNU_CONFIGURE= yes
OPTIONS_DEFINE= GUI
OPTIONS_SUB= yes
GUI_USES= gl
GUI_USE= GL=gl \
QT=declarative,gui,location,network,printsupport,webchannel \
QT=webengine,widgets,xml,buildtools:build,linguisttools:build
GUI_ALL_TARGET= gui
GUI_VARS= MAKE_JOBS_UNSAFE=yes
CONFIGURE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
do-build:
(cd ${WRKSRC}; ${CONFIGURE_ENV} ${CONFIGURE_CMD}; ${MAKE_ENV} ${GMAKE})
do-build-GUI-on:
(cd ${WRKSRC}/gui; ${QMAKE} USE_GUI=qt5; ${LRELEASE} *.ts; ${GMAKE})
post-patch:
@${REINPLACE_CMD} '/langPath_ = / \
s|QApplication::applicationDirPath()|"${DATADIR}"|' \
${WRKSRC}/gui/mainwindow.cc
@${RM} -r ${WRKSRC}/zlib/contrib/minizip
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gpsbabel ${STAGEDIR}${PREFIX}/bin/
do-install-GUI-on:
${INSTALL_PROGRAM} ${WRKSRC}/gui/objects/gpsbabelfe \
${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/gui/gpsbabel.desktop \
${STAGEDIR}${PREFIX}/share/applications/
${MKDIR} ${STAGEDIR}${DATADIR}/translations
${INSTALL_DATA} ${WRKSRC}/gui/*.qm ${STAGEDIR}${DATADIR}/translations/
${INSTALL_DATA} ${WRKSRC}/gui/images/appicon.png \
${STAGEDIR}${PREFIX}/share/pixmaps/gpsbabel.png
.include <bsd.port.mk>