openbsd-ports/graphics/cairo/Makefile
2013-03-21 08:45:11 +00:00

56 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.50 2013/03/21 08:45:17 ajacoutot Exp $
COMMENT= vector graphics library
DISTNAME= cairo-1.12.14
SHARED_LIBS+= cairo 12.2
SHARED_LIBS+= cairo-gobject 1.0
SHARED_LIBS+= cairo-script-interpreter 1.1
CATEGORIES= graphics
DPB_PROPERTIES= parallel
EXTRACT_SUFX= .tar.xz
HOMEPAGE= http://cairographics.org/
MAINTAINER= Eric Faurot <eric@openbsd.org>
WANTLIB += X11 Xau Xdmcp Xext Xrender expat ffi fontconfig freetype
WANTLIB += glib-2.0 gobject-2.0 gthread-2.0 lzo2 m pcre pixman-1 png
WANTLIB += pthread pthread-stubs xcb xcb-render xcb-shm z
# LGPLv2.1 / MPL 1.1
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://cairographics.org/releases/
MODULES= devel/gettext
USE_GMAKE= Yes
LIB_DEPENDS= archivers/lzo2 \
devel/glib2 \
graphics/png
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-gtk-doc
# needed for firefox
CONFIGURE_ARGS += --enable-tee
# If one of these tools is found at configure stage, it might be used,
# no matter whether we use --disable-gtk-doc or not.
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_path_GTKDOC_CHECK="" \
ac_cv_path_GTKDOC_REBASE="" \
ac_cv_path_GTKDOC_MKPDF=""
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/cairo.pc.in
post-install:
rm ${PREFIX}/lib/cairo/*.{a,la}
.include <bsd.port.mk>