blob: 673cc5b06ed910224be2d76b3c35b51b63f7c7c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $NetBSD: Makefile.common,v 1.3 2014/05/29 14:24:24 darcy Exp $
#
# used by graphics/cairo/Makefile
# used by graphics/cairo-gobject/Makefile
DISTNAME= cairo-1.12.16
CATEGORIES= graphics
MASTER_SITES= http://cairographics.org/releases/
EXTRACT_SUFX= .tar.xz
MAINTAINER?= pkgsrc-users@NetBSD.org
HOMEPAGE= http://cairographics.org/
COMMENT= Vector graphics library with cross-device output support
LICENSE= gnu-lgpl-v2.1 AND mpl-1.1
DISTINFO_FILE= ${.CURDIR}/../../graphics/cairo/distinfo
PATCHDIR= ${.CURDIR}/../../graphics/cairo/patches
USE_LANGUAGES= c99 c++
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
# does not build against NetBSD-5's MesaLib, and is according
# to upstream, only used by "toy applications"
CONFIGURE_ARGS+= --disable-gl
CONFIGURE_ARGS+= --enable-fc
CONFIGURE_ARGS+= --enable-pdf
CONFIGURE_ARGS+= --enable-ps
CONFIGURE_ARGS+= --enable-tee
# Darwin: Quartz backend interacts badly with our library stack. The
# most notable issue is that when quartz-font is enabled, cairo will
# never use fontconfig but instead uses CoreGraphics API to find fonts
# in system-default font paths; as a result, any fonts installed with
# pkgsrc will never be found. OTOH fontconfig by default searches for
# fonts in MacOS X system-default paths too so sticking with it will
# not cause a problem.
CONFIGURE_ARGS+= --disable-quartz
CONFIGURE_ARGS+= --disable-quartz-font
CONFIGURE_ARGS+= --disable-quartz-image
PKGCONFIG_OVERRIDE+= src/cairo.pc.in
PKGCONFIG_OVERRIDE+= src/cairo-features.pc.in
# For snprintf() and ctime_r()
CPPFLAGS.SunOS+= -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
# PR#43928
.include "../../mk/compiler.mk"
.if ${MACHINE_PLATFORM:MDragonFly-*-x86_64} && ${CC_VERSION:Mgcc-4.1.*}
CONFIGURE_ENV+= ac_cv_type___uint128_t=no
.endif
|