Files
claudio e3d2d4cdf2 Make this work with gcc15
Remove base-gcc from COMPILER, replace the CXXFLAGS_base-clang with
CXXFLAGS so that the right -std=c++XY is passed to the compiler since
in most cases the c++ needs to be downgraded to make the code compile.

OK sthen@ tb@
2025-12-04 07:48:02 +00:00

45 lines
989 B
Makefile

COMMENT= c++ library for common image format
DISTNAME= FreeImage3180
PKGNAME= freeimage-3.18.0
CATEGORIES= graphics
REVISION= 2
SHARED_LIBS+= freeimage 3.0
HOMEPAGE= https://freeimage.sourceforge.net/
# GPL / "FreeImage Public Nons^WLicense"
PERMIT_PACKAGE= Yes
WANTLIB= ${COMPILER_LIBCXX} m
COMPILER = base-clang ports-gcc
CXXFLAGS = -std=c++14
SITES= ${SITE_SOURCEFORGE:=freeimage/}
EXTRACT_SUFX= .zip
WRKDIST= ${WRKDIR}/FreeImage
USE_GMAKE= Yes
MAKE_ENV= LIBfreeimage_VERSION=${LIBfreeimage_VERSION} \
CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}"
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}
.include <bsd.port.mk>