Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Feb 2017 23:46:23 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433626 - head/graphics/photivo
Message-ID:  <201702072346.v17NkNQ8039964@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Tue Feb  7 23:46:22 2017
New Revision: 433626
URL: https://svnweb.freebsd.org/changeset/ports/433626

Log:
  Allow to build `graphics/photivo' against Qt 4, but keep Qt 5 enabled by
  default to avoid needless package rebuilds.  (I was not able to reproduce
  the build failure originally mentioned in r428684.)

Modified:
  head/graphics/photivo/Makefile

Modified: head/graphics/photivo/Makefile
==============================================================================
--- head/graphics/photivo/Makefile	Tue Feb  7 22:54:12 2017	(r433625)
+++ head/graphics/photivo/Makefile	Tue Feb  7 23:46:22 2017	(r433626)
@@ -24,11 +24,20 @@ LIB_DEPENDS=	liblcms2.so:graphics/lcms2 
 USES=		cmake compiler:c++11-lib desktop-file-utils dos2unix \
 		gettext-runtime jpeg pkgconfig zip
 USE_GNOME=	glib20
-USE_QT5=	qmake_build buildtools_build core gui network widgets
 DOS2UNIX_FILES=	Sources/ptImage.cpp Sources/ptCheck.cpp
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
+_QT4_DEPS=	qmake_build moc_build rcc_build uic_build corelib gui network
+_QT5_DEPS=	qmake_build buildtools_build core gui network widgets
+
+OPTIONS_DEFINE=	QT4
+QT4_DESC=	Build against Qt 4 instead of Qt 5
+
+QT4_USE=	QT4=${_QT4_DEPS:ts,}
+QT4_USE_OFF=	QT5=${_QT5_DEPS:ts,}
+QT4_CMAKE_ON=	-DFORCE_QT4:BOOL=true
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,#define cimg_use_openmp 1,//&,' \
 		${WRKSRC}/Sources/ptCimg.cpp \



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