# Created by: Laurent Courty # $FreeBSD: head/astro/gpsbabel/Makefile 569118 2021-03-24 13:34:35Z rene $ PORTNAME= gpsbabel DISTVERSIONPREFIX= ${PORTNAME}_ DISTVERSION= 1_7_0 CATEGORIES= astro geography MAINTAINER= dev2@heesakkers.info COMMENT= GPS file translating tool LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING USES= compiler:c++11-lang gmake localbase qt:5 USE_QT= core qmake_build CONFLICTS= gpsbabel14-[0-9]* 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 .if ${PORT_OPTIONS:MGUI} DEPRECATED= Uses EOL Python 2.7 via www/qt5-webengine EXPIRATION_DATE=2021-06-23 .endif .include