Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Feb 2014 17:36:39 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343127 - head/net-p2p/litecoin
Message-ID:  <201402061736.s16Hadub043605@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Thu Feb  6 17:36:38 2014
New Revision: 343127
URL: http://svnweb.freebsd.org/changeset/ports/343127
QAT: https://qat.redports.org/buildarchive/r343127/

Log:
  - Use more correct OSVERSION check [1]
  - Remove WITHOUT_X11 and use standard X11 option
  
  PR:		ports/186137 [1]
  Reported by:	Waitman Gobble <uzimac@da3m0n8t3r.com> [1]

Modified:
  head/net-p2p/litecoin/Makefile

Modified: head/net-p2p/litecoin/Makefile
==============================================================================
--- head/net-p2p/litecoin/Makefile	Thu Feb  6 16:50:42 2014	(r343126)
+++ head/net-p2p/litecoin/Makefile	Thu Feb  6 17:36:38 2014	(r343127)
@@ -24,10 +24,9 @@ WANT_BDB_VER=	48
 
 USES=		gmake
 
-OPTIONS_DEFINE=	GUI UPNP QRCODES DBUS
-OPTIONS_DEFAULT=	GUI QRCODES
+OPTIONS_DEFINE=	X11 UPNP QRCODES DBUS
+OPTIONS_DEFAULT=	X11 QRCODES
 
-GUI_DESC=	Build as a QT4 GUI
 UPNP_DESC=	Build with UPNP support
 QRCODES_DESC=	Build with QR code display
 DBUS_DESC=	Build with DBUS support
@@ -44,7 +43,7 @@ QMAKE_USE_UPNP=	1
 QMAKE_USE_UPNP=	-
 .endif
 
-.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
 USE_QT4=	qmake_build linguist uic moc rcc
 BINARY=		litecoin-qt
 .else
@@ -56,7 +55,7 @@ MAKE_ARGS+=	-C ${WRKSRC}/src USE_UPNP=${
 
 PLIST_FILES=	bin/${BINARY}
 
-.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11) && ${PORT_OPTIONS:MQRCODES}
+.if ${PORT_OPTIONS:MX11} && ${PORT_OPTIONS:MQRCODES}
 LIB_DEPENDS+=	libqrencode.so:${PORTSDIR}/graphics/libqrencode
 QMAKE_USE_QRCODE=1
 .else
@@ -72,16 +71,16 @@ QMAKE_USE_DBUS=	0
 
 .include <bsd.port.pre.mk>
 
-.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
 PLIST_FILES+=	share/applications/litecoin-qt.desktop share/pixmaps/litecoin64.png
 .endif
 
-.if ${OSVERSION} >= 1000000
+.if ${OSVERSION} >= 1000054
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-endian
 .endif
 
 do-configure:
-.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
 	cd ${BUILD_WRKSRC} && \
 		${QMAKE} ${QMAKE_ARGS} \
 		QMAKE_LIBDIR+=${BDB_LIB_DIR} \
@@ -93,7 +92,7 @@ do-configure:
 .endif
 
 do-install:
-.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
 	${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/bin/
 	${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \
 		-e 's,bitcoin,litecoin,g' \
@@ -109,7 +108,7 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/makefile.unix
 
 regression-test:
-.if !${PORT_OPTIONS:MGUI} || defined(WITHOUT_X11)
+.if !${PORT_OPTIONS:MX11}
 	@${GMAKE} -C ${WRKSRC}/src -f makefile.unix USE_UPNP=${QMAKE_USE_UPNP} test_litecoin
 	(cd ${WRKSRC}/src ; ./test_litecoin)
 .endif



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