svn commit: r443827 - head/security/ophcrack

Alexey Dokuchaev danfe at FreeBSD.org
Sun Jun 18 13:16:53 UTC 2017


Author: danfe
Date: Sun Jun 18 13:16:52 2017
New Revision: 443827
URL: https://svnweb.freebsd.org/changeset/ports/443827

Log:
  Finish conversion to option helpers.

Modified:
  head/security/ophcrack/Makefile

Modified: head/security/ophcrack/Makefile
==============================================================================
--- head/security/ophcrack/Makefile	Sun Jun 18 12:20:01 2017	(r443826)
+++ head/security/ophcrack/Makefile	Sun Jun 18 13:16:52 2017	(r443827)
@@ -22,23 +22,16 @@ PORTDOCS=	AUTHORS ChangeLog README.md
 
 OPTIONS_DEFINE=	X11 GRAPH DOCS
 OPTIONS_DEFAULT=	X11 GRAPH
+GRAPH_IMPLIES=	X11
 
 X11_DESC=	Build Qt 4 GUI frontend
 GRAPH_DESC=	Enable graph rendering via Qwt
 
-.include <bsd.port.options.mk>
+X11_USE=	QT4=moc_build,qmake_build,rcc_build,uic_build,corelib,gui
+X11_CONFIGURE_OFF=	--disable-gui
 
-.if ${PORT_OPTIONS:MX11} || ${PORT_OPTIONS:MGRAPH}
-USE_QT4=	moc_build qmake_build rcc_build uic_build corelib gui
-.else
-CONFIGURE_ARGS+=	--disable-gui
-.endif
-
-.if ${PORT_OPTIONS:MGRAPH}
-LIB_DEPENDS+=	libqwt.so:x11-toolkits/qwt5
-.else
-CONFIGURE_ARGS+=	--disable-graph
-.endif
+GRAPH_LIB_DEPENDS=	libqwt.so:x11-toolkits/qwt5
+GRAPH_CONFIGURE_OFF=	--disable-graph
 
 post-patch:
 	@${REINPLACE_CMD} -E '/#include <byteswap\.h>/d ; \


More information about the svn-ports-all mailing list