ajacoutot 53e962840c Update to libspectre-0.2.9.
Revert some upstream commits because our ghostscript version is super old.
2021-09-11 09:19:19 +00:00

47 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.31 2021/09/11 09:19:19 ajacoutot Exp $
# libgs from ghostscript is only provided on shared libs archs
COMMENT= library for rendering Postscript documents
DISTNAME= libspectre-0.2.9
CATEGORIES= print
SHARED_LIBS += spectre 1.0 # 2.8
HOMEPAGE= http://libspectre.freedesktop.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB += ICE SM X11 Xext Xt avahi-client avahi-common cups dbus-1
WANTLIB += execinfo freetype gmp gnutls gs hogweed iconv idn2
WANTLIB += ijs intl jbig2dec jpeg lcms2 lzma m nettle p11-kit
WANTLIB += png pthread tasn1 tiff unistring xcb z zstd
MASTER_SITES= http://libspectre.freedesktop.org/releases/
# we want the 'display' device from ghostscript, which is not available
# in the no_x11 FLAVOR
LIB_DEPENDS= devel/gettext,-runtime \
ghostscript-*-!no_x11:print/ghostscript/gnu
CONFIGURE_STYLE=autoconf
AUTOCONF_VERSION=2.69
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
.ifdef DEBUG
BUILD_DEPENDS+= graphics/cairo
CONFIGURE_ARGS+=--enable-test
.else
CONFIGURE_ARGS+=--disable-test
.endif
DEBUG_PACKAGES= ${BUILD_PACKAGES}
.include <bsd.port.mk>