ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# Created by: Laurent Courty
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gpsbabel
|
|
DISTVERSIONPREFIX= ${PORTNAME}_
|
|
DISTVERSION= 1_5_4
|
|
PORTREVISION= 4
|
|
CATEGORIES= astro geography
|
|
|
|
MAINTAINER= dev2@heesakkers.info
|
|
COMMENT= GPS file translating tool
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
# Unbundle libminizip
|
|
LIB_DEPENDS= libminizip.so:archivers/minizip
|
|
|
|
USE_GITHUB= yes
|
|
|
|
CONFLICTS= gpsbabel14-[0-9]*
|
|
|
|
USES= compiler:c++11-lang localbase qt:5
|
|
USE_QT= core qmake_build
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-zlib=system
|
|
|
|
OPTIONS_DEFINE= GUI
|
|
OPTIONS_SUB= yes
|
|
|
|
GUI_ALL_TARGET= gui
|
|
GUI_USE= QT=gui,xml,network,webkit
|
|
GUI_USE+= QT=linguisttools_build,webengine,buildtools
|
|
GUI_VARS= MAKE_JOBS_UNSAFE=yes
|
|
|
|
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-bin \
|
|
${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>
|