aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libglapi/Makefile
blob: d002e72caec840ff0585ef58b734c4a5b021c790 (plain) (blame)
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
# Created by: kwm@FreeBSD.org
# $FreeBSD$

PORTNAME=   libglapi
PORTVERSION=    ${MESAVERSION}
CATEGORIES= graphics

COMMENT=    Common GL api libary used by Mesa based ports

BUILD_DEPENDS=  expat>=0:${PORTSDIR}/textproc/expat2 \
        libdrm>=0:${PORTSDIR}/graphics/libdrm \
        libpthread-stubs>=0:${PORTSDIR}/devel/libpthread-stubs

USE_XORG=   x11 xau xcb xdmcp

# stuff not needed by libglapi but configure wants it
USE_XORG+=  glproto dri2proto dri3proto xext xdamage xfixes presentproto \
        xshmfence

BUILD_WRKSRC=   ${WRKSRC}/src/mapi/shared-glapi
INSTALL_WRKSRC= ${WRKSRC}/src/mapi/shared-glapi

.include <bsd.port.options.mk>

.if ! defined(WITH_NEW_XORG)
IGNORE= Please enable WITH_NEW_XORG, libglapi needs libdrm higher then 2.4.24
.endif

.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk"
.include <bsd.port.mk>