openbsd-ports/graphics/gd/Makefile
2022-07-02 14:09:08 +00:00

50 lines
1006 B
Makefile

COMMENT= library for dynamic creation of images
V= 2.3.3
DISTNAME= libgd-$V
PKGNAME= gd-$V
SHARED_LIBS += gd 23.0 # 3.0
CATEGORIES= graphics
HOMEPAGE= https://libgd.github.io/
PERMIT_PACKAGE= Yes
WANTLIB += ${COMPILER_LIBCXX}
WANTLIB += c fontconfig freetype iconv jpeg m png tiff webp z
COMPILER = base-clang ports-gcc
DEBUG_PACKAGES = ${BUILD_PACKAGES}
MASTER_SITES= https://github.com/libgd/libgd/releases/download/${PKGNAME}/
MODULES= devel/cmake
LIB_DEPENDS= converters/libiconv \
graphics/jpeg \
graphics/libwebp \
graphics/png \
graphics/tiff
CONFIGURE_ARGS+= \
-DBUILD_STATIC_LIBS=ON \
-DENABLE_FONTCONFIG=1 \
-DENABLE_FREETYPE=1 \
-DENABLE_GD_FORMATS=1 \
-DENABLE_ICONV=1 \
-DENABLE_JPEG=1 \
-DENABLE_PNG=1 \
-DENABLE_TIFF=1 \
-DENABLE_WEBP=1
# Could be enabled if needed:
# graphics/libavif, multimedia/libheif, graphics/libimagequant
CONFIGURE_ARGS+= \
-DENABLE_AVIF=0 \
-DENABLE_HEIF=0 \
-DENABLE_LIQ=0
.include <bsd.port.mk>