# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		xf86-video-intel
PKG_VERSION:=		2.99.917
PKG_RELEASE:=		1
PKG_HASH:=		1888f2733f8dccf4ab24bc56ba62eeac41c231b98365027438702d6c55216576
PKG_DESCR:=		x11 driver for intel vga chips
PKG_SECTION:=		x11/drivers
PKG_DEPENDS:=		xorg-server libdrm mesalib libstdcxx libudev
PKG_BUILDDEP:=		xorg-server libdrm xf86driproto mesalib eudev
PKG_SITES:=		$(MASTER_SITE_XORG)

PKG_SYSTEM_DEPENDS:=	ibm-x40
DISTFILES:=		$(PKG_NAME)-$(PKG_VERSION).tar.gz

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,XF86_VIDEO_INTEL,xf86-video-intel,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

xf86-video-intel-install:
	$(INSTALL_DIR) $(IDIR_XF86_VIDEO_INTEL)/usr/lib/xorg/modules/drivers
	$(CP) $(WRKINST)/usr/lib/xorg/modules/drivers/*.so \
		$(IDIR_XF86_VIDEO_INTEL)/usr/lib/xorg/modules/drivers/

include $(ADK_TOPDIR)/mk/pkg-bottom.mk
