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.6 | MESABASEVERSION= 17.0.3 | ||||
# 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= https://mesa.freedesktop.org/archive/ \ | MASTER_SITES= https://mesa.freedesktop.org/archive/ \ | ||||
https://mesa.freedesktop.org/archive/${MESABASEVERSION}/ \ | https://mesa.freedesktop.org/archive/${MESABASEVERSION}/ \ | ||||
ftp://ftp.freedesktop.org/pub/mesa/ \ | ftp://ftp.freedesktop.org/pub/mesa/ \ | ||||
ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/ | ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/ | ||||
Show All 18 Lines | |||||
python_OLD_CMD= "/usr/bin/env[[:space:]]python" | python_OLD_CMD= "/usr/bin/env[[:space:]]python" | ||||
python_CMD= ${LOCALBASE}/bin/python2 | python_CMD= ${LOCALBASE}/bin/python2 | ||||
SHEBANG_FILES= src/gallium/*/*/*.py src/gallium/tools/trace/*.py \ | SHEBANG_FILES= src/gallium/*/*/*.py src/gallium/tools/trace/*.py \ | ||||
src/gallium/drivers/svga/svgadump/svga_dump.py \ | src/gallium/drivers/svga/svgadump/svga_dump.py \ | ||||
src/mapi/glapi/gen/*.py | src/mapi/glapi/gen/*.py | ||||
SHEBANG_FILES+= src/mapi/mapi_abi.py | SHEBANG_FILES+= src/mapi/mapi_abi.py | ||||
MASTERDIR= ${.CURDIR}/../../graphics/libGL | MASTERDIR= ${.CURDIR}/../../graphics/libGL | ||||
PATCHDIR= ${MASTERDIR}/files | PATCHDIR= ${MASTERDIR}/files | ||||
WRKSRC= ${WRKDIR}/mesa-${MESADISTVERSION} | WRKSRC= ${WRKDIR}/mesa-${MESADISTVERSION} | ||||
DESCR= ${.CURDIR}/pkg-descr | DESCR= ${.CURDIR}/pkg-descr | ||||
PLIST= ${.CURDIR}/pkg-plist | PLIST= ${.CURDIR}/pkg-plist | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
COMPONENT= ${PORTNAME:tl:C/^lib//:C/mesa-//} | COMPONENT= ${PORTNAME:tl:C/^lib//:C/mesa-//} | ||||
.if (${ARCH} != sparc64 && ${ARCH} != ia64) # no working LLVM | .if (${ARCH} != sparc64 && ${ARCH} != ia64) # no working LLVM | ||||
MESA_LLVM_VER?= 39 | MESA_LLVM_VER?= 40 | ||||
LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${MESA_LLVM_VER}/lib | LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${MESA_LLVM_VER}/lib | ||||
.endif | .endif | ||||
CONFIGURE_ARGS+= --with-sha1=libcrypto | |||||
CONFIGURE_ARGS+= --enable-gbm | |||||
# There are issues that need to be fixed to use TLS model "initial-exec" | # There are issues that need to be fixed to use TLS model "initial-exec" | ||||
# So stick with "global-dynamic"'s model for now. kan@ is working on a | # So stick with "global-dynamic"'s model for now. kan@ is working on a | ||||
# patch for rtld. We might want to backport global-dynamic or | # patch for rtld. We might want to backport global-dynamic or | ||||
# pthread_setspecific which it uses now by default. But since this | # pthread_setspecific which it uses now by default. But since this | ||||
# configure switch is going away ... | # configure switch is going away ... | ||||
# https://lists.freebsd.org/pipermail/freebsd-arch/2016-February/017699.html | # https://lists.freebsd.org/pipermail/freebsd-arch/2016-February/017699.html | ||||
CONFIGURE_ARGS+= --disable-glx-tls | CONFIGURE_ARGS+= --disable-glx-tls | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER} | CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER} | ||||
CONFIGURE_ARGS+= --enable-gallium-llvm --enable-llvm-shared-libs | CONFIGURE_ARGS+= --enable-gallium-llvm --enable-llvm-shared-libs | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --disable-gallium-llvm | CONFIGURE_ARGS+= --disable-gallium-llvm | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MTEXTURE} | |||||
CONFIGURE_ARGS+=--enable-texture-float | |||||
.endif | |||||
# only support on DragonFly. FreeBSD's drm doesn't support it. | |||||
.if ${OPSYS} == DragonFly && ${COMPONENT:Mdri} != "" | |||||
CONFIGURE_ARGS+=--enable-vdpau | |||||
LIB_DEPENDS+= libvdpau.so:multimedia/libvdpau | |||||
PLIST_SUB+= VDPAU="" | |||||
.else | |||||
CONFIGURE_ARGS+=--disable-vdpau | |||||
PLIST_SUB+= VDPAU="@comment " | |||||
.endif | |||||
# VAAPI support? | |||||
CONFIGURE_ARGS+=--disable-va | |||||
ALL_DRI_DRIVERS= I915 I965 RADEON R200 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 | .if ${ARCH} == amd64 || ${ARCH} == i386 | ||||
DRI_DRIVERS= I915 I965 RADEON R200 | DRI_DRIVERS= I915 I965 RADEON R200 | ||||
GALLIUM_DRIVERS= R300 R600 RADEONSI SVGA | GALLIUM_DRIVERS= R300 R600 RADEONSI SVGA | ||||
.endif | .endif | ||||
Show All 36 Lines |