Add FFTW3 support to Makefiles, make OpenJpeg use OS lib for Linux.

And handful of whitespace clean ups.
This commit is contained in:
Guillermo S. Romero
2009-11-09 20:08:19 +00:00
parent 8ab49a4c5e
commit 3e2766bc2e
6 changed files with 40 additions and 8 deletions

2
extern/Makefile vendored
View File

@@ -42,8 +42,10 @@ ifeq ($(WITH_BINRELOC), true)
endif
ifeq ($(WITH_OPENJPEG), true)
ifndef BF_OPENJPEG
DIRS += libopenjpeg
endif
endif
ifeq ($(WITH_LZO), true)
DIRS += lzo/minilzo

View File

@@ -41,6 +41,11 @@ ifeq ($(WITH_BF_OPENMP),true)
CPPFLAGS += -DPARALLEL
endif
ifeq ($(WITH_FFTW3),true)
CPPFLAGS += -DFFTW3=1
CPPFLAGS += $(BF_FFTW3_INC)
endif
CPPFLAGS += -I.
CPPFLAGS += -I../extern
CPPFLAGS += -I$(NAN_PNG)/include

View File

@@ -188,7 +188,11 @@ ifeq ($(WITH_OPENEXR), true)
endif
ifeq ($(WITH_OPENJPEG), true)
ifndef BF_OPENJPEG_LIBS
COMLIB += $(OCGDIR)/extern/openjpeg/$(DEBUG_DIR)libopenjpeg.a
else
COMLIB += $(BF_OPENJPEG_LIBS)
endif
endif
COMLIB += $(OCGDIR)/blender/imbuf/cineon/$(DEBUG_DIR)libcineon.a

View File

@@ -49,7 +49,11 @@ ifeq ($(WITH_DDS), true)
endif
ifeq ($(WITH_OPENJPEG), true)
ifndef BF_OPENJPEG_INC
CFLAGS += -DWITH_OPENJPEG -I../../../../extern/libopenjpeg
else
CFLAGS += -DWITH_OPENJPEG -I$(BF_OPENJPEG_INC)
endif
endif
CFLAGS += $(LEVEL_1_C_WARNINGS)

View File

@@ -122,6 +122,7 @@ ifndef CONFIG_GUESS
export WITH_OPENAL ?= false
export WITH_JACK ?= false
export WITH_SNDFILE ?= false
export WITH_FFTW3 ?= false
ifeq ($(WITH_OPENAL), true)
export NAN_OPENAL ?= /usr
@@ -350,6 +351,18 @@ ifndef CONFIG_GUESS
export NAN_OPENEXR_LIBS ?= $(addprefix ${NAN_OPENEXR}/lib/lib,$(addsuffix .a,$(shell pkg-config --libs-only-l OpenEXR | sed -s "s/-l//g" )))
endif
ifeq ($(WITH_FFTW3), true)
export BF_FFTW3 ?= $(shell pkg-config --variable=prefix fftw3 )
export BF_FFTW3_INC ?= $(shell pkg-config --variable=includedir fftw3 )
export BF_FFTW3_LIBS ?= $(shell pkg-config --libs fftw3 )
endif
ifeq ($(WITH_OPENJPEG), true)
export BF_OPENJPEG ?= /usr
export BF_OPENJPEG_INC ?= /usr/include
export BF_OPENJPEG_LIBS ?= -lopenjpeg
endif
# Uncomment the following line to use Mozilla inplace of netscape
# Location of MOZILLA/Netscape header files...

View File

@@ -170,4 +170,8 @@ ifeq ($(WITH_BF_OPENMP),true)
LLIBS += -lgomp
endif
ifeq ($(WITH_FFTW3),true)
LLIBS += $(BF_FFTW3_LIBS)
endif
LLIBS += $(NAN_PYTHON_LIB)