2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2015 Ken Mays. All Rights Reserved.
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= libdrm
18 COMPONENT_VERSION
= 2.4.71
19 COMPONENT_PROJECT_URL
= http
://dri.freedesktop.org
20 COMPONENT_SUMMARY
= Userspace interface to kernel Direct Rendering Module services
21 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
23 COMPONENT_ARCHIVE_HASH
= \
24 sha256
:c66287ddeee5f46ea8f8880b94b80acb3bbc33ba6321d17767eef145046df9b8
25 COMPONENT_ARCHIVE_URL
= http
://dri.freedesktop.org
/libdrm
/$(COMPONENT_ARCHIVE
)
26 COMPONENT_FMRI
= x11
/library
/libdrm
27 COMPONENT_CLASSIFICATION
= System
/X11
28 COMPONENT_LICENSE
= MIT
29 COMPONENT_LICENSE_FILE
= libdrm.license
31 include $(WS_TOP
)/make-rules
/prep.mk
32 include $(WS_TOP
)/make-rules
/configure.mk
33 include $(WS_TOP
)/make-rules
/ips.mk
35 PATH
=/usr
/gnu
/bin
:/usr
/bin
37 CPPFLAGS
+= "-I/usr/include/pixman-1"
39 CONFIGURE_LIBDIR
.32 = /usr
/lib
/xorg
40 CONFIGURE_LIBDIR
.64 = /usr
/lib
/xorg
/$(MACH64
)
42 CONFIGURE_OPTIONS
+= --disable-static
43 CONFIGURE_OPTIONS
+= --disable-valgrind
44 CONFIGURE_OPTIONS
+= --enable-cairo-tests
45 CONFIGURE_OPTIONS
+= --enable-libkms
46 CONFIGURE_OPTIONS
+= --enable-intel
47 CONFIGURE_OPTIONS
+= --enable-radeon
48 CONFIGURE_OPTIONS
+= --enable-amdgpu
49 CONFIGURE_OPTIONS
+= --disable-nouveau
50 CONFIGURE_OPTIONS
+= --enable-omap-experimental-api
51 CONFIGURE_OPTIONS
+= --enable-exynos-experimental-api
52 CONFIGURE_OPTIONS
+= --enable-freedreno
53 CONFIGURE_OPTIONS
+= --enable-freedreno-kgsl
54 CONFIGURE_OPTIONS
+= --enable-tegra-experimental-api
55 CONFIGURE_OPTIONS
+= --enable-etnaviv-experimental-api
56 CONFIGURE_OPTIONS
+= --enable-vc4
58 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
59 CONFIGURE_ENV
+= MISC_MAN_SUFFIX
=7
62 build
: $(BUILD_32_and_64
)
64 install: $(INSTALL_32_and_64
)
66 test: $(TEST_32_and_64
)
68 REQUIRED_PACKAGES
+= diagnostic
/scanpci
69 REQUIRED_PACKAGES
+= system
/library