From 6261e26750786400da28247714d7c112a44a59ca Mon Sep 17 00:00:00 2001 From: Stanislav Sedov Date: Sat, 20 Aug 2011 01:53:49 +0000 Subject: [PATCH] - rawtherapee actually wants lcms1. - add option to disable OpenMP. --- graphics/rawtherapee/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/graphics/rawtherapee/Makefile b/graphics/rawtherapee/Makefile index 1e69500036a7..017fada3e498 100644 --- a/graphics/rawtherapee/Makefile +++ b/graphics/rawtherapee/Makefile @@ -17,7 +17,7 @@ COMMENT= A powerful RAW image processing application LIB_DEPENDS= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 \ iptcdata.3:${PORTSDIR}/graphics/libiptcdata \ jpeg.11:${PORTSDIR}/graphics/jpeg \ - lcms2.2:${PORTSDIR}/graphics/lcms2 \ + lcms.1:${PORTSDIR}/graphics/lcms \ png:${PORTSDIR}/graphics/png \ tiff.4:${PORTSDIR}/graphics/tiff \ sigc-2.0:${PORTSDIR}/devel/libsigc++20 @@ -42,7 +42,8 @@ LICENSE= GPLv3 RTDIR= ${PREFIX}/libdata/${PORTNAME} -OPTIONS= OPTIMIZED_CFLAGS "Use optimized CFLAGS" on +OPTIONS= OPTIMIZED_CFLAGS "Use optimized CFLAGS" on \ + OPENMP "Enable multicore processing using OpenMP" on .include @@ -53,4 +54,10 @@ CFLAGS+= -O3 -ffast-math -fexpensive-optimizations \ .endif .endif +.if !defined(WITHOUT_OPENMP) +CMAKE_ARGS+= -DOPTION_OMP:BOOL=ON +.else +CMAKE_ARGS+= -DOPTION_OMP:BOOL=OFF +.endif + .include