blob: 6496085b4f4ffbeef11f0b3c80437d865999840e (
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
|
# $NetBSD: Makefile,v 1.42 2014/04/11 17:54:10 wiz Exp $
DISTNAME= libdrm-2.4.53
CATEGORIES= x11 graphics
MASTER_SITES= http://dri.freedesktop.org/libdrm/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://dri.freedesktop.org/wiki/DRM
COMMENT= Userspace interface to kernel DRM services
ONLY_FOR_PLATFORM= NetBSD-*-* DragonFly-*-* FreeBSD-*-* OpenBSD-*-* \
Linux-*-* SunOS-*-*
USE_PKGLOCALEDIR= yes
USE_TOOLS+= pkg-config
USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE+= libdrm.pc.in
GNU_CONFIGURE= yes
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= atomic
SUBST_FILES.atomic= xf86drm.h
SUBST_MESSAGE.atomic= Configuring xf86drm.h's atomic operations.
SUBST_STAGE.atomic= pre-configure
SUBST_VARS.atomic= ATOMIC_OPS_CHECK
ATOMIC_OPS_CHECK= 0
.if exists(/usr/include/sys/atomic.h)
ATOMIC_OPS_CHECK= 1
.else
. include "../../devel/libatomic_ops/buildlink3.mk"
CONFIGURE_ENV+= drm_cv_atomic_primitives=libatomic-ops
.endif
CONFIGURE_ARGS+= PTHREADSTUBS_CFLAGS=-I${PREFIX}/include \
PTHREADSTUBS_LIBS=-L${PREFIX}/lib
CONFIGURE_ARGS+= --disable-manpages
PLIST_VARS+= intel
.if !empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Mx86_64)
.include "../../sysutils/libpciaccess/buildlink3.mk"
PLIST.intel= yes
#.else
#CONFIGURE_ARGS+= --disable-intel
.endif
.include "../../mk/bsd.pkg.mk"
|