freebsd-ports/astro/gpsbabel/Makefile
Stefan Eßer 819f25b36d */*: Remove redundant '-[0-9]*' from CONFLICTS
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".

Approved by:	portmgr (blanket)
2021-10-29 11:50:18 +02:00

66 lines
1.8 KiB
Makefile

# Created by: Laurent Courty
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
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.options.mk>
.if ${PORT_OPTIONS:MGUI}
DEPRECATED= Uses EOL Python 2.7 via www/qt5-webengine
EXPIRATION_DATE=2021-06-23
.endif
.include <bsd.port.mk>