2012-06-10 18:32:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.18 2012/06/10 16:32:13 wiz Exp $
|
2006-11-14 15:22:12 +01:00
|
|
|
#
|
|
|
|
|
2012-06-10 18:32:13 +02:00
|
|
|
DISTNAME= libdrm-2.4.35
|
2006-11-14 15:22:12 +01:00
|
|
|
CATEGORIES= x11 graphics
|
|
|
|
MASTER_SITES= http://dri.freedesktop.org/libdrm/
|
2006-11-14 19:19:43 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2006-11-14 15:22:12 +01:00
|
|
|
|
|
|
|
MAINTAINER= joerg@NetBSD.org
|
|
|
|
HOMEPAGE= http://dri.freedesktop.org/wiki/DRM
|
|
|
|
COMMENT= Userspace interface to kernel DRM services
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2010-05-03 00:24:38 +02:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-* DragonFly-*-* FreeBSD-*-* OpenBSD-*-* \
|
2012-02-16 21:30:55 +01:00
|
|
|
Linux-*-* SunOS-*-*
|
2010-05-03 00:24:38 +02:00
|
|
|
|
2006-11-14 15:22:12 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2009-05-05 06:22:30 +02:00
|
|
|
USE_TOOLS+= pkg-config
|
2006-11-14 15:22:12 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
PKGCONFIG_OVERRIDE+= libdrm.pc.in
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2008-05-06 08:20:25 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
SUBST_CLASSES+= atomic
|
2010-04-16 15:43:36 +02:00
|
|
|
SUBST_FILES.atomic= xf86drm.h
|
2008-05-06 08:20:25 +02:00
|
|
|
SUBST_MESSAGE.atomic= Configuring xf86drm.h's atomic operations.
|
|
|
|
SUBST_STAGE.atomic= pre-configure
|
|
|
|
SUBST_VARS.atomic= ATOMIC_OPS_CHECK
|
|
|
|
|
2010-04-19 20:46:15 +02:00
|
|
|
ATOMIC_OPS_CHECK= 0
|
2010-04-19 20:49:30 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
. if exists(/usr/include/sys/atomic.h)
|
|
|
|
ATOMIC_OPS_CHECK= 1
|
|
|
|
. else
|
|
|
|
. include "../../devel/libatomic_ops/buildlink3.mk"
|
2010-04-19 20:46:15 +02:00
|
|
|
CONFIGURE_ENV+= drm_cv_atomic_primitives=libatomic-ops
|
2010-04-19 20:49:30 +02:00
|
|
|
. endif
|
2008-05-06 08:20:25 +02:00
|
|
|
.endif
|
|
|
|
|
2009-05-05 06:22:30 +02:00
|
|
|
CONFIGURE_ARGS+= PTHREADSTUBS_CFLAGS=-I${PREFIX}/include \
|
|
|
|
PTHREADSTUBS_LIBS=-L${PREFIX}/lib
|
|
|
|
|
2012-05-08 22:32:47 +02:00
|
|
|
.include "../../sysutils/libpciaccess/buildlink3.mk"
|
2006-11-14 15:22:12 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|