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 | ||||
MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/} | MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/} | ||||
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/} | MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/} | ||||
MESABASEVERSION= 22.2.3 | MESABASEVERSION= 22.3.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= | ||||
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 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
PKGHELP= ${.CURDIR}/pkg-help | PKGHELP= ${.CURDIR}/pkg-help | ||||
PKGINSTALL= ${.CURDIR}/pkg-install | PKGINSTALL= ${.CURDIR}/pkg-install | ||||
PKGDEINSTALL= ${.CURDIR}/pkg-deinstall | PKGDEINSTALL= ${.CURDIR}/pkg-deinstall | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
BINARY_ALIAS+= python3=${PYTHON_VERSION} | BINARY_ALIAS+= python3=${PYTHON_VERSION} | ||||
LLVM_DEFAULT= 13 | LLVM_DEFAULT= 15 | ||||
BUILD_DEPENDS+= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} | BUILD_DEPENDS+= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} | ||||
.if ${COMPONENT} != libs | |||||
RUN_DEPENDS+= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} | RUN_DEPENDS+= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} | ||||
.endif | |||||
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=enabled | MESON_ARGS+= -Dllvm=enabled |