b4f0a0d603
Fix the following build failure with gcc 11: In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfHeader.h:51, from Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:46, from Source/FreeImage/PluginEXR.cpp:33: Source/OpenEXR/Imath/ImathVec.h:228:41: error: ISO C++17 does not allow dynamic exception specifications 228 | const Vec2 & normalizeExc () throw (IEX_NAMESPACE::MathExc); | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/953cd07402fe2f99f2361a3b4a7b086a88e0d72d Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# libfreeimage
|
|
#
|
|
################################################################################
|
|
|
|
LIBFREEIMAGE_VERSION = 3.18.0
|
|
LIBFREEIMAGE_SITE = http://downloads.sourceforge.net/freeimage
|
|
LIBFREEIMAGE_SOURCE = FreeImage$(subst .,,$(LIBFREEIMAGE_VERSION)).zip
|
|
LIBFREEIMAGE_LICENSE = GPL-2.0 or GPL-3.0 or FreeImage Public License
|
|
LIBFREEIMAGE_LICENSE_FILES = license-gplv2.txt license-gplv3.txt license-fi.txt
|
|
LIBFREEIMAGE_CPE_ID_VENDOR = freeimage_project
|
|
LIBFREEIMAGE_CPE_ID_PRODUCT = freeimage
|
|
LIBFREEIMAGE_INSTALL_STAGING = YES
|
|
|
|
define LIBFREEIMAGE_EXTRACT_CMDS
|
|
$(UNZIP) $(LIBFREEIMAGE_DL_DIR)/$(LIBFREEIMAGE_SOURCE) -d $(@D)
|
|
mv $(@D)/FreeImage/* $(@D)
|
|
rmdir $(@D)/FreeImage
|
|
endef
|
|
|
|
define LIBFREEIMAGE_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \
|
|
CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define LIBFREEIMAGE_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
|
endef
|
|
|
|
define LIBFREEIMAGE_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|