2011-12-31 11:50:52 +00:00
|
|
|
OPENJPEG = openjpeg-1.4
|
2014-05-07 21:52:52 +00:00
|
|
|
OPENJPEG_DIR = $(call select_from_ports,openjpeg)/src/lib/openjpeg/libopenjpeg
|
2011-12-31 11:50:52 +00:00
|
|
|
LIBS += libc libm
|
|
|
|
INC_DIR += $(OPENJPEG_DIR) $(REP_DIR)/include/openjpeg
|
|
|
|
|
|
|
|
# incorporate all '*.c' files except those that are not part of the library
|
|
|
|
FILTER_OUT = t1_generate_luts.c
|
|
|
|
SRC_C = $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(OPENJPEG_DIR)/*.c)))
|
|
|
|
|
|
|
|
# disable warning noise for contrib code
|
|
|
|
CC_WARN = -Wno-unused-but-set-variable
|
|
|
|
|
|
|
|
vpath %.c $(OPENJPEG_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Provide 'opj_config.h' file normally created by the configure process
|
|
|
|
#
|
|
|
|
opj_config.h:
|
|
|
|
$(VERBOSE)echo "#define PACKAGE_VERSION \"1.4.0\"" > $@
|
|
|
|
|
2012-01-05 22:32:05 +00:00
|
|
|
$(SRC_C:.c=.o): opj_config.h
|
2011-12-31 11:50:52 +00:00
|
|
|
|
|
|
|
clean: clean_opj_config_h
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# 'malloc.h' is deprecated, yet still included by libopenjpeg, so that we have
|
|
|
|
# to provide a dummy implementation here.
|
|
|
|
#
|
|
|
|
malloc.h:
|
|
|
|
$(VERBOSE)echo "#include <stdlib.h>" > $@
|
|
|
|
$(VERBOSE)echo "#undef HAVE_MEMALIGN" >> $@
|
|
|
|
|
2012-01-05 22:32:05 +00:00
|
|
|
$(SRC_C:.c=.o): malloc.h
|
2011-12-31 11:50:52 +00:00
|
|
|
|
|
|
|
clean: clean_malloc_h
|
|
|
|
|
|
|
|
|
|
|
|
clean_malloc_h clean_opj_config_h:
|
|
|
|
$(VERBOSE)rm -f malloc.h
|
|
|
|
|
|
|
|
|
|
|
|
SHARED_LIB = yes
|
2018-01-03 17:40:54 +00:00
|
|
|
|
|
|
|
CC_CXX_WARN_STRICT =
|