2012-11-06 09:04:29 +00:00
|
|
|
# Created by: Laurent Courty
|
2006-04-29 15:27:05 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gpsbabel
|
2016-06-28 17:29:20 +00:00
|
|
|
DISTVERSIONPREFIX= ${PORTNAME}_
|
2018-05-06 15:39:46 +00:00
|
|
|
DISTVERSION= 1_5_4
|
2019-01-16 11:13:44 +00:00
|
|
|
PORTREVISION= 2
|
2007-07-22 19:53:52 +00:00
|
|
|
CATEGORIES= astro geography
|
2006-04-29 15:27:05 +00:00
|
|
|
|
2012-12-15 23:13:08 +00:00
|
|
|
MAINTAINER= dev2@heesakkers.info
|
2013-04-29 16:43:05 +00:00
|
|
|
COMMENT= GPS file translating tool
|
2006-04-29 15:27:05 +00:00
|
|
|
|
2014-06-10 22:06:15 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2016-06-28 17:29:20 +00:00
|
|
|
# Unbundle libminizip
|
|
|
|
LIB_DEPENDS= libminizip.so:archivers/minizip
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
|
2014-06-10 22:06:15 +00:00
|
|
|
CONFLICTS= gpsbabel14-[0-9]*
|
2009-03-09 17:15:43 +00:00
|
|
|
|
2018-10-28 11:21:16 +00:00
|
|
|
USES= compiler:c++11-lang localbase qt:5 qt:5
|
2018-06-28 17:39:53 +00:00
|
|
|
USE_QT= core qmake_build
|
2015-08-18 19:58:06 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-zlib=system
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= GUI
|
2017-11-21 08:36:26 +00:00
|
|
|
OPTIONS_SUB= yes
|
2015-08-18 19:58:06 +00:00
|
|
|
|
|
|
|
GUI_ALL_TARGET= gui
|
2018-06-28 17:39:53 +00:00
|
|
|
GUI_USES= qt:5 qt:5
|
|
|
|
GUI_USE= QT=gui,xml,network,webkit
|
|
|
|
GUI_USE+= QT=linguisttools_build,moc_build,rcc_build,uic_build
|
2016-01-21 01:42:54 +00:00
|
|
|
GUI_VARS= MAKE_JOBS_UNSAFE=yes
|
2015-08-18 19:58:06 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} '/langPath_ = / \
|
|
|
|
s|QApplication::applicationDirPath()|"${DATADIR}"|' \
|
|
|
|
${WRKSRC}/gui/mainwindow.cc
|
2016-10-21 12:51:40 +00:00
|
|
|
@${RM} -r ${WRKSRC}/zlib/contrib/minizip
|
2015-08-18 19:58:06 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gpsbabel ${STAGEDIR}${PREFIX}/bin/
|
2016-01-21 01:42:54 +00:00
|
|
|
|
|
|
|
do-install-GUI-on:
|
2015-08-18 19:58:06 +00:00
|
|
|
${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
|
2015-03-15 08:49:48 +00:00
|
|
|
|
2013-04-29 16:43:05 +00:00
|
|
|
.include <bsd.port.mk>
|