not search openEXR with WITH_OPENEXR=false in linux
authorJoilnen Leite <joilnen.leite@gmail.com>
Tue, 17 Apr 2007 02:34:40 +0000 (02:34 +0000)
committerJoilnen Leite <joilnen.leite@gmail.com>
Tue, 17 Apr 2007 02:34:40 +0000 (02:34 +0000)
source/nan_definitions.mk

index 080ea0cc8d6a6f2847b3f3304fbe24c94946cc87..459b843f69abd62f444c947d4b40c69cdaa49755 100644 (file)
@@ -135,15 +135,19 @@ endif
          endif
       else
         ifeq ($(OS),linux)
-         NAN_OPENEXR?=$(shell pkg-config --variable=prefix OpenEXR )
-         NAN_OPENEXR_INC?=$(shell pkg-config --cflags OpenEXR )
-         NAN_OPENEXR_LIBS?=$(addprefix ${NAN_OPENEXR}/lib/lib,$(addsuffix .a,$(shell pkg-config --libs OpenEXR | sed -s "s/-l//g" )))
+                       ifeq ($(WITH_OPENEXR), true)
+                       NAN_OPENEXR?=$(shell pkg-config --variable=prefix OpenEXR )
+                       NAN_OPENEXR_INC?=$(shell pkg-config --cflags OpenEXR )
+                       NAN_OPENEXR_LIBS?=$(addprefix ${NAN_OPENEXR}/lib/lib,$(addsuffix .a,$(shell pkg-config --libs OpenEXR | sed -s "s/-l//g" )))
+                       endif
         else
           export NAN_OPENEXR ?= /usr/local
          export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
         endif
       endif
-      export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
+                       ifeq ($(WITH_OPENEXR), true)
+                       export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
+                       endif
 
     endif
   # Platform Dependent settings go below: