head	1.3;
access;
symbols
	netbsd-11-0-RC4:1.3
	netbsd-11-0-RC3:1.3
	netbsd-11-0-RC2:1.3
	netbsd-11-0-RC1:1.3
	perseant-exfatfs-base-20250801:1.3
	netbsd-11:1.3.0.14
	netbsd-11-base:1.3
	netbsd-10-1-RELEASE:1.3
	perseant-exfatfs-base-20240630:1.3
	perseant-exfatfs:1.3.0.12
	perseant-exfatfs-base:1.3
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.3
	netbsd-10-0-RELEASE:1.3
	netbsd-10-0-RC6:1.3
	netbsd-10-0-RC5:1.3
	netbsd-10-0-RC4:1.3
	netbsd-10-0-RC3:1.3
	netbsd-10-0-RC2:1.3
	netbsd-10-0-RC1:1.3
	netbsd-10:1.3.0.10
	netbsd-10-base:1.3
	netbsd-9-3-RELEASE:1.3
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.8
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.3.0.6
	cjep_staticlib_x-base:1.3
	netbsd-9-1-RELEASE:1.3
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	is-mlppp:1.3.0.4
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	netbsd-8-2-RELEASE:1.1
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.2
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	pgoyette-compat-merge-20190127:1.1.14.1
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.1
	pgoyette-compat-1126:1.1
	pgoyette-compat-1020:1.1
	pgoyette-compat-0930:1.1
	pgoyette-compat-0906:1.1
	pgoyette-compat-0728:1.1
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.1.0.16
	phil-wifi-base:1.1
	pgoyette-compat-0625:1.1
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat-0422:1.1
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.1
	pgoyette-compat-0407:1.1
	pgoyette-compat-0330:1.1
	pgoyette-compat-0322:1.1
	pgoyette-compat-0315:1.1
	pgoyette-compat:1.1.0.14
	pgoyette-compat-base:1.1
	matt-nb8-mediatek:1.1.0.12
	matt-nb8-mediatek-base:1.1
	perseant-stdc-iso10646:1.1.0.10
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.8
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.6
	prg-localcount2-base:1.1
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan-base1:1.1
	pgoyette-localcount-20170320:1.1
	bouyer-socketcan:1.1.0.4
	bouyer-socketcan-base:1.1
	pgoyette-localcount-20170107:1.1
	pgoyette-localcount:1.1.0.2
	pgoyette-localcount-20161104:1.1;
locks; strict;
comment	@# @;


1.3
date	2019.04.16.21.20.52;	author mrg;	state Exp;
branches;
next	1.2;
commitid	FPq8xjcETpiJqCjB;

1.2
date	2018.12.31.11.14.04;	author mrg;	state Exp;
branches;
next	1.1;
commitid	TUVjjF1MdjrmtW5B;

1.1
date	2016.09.26.22.37.32;	author mrg;	state Exp;
branches
	1.1.2.1
	1.1.14.1
	1.1.16.1;
next	;
commitid	t78AtsX66yGCOQnz;

1.1.2.1
date	2016.09.26.22.37.32;	author pgoyette;	state dead;
branches;
next	1.1.2.2;
commitid	2m1JRwYmpwPkOOsz;

1.1.2.2
date	2016.11.04.14.48.49;	author pgoyette;	state Exp;
branches;
next	;
commitid	2m1JRwYmpwPkOOsz;

1.1.14.1
date	2019.01.18.08.49.07;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.1.16.1
date	2019.06.10.22.02.47;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;


desc
@@


1.3
log
@enable EGL and glamor.  partly from maya@@.

for x86 and evbarm:
- install headers and libEGL
- install xorg-server glamoregl component
- link xorg drivers against gbm/egl

bonus fix:
- fix some wrongly marked compatx11file files


build tested on shark, sgimips, evbarm64-el, amd64 and i386.
run tested on radeon, intel and nvidia on amd64, including
'modesetting' driver on amd64.  however, my systems disable
it due to llvmpipe so i'm not sure what is happening.
@
text
@#	$NetBSD: Makefile,v 1.2 2018/12/31 11:14:04 mrg Exp $

.include <bsd.own.mk>

DRIVER=		xf86-video-modesetting
DRIVER_NAME=	modesetting_drv

SRCS=		dri2.c \
		driver.c \
		drmmode_display.c \
		dumb_bo.c \
		pageflip.c \
		present.c \
		vblank.c 
MAN=		modesetting.4

CPPFLAGS+=	${X11FLAGS.DIX} \
		-I${DESTDIR}${X11INCDIR}/libdrm \
		-I${X11SRCDIR.xorg-server}/glamor \
		-I${X11SRCDIR.xorg-server}/ddc \
		-I${X11SRCDIR.xorg-server}/dri2 \
		-I${X11SRCDIR.xorg-server}/i2c \
		-I${X11SRCDIR.xorg-server}/modes \
		-I${X11SRCDIR.xorg-server}/parser \
		-I${X11SRCDIR.xorg-server}/ramdac \

.if ${HAVE_XORG_GLAMOR} != "no"
CPPFLAGS+=	-DGLAMOR_HAS_GBM \
		-DGLAMOR_HAS_GBM_LINEAR
.endif

# Set some overrides so Makefile.xf86-driver works for this
# built-in driver.

DRIVER_VERSION=		0
DRIVER_NO_FAKE_INCLUDE=	# defined

.include "../../../../../drivers/Makefile.xf86-driver"
@


1.2
log
@build updates for xorg-server 1.20.3:
- moved/removed/new files
- don't define HAVE_XORG_CONFIG_H or HAVE_DIX_CONFIG_H if using
  ${X11FLAGS.DIX} -- already included.

put glxvnd into glx itself for now.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.1 2016/09/26 22:37:32 mrg Exp $
d27 5
@


1.1
log
@build the modesetting driver on x86.
build the modesetting driver for xorg-server 1.18.4.  it has moved
into the xorg-server tree itself, and changed significantly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2015/11/06 01:17:08 jmcneill Exp $
d10 1
a11 1
		sh3224.c \
@


1.1.16.1
log
@Sync with HEAD
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.3 2019/04/16 21:20:52 mrg Exp $

.include <bsd.own.mk>
a9 1
		pageflip.c \
d11 1
a24 5
.if ${HAVE_XORG_GLAMOR} != "no"
CPPFLAGS+=	-DGLAMOR_HAS_GBM \
		-DGLAMOR_HAS_GBM_LINEAR
.endif

@


1.1.14.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2016/09/26 22:37:32 mrg Exp $
a9 1
		pageflip.c \
d11 1
@


1.1.2.1
log
@file Makefile was added on branch pgoyette-localcount on 2016-11-04 14:48:49 +0000
@
text
@d1 31
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 31
#	$NetBSD: Makefile,v 1.1 2016/09/26 22:37:32 mrg Exp $

DRIVER=		xf86-video-modesetting
DRIVER_NAME=	modesetting_drv

SRCS=		dri2.c \
		driver.c \
		drmmode_display.c \
		dumb_bo.c \
		present.c \
		sh3224.c \
		vblank.c 
MAN=		modesetting.4

CPPFLAGS+=	${X11FLAGS.DIX} \
		-I${DESTDIR}${X11INCDIR}/libdrm \
		-I${X11SRCDIR.xorg-server}/glamor \
		-I${X11SRCDIR.xorg-server}/ddc \
		-I${X11SRCDIR.xorg-server}/dri2 \
		-I${X11SRCDIR.xorg-server}/i2c \
		-I${X11SRCDIR.xorg-server}/modes \
		-I${X11SRCDIR.xorg-server}/parser \
		-I${X11SRCDIR.xorg-server}/ramdac \

# Set some overrides so Makefile.xf86-driver works for this
# built-in driver.

DRIVER_VERSION=		0
DRIVER_NO_FAKE_INCLUDE=	# defined

.include "../../../../../drivers/Makefile.xf86-driver"
@


