aboutsummaryrefslogtreecommitdiff
path: root/graphics/libglvnd/Makefile
blob: da53c5bd2dbe3deefe80b9cb5c00953cdfaaf9ae (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
PORTNAME=	libglvnd
DISTVERSION=	1.4.0
PORTREVISION=	2
CATEGORIES=	graphics

PATCH_SITES=	https://gitlab.freedesktop.org/glvnd/libglvnd/-/commit/
PATCHFILES=	28da9963e52ee2d2e1501351eb26b77cec89f886.diff:-p1 \
		d853cf56f81afff725946eec1144560a121da5af.diff:-p1 \
		b90f235998e199d810ef61c0a8dc103d297962cb.diff:-p1

MAINTAINER=	x11@FreeBSD.org
COMMENT=	GL Vendor-Neutral Dispatch library

LICENSE=	APACHE20 MIT
LICENSE_COMB=	multi

USES=		compiler:c++11-lib localbase meson pkgconfig
USE_LDCONFIG=	yes

USE_GITLAB=	yes
GL_SITE=	https://gitlab.freedesktop.org
GL_ACCOUNT=	glvnd
GL_COMMIT=	8f3c5b17a21e2222ab3e5fd38870b915815aca49

OPTIONS_DEFINE=	X11
OPTIONS_DEFAULT=X11
OPTIONS_SUB=	yes

X11_USES=		xorg
X11_USE=		XORG=x11,xext,xorgproto
X11_MESON_ENABLED=	x11 glx

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc64le
BUILD_DEPENDS=	as:devel/binutils
CFLAGS+=	-no-integrated-as
.elif ${ARCH} == powerpc64
BUILD_DEPENDS=	as:devel/binutils
CFLAGS+=	-no-integrated-as -O0
.endif

# Lots of software expects gl.pc even when it can build with EGL only
post-install-X11-off:
	${LN} -s opengl.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/gl.pc

.include <bsd.port.mk>