aboutsummaryrefslogtreecommitdiff
path: root/graphics/photivo
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2017-02-07 23:46:22 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2017-02-07 23:46:22 +0000
commit890f1c24457610510a6caeb28c746bd4e27d8a90 (patch)
tree54f61f49368d24749c4b0b4bfc2edd9a202b6f57 /graphics/photivo
parent3db0eb9bd89325658f3a0ba23d37aea21345dcc6 (diff)
downloadports-890f1c24457610510a6caeb28c746bd4e27d8a90.tar.gz
ports-890f1c24457610510a6caeb28c746bd4e27d8a90.zip
Notes
Diffstat (limited to 'graphics/photivo')
-rw-r--r--graphics/photivo/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/photivo/Makefile b/graphics/photivo/Makefile
index 6d9c9c9d9e60..9e1c1de6d961 100644
--- a/graphics/photivo/Makefile
+++ b/graphics/photivo/Makefile
@@ -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 \