graphics/gd: switch to cmake build, from Brad, been through bulk on i386

This commit is contained in:
sthen 2020-10-08 20:16:56 +00:00
parent 4e3feb151e
commit 2d13a5ae06
2 changed files with 37 additions and 8 deletions

View File

@ -1,12 +1,13 @@
# $OpenBSD: Makefile,v 1.79 2020/06/30 00:05:49 sthen Exp $
# $OpenBSD: Makefile,v 1.80 2020/10/08 20:16:56 sthen Exp $
COMMENT= library for dynamic creation of images
V= 2.3.0
DISTNAME= libgd-$V
PKGNAME= gd-$V
REVISION= 0
SHARED_LIBS += gd 22.0 # 3.0
SHARED_LIBS += gd 22.1 # 3.0
CATEGORIES= graphics
@ -14,16 +15,15 @@ HOMEPAGE= https://libgd.github.io/
PERMIT_PACKAGE= Yes
WANTLIB += c expat fontconfig freetype iconv jpeg lzma m png pthread
WANTLIB += tiff webp z zstd
WANTLIB += ${COMPILER_LIBCXX} c fontconfig freetype iconv jpeg m png pthread
WANTLIB += tiff webp z
COMPILER = base-clang ports-gcc base-gcc
DEBUG_PACKAGES = ${BUILD_PACKAGES}
MASTER_SITES= https://github.com/libgd/libgd/releases/download/${PKGNAME}/
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --without-xpm
MODULES= devel/cmake
LIB_DEPENDS= converters/libiconv \
graphics/jpeg \
@ -31,4 +31,14 @@ LIB_DEPENDS= converters/libiconv \
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
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.14 2020/06/30 00:05:49 sthen Exp $
@comment $OpenBSD: PLIST,v 1.15 2020/10/08 20:16:56 sthen Exp $
@bin bin/annotate
bin/bdftogd
@bin bin/gd2copypal
@ -25,6 +25,25 @@ include/gdfontt.h
include/gdfx.h
include/gdpp.h
@static-lib lib/libgd.a
lib/libgd.la
@lib lib/libgd.so.${LIBgd_VERSION}
lib/pkgconfig/gdlib.pc
share/doc/gd/
share/doc/gd/INSTALL
share/doc/gd/README.CMAKE
share/doc/gd/README.JPN
share/doc/gd/README.TESTING
share/doc/gd/README.TXT
share/doc/gd/arc.c
share/doc/gd/copyrotated.c
share/doc/gd/crop.c
share/doc/gd/flip.c
share/doc/gd/gif.c
share/doc/gd/nnquant.c
share/doc/gd/noIcon.pic
share/doc/gd/noIcon.sgi
share/doc/gd/noIcon.tga
share/doc/gd/noIconAlpha.tga
share/doc/gd/test_crop_threshold.png
share/doc/gd/tgaread.c
share/doc/gd/tiffread.c
share/doc/gd/windows.c