summaryrefslogtreecommitdiff
path: root/x11/Xrender/Makefile
blob: e983c1335e089212967ca8181d3108595f04de39 (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
# $NetBSD: Makefile,v 1.4 2003/07/17 22:56:20 grant Exp $

DISTNAME=	fcpackage.2_1
PKGNAME=	Xrender-${XRENDER_VERSION}
WRKSRC=		${WRKDIR}/${DISTNAME}/Xrender
CATEGORIES=	x11
MASTER_SITES=	http://fontconfig.org/release/

MAINTAINER=	jlam@NetBSD.org
HOMEPAGE=	http://fontconfig.org/
COMMENT=	client library for the X Rendering Extension protocol

# This value is RENDER_MAJOR.RENDOR_MINOR from ${WRKSRC}/render.h.
XRENDER_VERSION=	0.7

USE_BUILDLINK2=		YES
USE_IMAKE=		YES
EXTRACT_ELEMENTS=	${DISTNAME}/Xrender

.include "../../mk/bsd.prefs.mk"

_RENDER_H=		${X11BASE}/include/X11/extensions/render.h
_X11_TMPL=		${X11BASE}/lib/X11/config/X11.tmpl
.if exists(${_RENDER_H}) && exists(${_X11_TMPL})
_IS_BUILTIN_XRENDER!=	${GREP} -c BuildRenderLibrary ${_X11_TMPL} || ${TRUE}
.else
_IS_BUILTIN_XRENDER=	0
.endif

.if (${X11PREFIX} == ${X11BASE}) && (${_IS_BUILTIN_XRENDER} != "0")
PKG_SKIP_REASON= "${PKGNAME} is part of your X11 distribution"
.endif

.include "../../mk/bsd.pkg.mk"