2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2015 Ken Mays
17 include ..
/..
/..
/make-rules
/shared-macros.mk
18 include $(WS_MAKE_RULES
)/x11.mk
20 COMPONENT_NAME
= xf86-video-mga
21 COMPONENT_VERSION
= 1.6.5
23 COMPONENT_FMRI
= x11
/server
/xorg
/driver
/xorg-video-mga
24 COMPONENT_SUMMARY
= xf86-video-mga
- Matrox MGA driver for the Xorg X server
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:b663cd8e6364f7c4e2637b9fcab9861d0e3971518c73b00d213f6545a1289422
28 include $(WS_MAKE_RULES
)/common.mk
30 # Extra flags to link mga_drv.so, but not util/stormdwg binary with
31 DRIVER_LD_FLAGS
= -L
$(X11_SERVERMODS_DIR
) -R
$(X11_SERVERMODS_DIR
)
33 # - Disable DRI since the kernel module isn't ported
34 CONFIGURE_OPTIONS
+= --disable-dri
36 CONFIGURE_OPTIONS
+= XORG_LIBS
="$(DRIVER_LD_FLAGS)"
38 CONFIGURE_ENV
+= with_xorg_module_dir
=/usr
/lib
/xorg
/modules
/drivers
/$(MACH64
)
41 REQUIRED_PACKAGES
+= x11
/header
/x11-protocols
42 REQUIRED_PACKAGES
+= system
/header
/header-drm
44 # Auto-generated dependencies
45 REQUIRED_PACKAGES
+= diagnostic
/scanpci
46 REQUIRED_PACKAGES
+= library
/graphics
/pixman
47 REQUIRED_PACKAGES
+= system
/library
48 REQUIRED_PACKAGES
+= x11
/server
/xorg