6e6caf0672
from upstream git 077182e1fe53131d7c88cc1a0f278403e60bdc32 Thanks to libspectre developer Carlos Garcia Campos for debugging/fixing his application on OpenBSD.
43 lines
984 B
Makefile
43 lines
984 B
Makefile
# $OpenBSD: Makefile,v 1.4 2009/09/11 10:40:11 ajacoutot Exp $
|
|
|
|
# libgs from ghostscript is only provided on shared libs archs
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= library for rendering Postscript documents
|
|
|
|
DISTNAME= libspectre-0.2.2
|
|
PKGNAME= ${DISTNAME}p2
|
|
CATEGORIES= print
|
|
|
|
SHARED_LIBS= spectre 0.0 # .2.2
|
|
|
|
HOMEPAGE= http://libspectre.freedesktop.org/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/releases/
|
|
|
|
# we want the 'display' device from ghostscript, which is not available
|
|
# in the no_x11 FLAVOR
|
|
LIB_DEPENDS= gs.>=11:ghostscript-*-!no_x11:print/ghostscript/gnu
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -pthread"
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
|
|
|
|
.ifdef DEBUG
|
|
BUILD_DEPENDS+= ::graphics/cairo
|
|
CONFIGURE_ARGS+=--enable-test
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-test
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|