Changeset View
Changeset View
Standalone View
Standalone View
graphics/mesa-dri/Makefile.common
# Makefile.common - shared code between MesaLib ports. | # Makefile.common - shared code between MesaLib ports. | ||||
# | # | ||||
# !!! Here be dragons !!! (they seem to be everywhere these days) | # !!! Here be dragons !!! (they seem to be everywhere these days) | ||||
# | # | ||||
# Remember to upgrade the following ports everytime you bump MESAVERSION: | # Remember to upgrade the following ports everytime you bump MESAVERSION: | ||||
# | # | ||||
# - graphics/libosmesa | # - graphics/libosmesa | ||||
# - graphics/mesa-dri | # - graphics/mesa-dri | ||||
# - graphics/mesa-libs | # - graphics/mesa-libs | ||||
# - 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= 19.0.8 | MESABASEVERSION= 20.2.0 | ||||
# 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= | ||||
zeising: Whitespace? | |||||
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}/ | ||||
DISTFILES= mesa-${MESADISTVERSION}${EXTRACT_SUFX} | DISTFILES= mesa-${MESADISTVERSION}${EXTRACT_SUFX} | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
.if ${PORTNAME} != mesa-dri | .if ${PORTNAME} != mesa-dri | ||||
PORTSCOUT= ignore:1 | PORTSCOUT= ignore:1 | ||||
.endif | .endif | ||||
python_OLD_CMD= /usr/bin/env[[:space:]]python2 /usr/bin/python2 /bin/env[[:space:]]python | python_OLD_CMD= /usr/bin/env[[:space:]]python2 /usr/bin/python2 /bin/env[[:space:]]python | ||||
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/mapi_abi.py \ | src/mapi/glapi/gen/*.py src/mapi/mapi_abi.py \ | ||||
src/util/xmlpool/gen_xmlpool.py \ | |||||
src/mesa/main/get_*.py src/util/format_srgb.py \ | src/mesa/main/get_*.py src/util/format_srgb.py \ | ||||
src/amd/*/*.py src/intel/genxml/gen_pack_header.py | src/amd/*/*.py src/intel/genxml/gen_pack_header.py | ||||
MASTERDIR= ${.CURDIR:H:H}/graphics/mesa-dri | MASTERDIR= ${.CURDIR:H:H}/graphics/mesa-dri | ||||
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 | ||||
PKGHELP= ${.CURDIR}/pkg-help | PKGHELP= ${.CURDIR}/pkg-help | ||||
PKGINSTALL= ${.CURDIR}/pkg-install | PKGINSTALL= ${.CURDIR}/pkg-install | ||||
PKGDEINSTALL= ${.CURDIR}/pkg-deinstall | PKGDEINSTALL= ${.CURDIR}/pkg-deinstall | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
Done Inline ActionsThis is not needed after the conversion to meson. It's just a left over from the conversion, probably worth it removing it at the same time. zeising: This is not needed after the conversion to meson. It's just a left over from the conversion… | |||||
.if ${OSVERSION} <= 1200000 | |||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-src_util_build__id.c | |||||
.endif | |||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${ARCH} == powerpc64 | .if ${ARCH} == powerpc64 | ||||
LLVM_DEFAULT= 90 | LLVM_DEFAULT= 90 | ||||
zeisingUnsubmitted Not Done Inline ActionsPerhaps we should ask the ppc64 people if it's ok to jump on the normal version. Not a showstopper. zeising: Perhaps we should ask the ppc64 people if it's ok to jump on the normal version. Not a… | |||||
.elif ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} >= 90 | .elif ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} >= 90 | ||||
LLVM_DEFAULT= 80 | LLVM_DEFAULT= 10 | ||||
.endif | .endif | ||||
zeisingUnsubmitted Done Inline ActionsThis logic might need to change? If I understand correctly, it the .elif checks if LLVM_DEFAULT is >= 90, and only then forcing LLVM_DEFAULT to 10. I think we should just hard code the supported version of LLVM (the version we want to support), without any regards for LLVM_DEFAULT. Otherwise, we probably want to make sure that people who set LLVM_DEFAULT to something lower than 10 get 10, because IIRC, older versions didn't work. zeising: This logic might need to change? If I understand correctly, it the .elif checks if… | |||||
BINARY_ALIAS+= python3=${PYTHON_VERSION} | BINARY_ALIAS+= python3=${PYTHON_VERSION} | ||||
BUILD_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT} | BUILD_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT} | ||||
.if ${COMPONENT} != libs | .if ${COMPONENT} != libs | ||||
RUN_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT} | RUN_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT} | ||||
.endif | .endif | ||||
Done Inline ActionsThis will break popwerpc64 which still uses llvm90. zeising: This will break popwerpc64 which still uses llvm90. | |||||
MESON_ARGS+= --native-file="${WRKSRC}/llvm.ini" | MESON_ARGS+= --native-file="${WRKSRC}/llvm.ini" | ||||
LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib | LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib | ||||
MESON_ARGS+= -Dllvm=true | MESON_ARGS+= -Dllvm=enabled | ||||
Whitespace?