summaryrefslogtreecommitdiff
path: root/graphics/libepoxy/Makefile
blob: 0c659143226f536ecb978e67b3e118b1b5bca08a (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.8 2015/09/14 14:40:37 gdt Exp $

DISTNAME=	libepoxy-1.3.1
PKGEVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_GITHUB:=anholt/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/anholt/libepoxy/
COMMENT=	Library for OpenGL function pointer management
LICENSE=	mit

BUILD_DEPENDS+=	${PYPKGPREFIX}-expat>=0:../../textproc/py-expat

USE_TOOLS+=	pkg-config autoconf autoreconf automake
USE_LIBTOOL=	yes
GNU_CONFIGURE=	yes
PYTHON_FOR_BUILD_ONLY=	yes

PKGCONFIG_OVERRIDE+=	epoxy.pc.in

pre-configure:
	cd ${WRKSRC} && autoreconf -vif

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

PLIST_VARS+=		egl
.if ${X11_TYPE} == "modular" || exists(${X11BASE}/include/EGL/egl.h)
PLIST.egl=		yes
CONFIGURE_ENV+=		PKGSRC_BUILD_EGL=yes
.else
CONFIGURE_ENV+=		PKGSRC_BUILD_EGL=no
.endif

# This could be garbage collected, but it seems likely that there will
# be more glx issues, so it seems easier to leave it.
PLIST_VARS+=		glx
.if ${OPSYS} != "Darwin"
PLIST.glx=		yes
.else
# On Darwin, we patch upstream to enable this.
PLIST.glx=		yes
.endif

.include "../../lang/python/tool.mk"
.include "../../devel/xorg-util-macros/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"