comparison graphics/mesa/mesa.sh @ 902:a133976e0783

vanilla: remove all origins, closes #2203
author David Demelier <markand@malikania.fr>
date Mon, 26 Aug 2019 12:14:53 +0200
parents 6d6b3410c722
children ddab65a5b3f5
comparison
equal deleted inserted replaced
901:e2de15b7d2b1 902:a133976e0783
19 PKGVERSION=18.3.5 19 PKGVERSION=18.3.5
20 PKGREVISION=1 20 PKGREVISION=1
21 PKGLICENSE="CUSTOM" 21 PKGLICENSE="CUSTOM"
22 PKGSUMMARY="opensource OpenGL implementation" 22 PKGSUMMARY="opensource OpenGL implementation"
23 PKGDOWNLOAD="https://mesa.freedesktop.org/archive/$PKGNAME-$PKGVERSION.tar.xz" 23 PKGDOWNLOAD="https://mesa.freedesktop.org/archive/$PKGNAME-$PKGVERSION.tar.xz"
24 PKGDEPENDS="dev/meson:build" 24 PKGDEPENDS="meson:build"
25 PKGOPTIONS="DRI DRM EGL GALLIUM GLVND LLVM PLATFORMS SELINUX VULKAN WAYLAND X" 25 PKGOPTIONS="DRI DRM EGL GALLIUM GLVND LLVM PLATFORMS SELINUX VULKAN WAYLAND X"
26 26
27 : ${CC:=clang} 27 : ${CC:=clang}
28 : ${CFLAGS:=-O2} 28 : ${CFLAGS:=-O2}
29 : ${CXX:=clang++} 29 : ${CXX:=clang++}
45 with_dri_drivers="" 45 with_dri_drivers=""
46 with_gallium_drivers="" 46 with_gallium_drivers=""
47 with_vulkan_drivers="" 47 with_vulkan_drivers=""
48 48
49 if [ "$DRM" = "yes" ]; then 49 if [ "$DRM" = "yes" ]; then
50 PKGDEPENDS="graphics/libdrm $PKGDEPENDS" 50 PKGDEPENDS="libdrm $PKGDEPENDS"
51 with_platforms="drm" 51 with_platforms="drm"
52 fi 52 fi
53 53
54 if [ "$DRI" != "no" ]; then 54 if [ "$DRI" != "no" ]; then
55 with_dri_drivers=$(echo $DRI | sed -e "s/ /,/g") 55 with_dri_drivers=$(echo $DRI | sed -e "s/ /,/g")
70 else 70 else
71 with_glvnd="-D glvnd=false" 71 with_glvnd="-D glvnd=false"
72 fi 72 fi
73 73
74 if [ "$LLVM" = "yes" ]; then 74 if [ "$LLVM" = "yes" ]; then
75 PKGDEPENDS="dev/llvm $PKGDEPENDS" 75 PKGDEPENDS="llvm $PKGDEPENDS"
76 with_llvm="-D llvm=true" 76 with_llvm="-D llvm=true"
77 else 77 else
78 with_llvm="-D llvm=false" 78 with_llvm="-D llvm=false"
79 fi 79 fi
80 80
81 if [ "$VULKAN" != "no" ]; then 81 if [ "$VULKAN" != "no" ]; then
82 with_vulkan_drivers=$(echo $VULKAN | sed -e "s/ /,/g") 82 with_vulkan_drivers=$(echo $VULKAN | sed -e "s/ /,/g")
83 fi 83 fi
84 84
85 if [ "$WAYLAND" = "yes" ]; then 85 if [ "$WAYLAND" = "yes" ]; then
86 PKGDEPENDS="graphics/wayland graphics/wayland-protocols $PKGDEPENDS" 86 PKGDEPENDS="wayland wayland-protocols $PKGDEPENDS"
87 with_platforms="wayland,$with_platforms" 87 with_platforms="wayland,$with_platforms"
88 fi 88 fi
89 89
90 if [ "$X" = "yes" ]; then 90 if [ "$X" = "yes" ]; then
91 PKGDEPENDS="x11/libx11 91 PKGDEPENDS="libx11
92 x11/libxdamage 92 libxdamage
93 x11/libxext 93 libxext
94 x11/libxrandr 94 libxrandr
95 x11/libxshmfence 95 libxshmfence
96 x11/libxxf86vm 96 libxxf86vm
97 $PKGDEPENDS" 97 $PKGDEPENDS"
98 with_platforms="x11,$with_platforms" 98 with_platforms="x11,$with_platforms"
99 with_dri="-D dri3=true" 99 with_dri="-D dri3=true"
100 with_glx="-D glx=dri" 100 with_glx="-D glx=dri"
101 else 101 else