| @@ -1,59 +1,64 @@ | | | @@ -1,59 +1,64 @@ |
1 | # $NetBSD: Makefile,v 1.97 2012/02/24 10:40:49 obache Exp $ | | 1 | # $NetBSD: Makefile,v 1.98 2012/04/08 17:21:13 bsiegert Exp $ |
2 | | | 2 | |
3 | DISTNAME= cairo-1.10.2 | | 3 | DISTNAME= cairo-1.10.2 |
4 | PKGREVISION= 4 | | 4 | PKGREVISION= 4 |
5 | CATEGORIES= graphics | | 5 | CATEGORIES= graphics |
6 | MASTER_SITES= http://cairographics.org/releases/ | | 6 | MASTER_SITES= http://cairographics.org/releases/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://cairographics.org/ | | 9 | HOMEPAGE= http://cairographics.org/ |
10 | COMMENT= Vector graphics library with cross-device output support | | 10 | COMMENT= Vector graphics library with cross-device output support |
11 | LICENSE= gnu-lgpl-v2.1 AND mpl-1.1 | | 11 | LICENSE= gnu-lgpl-v2.1 AND mpl-1.1 |
12 | | | 12 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 14 | |
15 | USE_LANGUAGES+= c99 | | 15 | USE_LANGUAGES+= c99 |
16 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
17 | USE_PKGLOCALEDIR= yes | | 17 | USE_PKGLOCALEDIR= yes |
18 | USE_TOOLS+= pkg-config | | 18 | USE_TOOLS+= pkg-config |
19 | PKGCONFIG_OVERRIDE+= src/cairo.pc.in \ | | 19 | PKGCONFIG_OVERRIDE+= src/cairo.pc.in \ |
20 | src/cairo-features.pc.in | | 20 | src/cairo-features.pc.in |
21 | | | 21 | |
22 | GNU_CONFIGURE= yes | | 22 | GNU_CONFIGURE= yes |
23 | CONFIGURE_ARGS+= --enable-gl | | 23 | CONFIGURE_ARGS+= --enable-gl |
24 | CONFIGURE_ARGS+= --enable-pdf | | 24 | CONFIGURE_ARGS+= --enable-pdf |
25 | CONFIGURE_ARGS+= --enable-ps | | 25 | CONFIGURE_ARGS+= --enable-ps |
26 | CONFIGURE_ARGS+= --enable-tee | | 26 | CONFIGURE_ARGS+= --enable-tee |
27 | | | 27 | |
28 | PLIST_VARS+= carbon | | 28 | PLIST_VARS+= carbon |
29 | .if exists(/System/Library/Frameworks/Carbon.framework) | | 29 | .if exists(/System/Library/Frameworks/Carbon.framework) |
30 | CONFIGURE_ARGS+= --enable-quartz | | 30 | CONFIGURE_ARGS+= --enable-quartz |
31 | CONFIGURE_ARGS+= --enable-quartz-font | | 31 | CONFIGURE_ARGS+= --enable-quartz-font |
32 | CONFIGURE_ARGS+= --enable-quartz-image | | 32 | CONFIGURE_ARGS+= --enable-quartz-image |
33 | PLIST.carbon= yes | | 33 | PLIST.carbon= yes |
34 | .endif | | 34 | .endif |
35 | | | 35 | |
36 | .include "options.mk" | | 36 | .include "options.mk" |
37 | | | 37 | |
38 | # For snprintf() and ctime_r() | | 38 | # For snprintf() and ctime_r() |
39 | CPPFLAGS.SunOS+= -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS | | 39 | CPPFLAGS.SunOS+= -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS |
40 | | | 40 | |
41 | TEST_TARGET= check | | 41 | TEST_TARGET= check |
42 | | | 42 | |
43 | # PR#43928 | | 43 | # PR#43928 |
44 | .include "../../mk/compiler.mk" | | 44 | .include "../../mk/compiler.mk" |
45 | .if ${MACHINE_PLATFORM:MDragonFly-*-x86_64} && ${CC_VERSION:Mgcc-4.1.*} | | 45 | .if ${MACHINE_PLATFORM:MDragonFly-*-x86_64} && ${CC_VERSION:Mgcc-4.1.*} |
46 | CONFIGURE_ENV+= ac_cv_type___uint128_t=no | | 46 | CONFIGURE_ENV+= ac_cv_type___uint128_t=no |
47 | .endif | | 47 | .endif |
48 | | | 48 | |
| | | 49 | # Workaround so that pthread is found on MirBSD |
| | | 50 | .if ${OPSYS} == "MirBSD" |
| | | 51 | CONFIGURE_ENV+= PTHREAD_CFLAGS=${CFLAGS:Q} |
| | | 52 | .endif |
| | | 53 | |
49 | .include "../../devel/zlib/buildlink3.mk" | | 54 | .include "../../devel/zlib/buildlink3.mk" |
50 | .include "../../fonts/fontconfig/buildlink3.mk" | | 55 | .include "../../fonts/fontconfig/buildlink3.mk" |
51 | BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.1.9 | | 56 | BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.1.9 |
52 | .include "../../graphics/freetype2/buildlink3.mk" | | 57 | .include "../../graphics/freetype2/buildlink3.mk" |
53 | .include "../../graphics/png/buildlink3.mk" | | 58 | .include "../../graphics/png/buildlink3.mk" |
54 | # include? | | 59 | # include? |
55 | #.include "../../print/libspectre/buildlink3.mk" | | 60 | #.include "../../print/libspectre/buildlink3.mk" |
56 | .include "../../x11/pixman/buildlink3.mk" | | 61 | .include "../../x11/pixman/buildlink3.mk" |
57 | | | 62 | |
58 | .include "../../mk/pthread.buildlink3.mk" | | 63 | .include "../../mk/pthread.buildlink3.mk" |
59 | .include "../../mk/bsd.pkg.mk" | | 64 | .include "../../mk/bsd.pkg.mk" |