Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/libGL/Makefile.common
Show All 12 Lines | |||||
# - graphics/libosmesa | # - graphics/libosmesa | ||||
# - lang/clover | # - lang/clover | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/} | MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/} | ||||
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/} | MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/} | ||||
MESABASEVERSION= 13.0.4 | MESABASEVERSION= 13.0.5 | ||||
# if there is a subversion, don't include the '-' between 7.11-rc2. | # if there is a subversion, don't include the '-' between 7.11-rc2. | ||||
MESASUBVERSION= | MESASUBVERSION= | ||||
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/ | MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/ | ||||
DISTFILES= mesa-${MESADISTVERSION}${EXTRACT_SUFX} | DISTFILES= mesa-${MESADISTVERSION}${EXTRACT_SUFX} | ||||
MAINTAINER= x11@FreeBSD.org | MAINTAINER= x11@FreeBSD.org | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
# https://lists.freebsd.org/pipermail/freebsd-arch/2016-February/017699.html | # https://lists.freebsd.org/pipermail/freebsd-arch/2016-February/017699.html | ||||
#CONFIGURE_ARGS+= --enable-glx-tls | #CONFIGURE_ARGS+= --enable-glx-tls | ||||
# libEGL, dri and clover need gallium enabled. | # libEGL, dri and clover need gallium enabled. | ||||
# the third option in --with-egl-platforms is wayland. | # the third option in --with-egl-platforms is wayland. | ||||
CONFIGURE_ARGS+= --enable-egl --with-egl-platforms=x11,drm | CONFIGURE_ARGS+= --enable-egl --with-egl-platforms=x11,drm | ||||
# we don't care about GLes v1 | # we don't care about GLes v1 | ||||
CONFIGURE_ARGS+= --disable-gles1 | CONFIGURE_ARGS+= --disable-gles1 --enable-gles2 | ||||
CONFIGURE_ARGS+= --enable-gles2 | |||||
# Clover (OpenCL). | # Clover (OpenCL). | ||||
.if ${OPSYS} == DragonFly || \ | .if ${OPSYS} == DragonFly || \ | ||||
(${OPSYS} == FreeBSD && \ | (${OPSYS} == FreeBSD && \ | ||||
(${ARCH} == amd64 || ${ARCH} == i386)) | (${ARCH} == amd64 || ${ARCH} == i386)) | ||||
BUILD_DEPENDS+= libclc>=0.2.0.20160915:devel/libclc | BUILD_DEPENDS+= libclc>=0.2.0.20160915:devel/libclc | ||||
# We need the clang port too even if it is not used to compile because | # We need the clang port too even if it is not used to compile because | ||||
# Clover needs some of the clang includes to build. | # Clover needs some of the clang includes to build. | ||||
.if ${COMPONENT:Mdri} != "" || ${COMPONENT:Mclover} != "" || ${COMPONENT:Mosmesa} != "" | .if ${COMPONENT:Mdri} != "" || ${COMPONENT:Mclover} != "" || ${COMPONENT:Mosmesa} != "" | ||||
_USES_pre_configure+= 290:clover-pre-configure | _USES_pre_configure+= 290:clover-pre-configure | ||||
# .if !exists() evaluates too early before cairo has a chance to be installed | # .if !exists() evaluates too early before cairo has a chance to be installed | ||||
clover-pre-configure: | clover-pre-configure: | ||||
@if [ -e ${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER} ] && \ | @if [ -e ${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER} ] && \ | ||||
! [ -e ${LOCALBASE}/bin/clang${MESA_LLVM_VER} ]; then \ | ! [ -e ${LOCALBASE}/bin/clang${MESA_LLVM_VER} ]; then \ | ||||
${ECHO_MSG} "Your llvm${MESA_LLVM_VER} is not build with clang support, which is required."; \ | ${ECHO_MSG} "Your llvm${MESA_LLVM_VER} is not build with clang support, which is required."; \ | ||||
${FALSE}; \ | ${FALSE}; \ | ||||
fi | fi | ||||
.endif | .endif | ||||
CONFIGURE_ARGS+= --enable-opencl \ | CONFIGURE_ARGS+= --enable-opencl --enable-opencl-icd | ||||
--enable-opencl-icd | |||||
.else | .else | ||||
CONFIGURE_ARGS+= --disable-opencl | CONFIGURE_ARGS+= --disable-opencl | ||||
.endif | .endif | ||||
CONFIGURE_ARGS+= --enable-osmesa | CONFIGURE_ARGS+= --enable-osmesa | ||||
# gallium | # gallium | ||||
BUILD_DEPENDS+= llvm${MESA_LLVM_VER}>=3.9.0_4:devel/llvm${MESA_LLVM_VER} | BUILD_DEPENDS+= llvm${MESA_LLVM_VER}>=3.9.0_4:devel/llvm${MESA_LLVM_VER} | ||||
Show All 18 Lines | |||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-vdpau | CONFIGURE_ARGS+=--disable-vdpau | ||||
PLIST_SUB+= VDPAU="@comment " | PLIST_SUB+= VDPAU="@comment " | ||||
.endif | .endif | ||||
# VAAPI support? | # VAAPI support? | ||||
CONFIGURE_ARGS+=--disable-va | CONFIGURE_ARGS+=--disable-va | ||||
ALL_DRI_DRIVERS=I915 I965 R200 RADEON SWRAST | ALL_DRI_DRIVERS= I915 I965 RADEON R200 SWRAST | ||||
ALL_GALLIUM_DRIVERS=R300 R600 RADEONSI SVGA SWRAST | ALL_GALLIUM_DRIVERS= R300 R600 RADEONSI SVGA SWRAST | ||||
.if ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == ia64 | .if ${ARCH} == amd64 || ${ARCH} == i386 | ||||
DRI_DRIVERS= ${ALL_DRI_DRIVERS} | DRI_DRIVERS= I915 I965 RADEON R200 | ||||
GALLIUM_DRIVERS= ${ALL_GALLIUM_DRIVERS} | GALLIUM_DRIVERS= R300 R600 RADEONSI SVGA | ||||
.endif | .endif | ||||
.if ${ARCH} == powerpc || ${ARCH} == powerpc64 | .if ${ARCH} == powerpc || ${ARCH} == powerpc64 | ||||
DRI_DRIVERS= RADEON R200 SWRAST | DRI_DRIVERS= RADEON R200 | ||||
GALLIUM_DRIVERS= R300 R600 RADEONSI SWRAST | GALLIUM_DRIVERS= R300 R600 RADEONSI | ||||
.endif | .endif | ||||
.if ${ARCH} == sparc64 || ${ARCH} == armv6 | # software rendering for all arches | ||||
DRI_DRIVERS= SWRAST | DRI_DRIVERS+= SWRAST | ||||
GALLIUM_DRIVERS= SWRAST | GALLIUM_DRIVERS+= SWRAST | ||||
.endif | |||||
# empty for unsupported arches | |||||
DRI_DRIVERS+= | |||||
GALLIUM_DRIVERS+= | |||||
.for _d in ${ALL_DRI_DRIVERS} | .for _d in ${ALL_DRI_DRIVERS} | ||||
. if ${DRI_DRIVERS:M${_d}} | . if ${DRI_DRIVERS:M${_d}} | ||||
PLIST_SUB+= ${_d}_DRIVER="" | PLIST_SUB+= ${_d}_DRIVER="" | ||||
. else | . else | ||||
PLIST_SUB+= ${_d}_DRIVER="@comment " | PLIST_SUB+= ${_d}_DRIVER="@comment " | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
Show All 17 Lines |