svn commit: r394642 - in head/astro/gpsbabel: . files
Philip M. Gollucci
pgollucci at FreeBSD.org
Tue Aug 18 19:58:07 UTC 2015
Author: pgollucci
Date: Tue Aug 18 19:58:06 2015
New Revision: 394642
URL: https://svnweb.freebsd.org/changeset/ports/394642
Log:
astro/gpsbabel: add GUI option, clean up dependencies
- Add GUI option (requires qt4-gui,qt4-xml,qt4-network and qt4-webkit at runtime).
- Remove autoconf/pcre/glib20/gettext dependencies (unused).
- USE_QT4=linguist_build -> USE_QT4=linguisttools_build (GUI option only).
- Use system zlib.
- Regenerate patch.
PR: 201680
Submitted by: s3erios at gmail.com
Approved by: dev2 at heesakkers.info
Added:
head/astro/gpsbabel/pkg-plist (contents, props changed)
Modified:
head/astro/gpsbabel/Makefile
head/astro/gpsbabel/files/patch-jeeps-gpslibusb.cc
Modified: head/astro/gpsbabel/Makefile
==============================================================================
--- head/astro/gpsbabel/Makefile Tue Aug 18 19:20:22 2015 (r394641)
+++ head/astro/gpsbabel/Makefile Tue Aug 18 19:58:06 2015 (r394642)
@@ -3,6 +3,7 @@
PORTNAME= gpsbabel
PORTVERSION= 1.5.2
+PORTREVISION= 1
CATEGORIES= astro geography
MASTER_SITES= https://secure.ohos.nl/downloads/ \
LOCAL/glebius
@@ -13,20 +14,41 @@ COMMENT= GPS file translating tool
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
+CONFLICTS= gpsbabel14-[0-9]*
-USE_AUTOTOOLS= autoconf
+USE_QT4= corelib qmake_build
GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-zlib=system
-USES= gettext
-USE_QT4= corelib linguist_build qmake_build
-USE_GNOME= glib20
-
-PLIST_FILES= bin/gpsbabel
-
-CONFLICTS= gpsbabel14-[0-9]*
+OPTIONS_DEFINE= GUI
+OPTIONS_SUB= GUI
-post-install:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gpsbabel
+GUI_ALL_TARGET= gui
+GUI_USE= QT4=gui,xml,network,webkit
+GUI_USE+= QT4=linguisttools_build,moc_build,rcc_build,uic_build
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGUI}
+MAKE_JOBS_UNSAFE= yes
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} '/langPath_ = / \
+ s|QApplication::applicationDirPath()|"${DATADIR}"|' \
+ ${WRKSRC}/gui/mainwindow.cc
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gpsbabel ${STAGEDIR}${PREFIX}/bin/
+.if ${PORT_OPTIONS:MGUI}
+ ${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
+.endif
.include <bsd.port.mk>
Modified: head/astro/gpsbabel/files/patch-jeeps-gpslibusb.cc
==============================================================================
--- head/astro/gpsbabel/files/patch-jeeps-gpslibusb.cc Tue Aug 18 19:20:22 2015 (r394641)
+++ head/astro/gpsbabel/files/patch-jeeps-gpslibusb.cc Tue Aug 18 19:58:06 2015 (r394642)
@@ -1,5 +1,5 @@
---- jeeps/gpslibusb.cc.orig 2014-09-16 05:49:59.000000000 +0200
-+++ jeeps/gpslibusb.cc 2015-03-14 19:33:11.690407708 +0100
+--- jeeps/gpslibusb.cc.orig 2014-09-16 03:49:59 UTC
++++ jeeps/gpslibusb.cc
@@ -20,7 +20,8 @@
*/
Added: head/astro/gpsbabel/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/astro/gpsbabel/pkg-plist Tue Aug 18 19:58:06 2015 (r394642)
@@ -0,0 +1,12 @@
+bin/gpsbabel
+%%GUI%%bin/gpsbabelfe-bin
+%%GUI%%share/applications/gpsbabel.desktop
+%%GUI%%%%DATADIR%%/translations/gpsbabel.qm
+%%GUI%%%%DATADIR%%/translations/gpsbabelfe.qm
+%%GUI%%%%DATADIR%%/translations/gpsbabelfe_de.qm
+%%GUI%%%%DATADIR%%/translations/gpsbabelfe_es.qm
+%%GUI%%%%DATADIR%%/translations/gpsbabelfe_fr.qm
+%%GUI%%%%DATADIR%%/translations/gpsbabelfe_hu.qm
+%%GUI%%%%DATADIR%%/translations/gpsbabelfe_it.qm
+%%GUI%%%%DATADIR%%/translations/gpsbabelfe_ru.qm
+%%GUI%%share/pixmaps/gpsbabel.png
More information about the svn-ports-head
mailing list