Bump mesa to 12.0.5
[unleashed-userland.git] / components / x11 / mesa / Makefile
blobdae52371689fba12420db10f34e7aa2fa3dc45ae
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
5 # 1.0 of the CDDL.
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 Alexander Pyhalov
14 # Copyright 2015 Ken Mays
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= mesa
20 COMPONENT_VERSION= 12.0.5
21 COMPONENT_SUMMARY= The Mesa 3-D Graphics Library
22 COMPONENT_SRC= mesa-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= mesa-$(COMPONENT_VERSION).tar.xz
24 COMPONENT_ARCHIVE_HASH= \
25 sha256:2b0a972d8282860a11291c09c3ef01ac45171405951eb21a83c45ed2b4321924
26 COMPONENT_ARCHIVE_URL= \
27 ftp://ftp.freedesktop.org/pub/mesa/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
28 COMPONENT_PROJECT_URL = http://www.mesa3d.org/
30 include $(WS_TOP)/make-rules/prep.mk
31 include $(WS_TOP)/make-rules/configure.mk
32 include $(WS_TOP)/make-rules/ips.mk
34 PATCH_LEVEL=0
36 ARCHLIBSUBDIR.64=/$(MACH64)
37 ARCHLIBSUBDIR=$(ARCHLIBSUBDIR.$(BITS))
39 SERVERMOD_SUBDIR.64=/$(MACH64)
40 SERVERMOD_SUBDIR=$(SERVERMOD_SUBDIR.$(BITS))
41 X11_SERVERMODS_DIR=/usr/lib/xorg/modules
42 X11_SERVERLIBS_DIR=/usr/lib/xorg
44 COMPONENT_POST_UNPACK_ACTION += ( cp -r $(COMPONENT_DIR)/srcs/* $(SOURCE_DIR) )
45 COMPONENT_PREP_ACTION += (cd $(SOURCE_DIR) && \
46 libtoolize --copy --force &&\
47 aclocal -I m4 &&\
48 automake -c -f -a &&\
49 autoconf)
51 CONFIGURE_SCRIPT = $(@D)/configure
54 # Missing files in build dir for configure without this.
55 COMPONENT_PRE_CONFIGURE_ACTION = (cp -a $(SOURCE_DIR)/* $(@D) )
57 # Add include paths and linker paths needed for DRM modules
58 CPPFLAGS = -I/usr/X11/include/drm -D__EXTENSIONS__
60 LDFLAGS= -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
61 -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
63 LD_OPTIONS += -M $(COMPONENT_DIR)/mapfile.externs
65 DRI_DRIVER_LIST=i915 i965 r200 radeon swrast
67 # Command line options to GNU autoconf configure script
68 CONFIGURE_OPTIONS += --enable-dri3
69 CONFIGURE_OPTIONS += --with-dri-driverdir='$(X11_SERVERMODS_DIR)/dri$(SERVERMOD_SUBDIR)'
70 CONFIGURE_OPTIONS += --with-dri-drivers='$(DRI_DRIVER_LIST)'
71 CONFIGURE_OPTIONS += --disable-gallium-llvm
72 CONFIGURE_OPTIONS += --enable-egl
73 CONFIGURE_OPTIONS += --enable-gbm
74 CONFIGURE_OPTIONS += --with-gallium-drivers=
75 CONFIGURE_OPTIONS += --enable-shared-glapi
76 CONFIGURE_OPTIONS += --enable-texture-float
77 CONFIGURE_OPTIONS += --enable-osmesa
78 CONFIGURE_OPTIONS += --with-sha1=libcrypto
79 CONFIGURE_OPTIONS += --disable-glx-tls
80 CONFIGURE_OPTIONS += --enable-shader-cache
81 CONFIGURE_OPTIONS += --sysconfdir=/etc
83 CONFIGURE_ENV+=PYTHON=$(PYTHON)
84 CONFIGURE_ENV+=CPPFLAGS="$(CPPFLAGS)"
86 COMPONENT_BUILD_ARGS =
88 build: $(BUILD_32_and_64)
90 install: $(INSTALL_32_and_64)
92 REQUIRED_PACKAGES += library/expat
93 REQUIRED_PACKAGES += system/library
94 REQUIRED_PACKAGES += system/library/g++-4-runtime
95 REQUIRED_PACKAGES += system/library/gcc-4-runtime
96 REQUIRED_PACKAGES += system/library/math
97 REQUIRED_PACKAGES += x11/library/glu
98 REQUIRED_PACKAGES += x11/library/glw
99 REQUIRED_PACKAGES += x11/library/libdrm
100 REQUIRED_PACKAGES += x11/library/libx11
101 REQUIRED_PACKAGES += x11/library/libxcb
102 REQUIRED_PACKAGES += x11/library/libxdamage
103 REQUIRED_PACKAGES += x11/library/libxext
104 REQUIRED_PACKAGES += x11/library/libxfixes
105 REQUIRED_PACKAGES += x11/library/libxxf86vm