Merge from vendor branch TNF:
[pkgsrcv2.git] / graphics / glitz / Makefile
1 # $NetBSD: Makefile,v 1.24 2008/04/12 22:43:01 jlam Exp $
2
3 DISTNAME=       glitz-0.5.6
4 PKGREVISION=    2
5 CATEGORIES=     graphics
6 MASTER_SITES=   http://cairographics.org/snapshots/
7
8 MAINTAINER=     adam@NetBSD.org
9 HOMEPAGE=       http://freedesktop.org/Software/glitz
10 COMMENT=        OpenGL 2D graphics library and a backend for gl output in cairo
11
12 PKG_DESTDIR_SUPPORT=    user-destdir
13
14 USE_LANGUAGES+=         c99
15 USE_LIBTOOL=            yes
16 GNU_CONFIGURE=          yes
17 PKGCONFIG_OVERRIDE=     src/agl/glitz-agl.pc.in src/glx/glitz-glx.pc.in \
18                         src/glitz.pc.in
19
20 PLIST_VARS+=            agl
21 .if exists(/System/Library/Frameworks/AGL.framework)
22 PLIST.agl=              yes
23 CONFIGURE_ENV+=         AGL_LIBS="-framework AGL"
24 .endif
25
26 .include "../../mk/bsd.prefs.mk"
27
28 # This is for the benefit of the configure test; libglitz-glx already
29 # links against libpthread.
30 .if ${OPSYS} == "IRIX"
31 BUILDLINK_TRANSFORM+=   l:GL:GL:pthread
32 .endif
33
34 .include "options.mk"
35
36 .include "../../mk/pthread.buildlink3.mk"
37 .include "../../mk/bsd.pkg.mk"