graphics/freeimage: do not attempt to build the bundled libpng with neon

support on arm and aarch64. The sources are not included, so the library
has missing external references such as png_init_filter_functions_neon().
This in turn breaks the build of emulators/emulationstation and x11/ogre.

ok jca (who also suggested that arm needed same fix)
This commit is contained in:
tb 2022-08-04 19:03:14 +00:00
parent cbd37ed293
commit 7084fc7b05

View File

@ -3,6 +3,7 @@ COMMENT= c++ library for common image format
DISTNAME= FreeImage3180
PKGNAME= freeimage-3.18.0
CATEGORIES= graphics
REVISION= 0
SHARED_LIBS+= freeimage 3.0
@ -29,6 +30,12 @@ MAKE_TARGET= Makefile.gnu
FIX_CRLF_FILES= Makefile.gnu TestAPI/Makefile
# The bundled libpng ships without the source for neon support, so
# disable it to avoid undefined external references.
.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "arm"
CFLAGS += -DPNG_ARM_NEON_OPT=0
.endif
do-test:
cd ${WRKSRC}/TestAPI && ${MAKE_PROGRAM} ${MAKE_ENV}