Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jan 2016 01:42:54 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r406818 - head/astro/gpsbabel
Message-ID:  <201601210142.u0L1gsdI012044@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Jan 21 01:42:54 2016
New Revision: 406818
URL: https://svnweb.freebsd.org/changeset/ports/406818

Log:
  Use options helpers
  
  Approved by:	portmgr blanket

Modified:
  head/astro/gpsbabel/Makefile

Modified: head/astro/gpsbabel/Makefile
==============================================================================
--- head/astro/gpsbabel/Makefile	Thu Jan 21 01:24:44 2016	(r406817)
+++ head/astro/gpsbabel/Makefile	Thu Jan 21 01:42:54 2016	(r406818)
@@ -26,12 +26,7 @@ OPTIONS_SUB=	GUI
 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
+GUI_VARS=	MAKE_JOBS_UNSAFE=yes
 
 post-patch:
 	@${REINPLACE_CMD} '/langPath_ = / \
@@ -40,7 +35,8 @@ post-patch:
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/gpsbabel ${STAGEDIR}${PREFIX}/bin/
-.if ${PORT_OPTIONS:MGUI}
+
+do-install-GUI-on:
 	${INSTALL_PROGRAM} ${WRKSRC}/gui/objects/gpsbabelfe-bin \
 		${STAGEDIR}${PREFIX}/bin/
 	${INSTALL_DATA} ${WRKSRC}/gui/gpsbabel.desktop \
@@ -49,6 +45,5 @@ do-install:
 	${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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601210142.u0L1gsdI012044>