diff -ur /opt/SnowLeopardPorts/x11/mesa/work/mesa-17.1.6/src/glx/apple/Makefile /opt/macports-ports/x11/mesa/work/mesa-18.3.6/src/glx/apple/Makefile
old
|
new
|
|
91 | 91 | target_triplet = x86_64-apple-darwin10.8.0 |
92 | 92 | subdir = src/glx/apple |
93 | 93 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
94 | | am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_gnu_make.m4 \ |
| 94 | am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \ |
| 95 | $(top_srcdir)/m4/ax_check_gnu_make.m4 \ |
95 | 96 | $(top_srcdir)/m4/ax_check_python_mako_module.m4 \ |
96 | 97 | $(top_srcdir)/m4/ax_gcc_builtin.m4 \ |
97 | 98 | $(top_srcdir)/m4/ax_gcc_func_attribute.m4 \ |
… |
… |
|
197 | 198 | CTAGS = ctags |
198 | 199 | am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/bin/depcomp TODO |
199 | 200 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
200 | | ACLOCAL = ${SHELL} '/opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6/bin/missing' aclocal-1.16 |
| 201 | ACLOCAL = ${SHELL} '/opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6/bin/missing' aclocal-1.16 |
201 | 202 | AMDGPU_CFLAGS = |
202 | 203 | AMDGPU_LIBS = |
203 | 204 | AMTAR = $${TAR-tar} |
… |
… |
|
205 | 206 | ANDROID_CFLAGS = |
206 | 207 | ANDROID_LIBS = |
207 | 208 | AR = ar |
208 | | AUTOCONF = ${SHELL} '/opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6/bin/missing' autoconf |
209 | | AUTOHEADER = ${SHELL} '/opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6/bin/missing' autoheader |
210 | | AUTOMAKE = ${SHELL} '/opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6/bin/missing' automake-1.16 |
| 209 | AUTOCONF = ${SHELL} '/opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6/bin/missing' autoconf |
| 210 | AUTOHEADER = ${SHELL} '/opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6/bin/missing' autoheader |
| 211 | AUTOMAKE = ${SHELL} '/opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6/bin/missing' automake-1.16 |
211 | 212 | AWK = gawk |
| 213 | BACKTRACE_CFLAGS = |
| 214 | BACKTRACE_LIBS = |
212 | 215 | BSYMBOLIC = |
213 | 216 | CC = /opt/local/bin/clang-mp-9.0 |
214 | 217 | CCAS = /opt/local/bin/clang-mp-9.0 |
215 | 218 | CCASDEPMODE = depmode=gcc3 |
216 | 219 | CCASFLAGS = -pipe -Os -I/opt/local/include/LegacySupport -arch x86_64 |
217 | 220 | CCDEPMODE = depmode=gcc3 |
218 | | CFLAGS = -pipe -Os -I/opt/local/include/LegacySupport -arch x86_64 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-math-errno -fno-trapping-math -Qunused-arguments |
| 221 | CFLAGS = -pipe -Os -I/opt/local/include/LegacySupport -arch x86_64 -std=c99 -Qunused-arguments |
219 | 222 | CLANG_RESOURCE_DIR = |
220 | 223 | CLOCK_LIB = |
221 | 224 | CLOVER_STD_OVERRIDE = |
222 | 225 | CPP = /opt/local/bin/clang-mp-9.0 -E |
223 | 226 | CPPFLAGS = -I/opt/local/include/LegacySupport |
224 | 227 | CXX = /opt/local/bin/clang++-mp-9.0 |
| 228 | CXX11_CXXFLAGS = |
225 | 229 | CXXCPP = /opt/local/bin/clang++-mp-9.0 -E |
226 | 230 | CXXDEPMODE = depmode=gcc3 |
227 | | CXXFLAGS = -pipe -Os -stdlib=libc++ -arch x86_64 -Wall -fno-math-errno -fno-trapping-math -Qunused-arguments |
| 231 | CXXFLAGS = -pipe -Os -stdlib=libc++ -arch x86_64 -Wall -fno-math-errno -fno-trapping-math -Wno-missing-field-initializers -Qunused-arguments |
228 | 232 | CYGPATH_W = echo |
229 | 233 | D3D_DRIVER_INSTALL_DIR = ${exec_prefix}/lib/d3d |
230 | | DEFINES = -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DGLX_USE_APPLEGL -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_X11_PLATFORM -DBUILDING_MESA |
231 | | DEFS = -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"17.1.6\" -DPACKAGE_STRING=\"Mesa\ 17.1.6\" -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"17.1.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1 -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_DLADDR=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 |
| 234 | DEFINES = -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_DLFCN_H -DHAVE_STRTOF -DHAVE_POSIX_MEMALIGN -DHAVE_ZLIB -DGLX_USE_APPLEGL -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_X11_PLATFORM -DBUILDING_MESA |
| 235 | DEFS = -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"18.3.6\" -DPACKAGE_STRING=\"Mesa\ 18.3.6\" -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"18.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1 -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_NORETURN=1 -DHAVE_DLADDR=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 |
232 | 236 | DEPDIR = .deps |
233 | 237 | DLLTOOL = false |
234 | 238 | DLOPEN_LIBS = |
235 | 239 | DRI2PROTO_CFLAGS = |
236 | 240 | DRI2PROTO_LIBS = |
237 | 241 | DRIGL_CFLAGS = |
238 | | DRIGL_LIBS = -L/opt/local/lib -lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb -lxcb-glx -lXxf86vm |
| 242 | DRIGL_LIBS = -L/opt/local/lib -lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb -lxcb-glx |
239 | 243 | DRI_DRIVER_INSTALL_DIR = ${libdir}/dri |
240 | 244 | DRI_DRIVER_SEARCH_DIR = ${DRI_DRIVER_INSTALL_DIR} |
241 | 245 | DRI_LIB_DEPS = -L/opt/local/lib -lexpat -lm -lpthread -pthread |
… |
… |
|
255 | 259 | EXPAT_CFLAGS = |
256 | 260 | EXPAT_LIBS = -L/opt/local/lib -lexpat |
257 | 261 | FGREP = /opt/local/bin/ggrep -F |
258 | | FREEDRENO_CFLAGS = |
259 | | FREEDRENO_LIBS = |
260 | 262 | GALLIUM_PIPE_LOADER_DEFINES = -DHAVE_PIPE_LOADER_DRI |
261 | 263 | GBM_PC_LIB_PRIV = |
262 | 264 | GBM_PC_REQ_PRIV = |
… |
… |
|
271 | 273 | GLVND_LIBS = |
272 | 274 | GLX_TLS = no |
273 | 275 | GL_LIB = GL |
274 | | GL_LIB_DEPS = -L/opt/local/lib -lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb -lxcb-glx -lXxf86vm -lm -lpthread -pthread |
| 276 | GL_LIB_DEPS = -L/opt/local/lib -lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb -lxcb-glx -lm -lpthread -pthread |
275 | 277 | GL_PC_CFLAGS = |
276 | 278 | GL_PC_LIB_PRIV = -lm -lpthread -pthread |
277 | | GL_PC_REQ_PRIV = x11 xext xdamage >= 1.1 xfixes x11-xcb xcb xcb-glx >= 1.8.1 xxf86vm |
| 279 | GL_PC_REQ_PRIV = x11 xext xdamage >= 1.1 xfixes x11-xcb xcb xcb-glx >= 1.8.1 |
| 280 | GL_PKGCONF_LIB = GL |
278 | 281 | GREP = /opt/local/bin/ggrep |
279 | | HAVE_XF86VIDMODE = yes |
| 282 | I915_CFLAGS = |
| 283 | I915_LIBS = |
280 | 284 | INDENT = cat |
281 | 285 | INDENT_FLAGS = |
282 | 286 | INSTALL = /usr/bin/install -c |
… |
… |
|
284 | 288 | INSTALL_PROGRAM = ${INSTALL} |
285 | 289 | INSTALL_SCRIPT = ${INSTALL} |
286 | 290 | INSTALL_STRIP_PROGRAM = $(install_sh) -c -s |
287 | | INTEL_CFLAGS = |
288 | | INTEL_LIBS = |
289 | 291 | LD = /opt/local/libexec/llvm-9.0/bin/ld |
290 | 292 | LDFLAGS = -L/opt/local/lib -Wl,-headerpad_max_install_names -lMacportsLegacySupport -arch x86_64 |
| 293 | LD_BUILD_ID = |
291 | 294 | LD_NO_UNDEFINED = |
292 | 295 | LEX = flex |
293 | 296 | LEXLIB = -lfl |
294 | 297 | LEX_OUTPUT_ROOT = lex.yy |
| 298 | LIBATOMIC_LIBS = |
295 | 299 | LIBCLC_INCLUDEDIR = |
296 | 300 | LIBCLC_LIBEXECDIR = |
297 | 301 | LIBDRM_CFLAGS = |
… |
… |
|
317 | 321 | LN_S = ln -s |
318 | 322 | LTLIBOBJS = |
319 | 323 | LT_SYS_LIBRARY_PATH = |
320 | | MAKEINFO = ${SHELL} '/opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6/bin/missing' makeinfo |
| 324 | MAKEINFO = ${SHELL} '/opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6/bin/missing' makeinfo |
321 | 325 | MANIFEST_TOOL = : |
322 | 326 | MKDIR_P = /opt/local/bin/gmkdir -p |
323 | | MSVC2013_COMPAT_CFLAGS = -Werror=pointer-arith -Werror=vla |
324 | | MSVC2013_COMPAT_CXXFLAGS = -Werror=pointer-arith -Werror=vla |
| 327 | MSVC2013_COMPAT_CFLAGS = -Werror=pointer-arith -Werror=vla |
| 328 | MSVC2013_COMPAT_CXXFLAGS = -Werror=pointer-arith -Werror=vla |
325 | 329 | NINE_MAJOR = 1 |
326 | 330 | NINE_MINOR = 0 |
327 | | NINE_TINY = 0 |
| 331 | NINE_PATCH = 0 |
328 | 332 | NINE_VERSION = 1.0.0 |
329 | 333 | NM = /opt/local/bin/nm |
330 | 334 | NMEDIT = nmedit |
… |
… |
|
334 | 338 | NVVIEUX_LIBS = |
335 | 339 | OBJDUMP = false |
336 | 340 | OBJEXT = o |
337 | | OMX_CFLAGS = |
338 | | OMX_LIBS = |
339 | | OMX_LIB_INSTALL_DIR = |
| 341 | OMX_BELLAGIO_CFLAGS = |
| 342 | OMX_BELLAGIO_LIBS = |
| 343 | OMX_BELLAGIO_LIB_INSTALL_DIR = |
| 344 | OMX_TIZONIA_CFLAGS = |
| 345 | OMX_TIZONIA_LIBS = |
| 346 | OMX_TIZONIA_LIB_INSTALL_DIR = |
340 | 347 | OPENCL_LIBNAME = |
341 | 348 | OPENCL_VERSION = 1 |
342 | 349 | OSMESA_LIB = OSMesa |
… |
… |
|
349 | 356 | PACKAGE = mesa |
350 | 357 | PACKAGE_BUGREPORT = https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa |
351 | 358 | PACKAGE_NAME = Mesa |
352 | | PACKAGE_STRING = Mesa 17.1.6 |
| 359 | PACKAGE_STRING = Mesa 18.3.6 |
353 | 360 | PACKAGE_TARNAME = mesa |
354 | 361 | PACKAGE_URL = |
355 | | PACKAGE_VERSION = 17.1.6 |
| 362 | PACKAGE_VERSION = 18.3.6 |
356 | 363 | PATH_SEPARATOR = : |
357 | 364 | PKG_CONFIG = /opt/local/bin/pkg-config |
358 | 365 | PKG_CONFIG_LIBDIR = |
… |
… |
|
364 | 371 | PTHREAD_CFLAGS = -D_THREAD_SAFE -pthread |
365 | 372 | PTHREAD_LIBS = -lpthread -pthread |
366 | 373 | PWR8_CFLAGS = |
367 | | PYTHON2 = /opt/local/bin/python2.7 |
| 374 | PYTHON = /opt/local/bin/python3.9 |
| 375 | PYTHON_EXEC_PREFIX = ${exec_prefix} |
| 376 | PYTHON_PLATFORM = darwin |
| 377 | PYTHON_PREFIX = ${prefix} |
| 378 | PYTHON_VERSION = 3.9 |
368 | 379 | RADEON_CFLAGS = |
369 | 380 | RADEON_LIBS = |
370 | 381 | RANLIB = ranlib |
371 | 382 | RM = rm -f |
| 383 | SCANNER_ARG = |
372 | 384 | SED = /opt/local/bin/gsed |
373 | 385 | SELINUX_CFLAGS = |
374 | 386 | SELINUX_LIBS = |
… |
… |
|
380 | 392 | STRIP = strip |
381 | 393 | SWR_AVX2_CXXFLAGS = |
382 | 394 | SWR_AVX_CXXFLAGS = |
383 | | SWR_CXX11_CXXFLAGS = |
| 395 | SWR_KNL_CXXFLAGS = |
| 396 | SWR_SKX_CXXFLAGS = |
| 397 | V3D_SIMULATOR_CFLAGS = |
| 398 | V3D_SIMULATOR_LIBS = |
384 | 399 | VALGRIND_CFLAGS = |
385 | 400 | VALGRIND_LIBS = |
386 | 401 | VA_CFLAGS = |
… |
… |
|
395 | 410 | VDPAU_LIB_INSTALL_DIR = ${libdir}/vdpau |
396 | 411 | VDPAU_MAJOR = 1 |
397 | 412 | VDPAU_MINOR = 0 |
398 | | VERSION = 17.1.6 |
| 413 | VERSION = 18.3.6 |
399 | 414 | VISIBILITY_CFLAGS = -fvisibility=hidden |
400 | 415 | VISIBILITY_CXXFLAGS = -fvisibility=hidden |
401 | 416 | VL_CFLAGS = |
402 | 417 | VL_LIBS = |
403 | 418 | VULKAN_ICD_INSTALL_DIR = ${datarootdir}/vulkan/icd.d |
404 | | WAYLAND_CFLAGS = |
405 | | WAYLAND_LIBS = |
406 | | WAYLAND_SCANNER = : |
| 419 | WAYLAND_CLIENT_CFLAGS = |
| 420 | WAYLAND_CLIENT_LIBS = |
| 421 | WAYLAND_EGL_CFLAGS = |
| 422 | WAYLAND_EGL_LIBS = |
| 423 | WAYLAND_PROTOCOLS_CFLAGS = |
| 424 | WAYLAND_PROTOCOLS_DATADIR = |
| 425 | WAYLAND_PROTOCOLS_LIBS = |
| 426 | WAYLAND_SCANNER = |
407 | 427 | WAYLAND_SCANNER_CFLAGS = |
408 | 428 | WAYLAND_SCANNER_LIBS = |
| 429 | WAYLAND_SERVER_CFLAGS = |
| 430 | WAYLAND_SERVER_LIBS = |
| 431 | WNO_OVERRIDE_INIT = -Wno-override-init -Wno-initializer-overrides |
409 | 432 | X11_INCLUDES = |
410 | 433 | XA_MAJOR = 2 |
411 | | XA_MINOR = 3 |
412 | | XA_TINY = 0 |
413 | | XA_VERSION = 2.3.0 |
| 434 | XA_MINOR = 4 |
| 435 | XA_PATCH = 0 |
| 436 | XA_VERSION = 2.4.0 |
414 | 437 | XCB_DRI2_CFLAGS = |
415 | 438 | XCB_DRI2_LIBS = -L/opt/local/lib -lX11-xcb -lX11 -lxcb -lxcb-dri2 -lxcb-xfixes |
416 | 439 | XCB_DRI3_CFLAGS = |
417 | 440 | XCB_DRI3_LIBS = |
418 | | XF86VIDMODE_CFLAGS = |
419 | | XF86VIDMODE_LIBS = -L/opt/local/lib -lXxf86vm |
| 441 | XCB_DRI3_MODIFIERS_CFLAGS = |
| 442 | XCB_DRI3_MODIFIERS_LIBS = |
| 443 | XCB_RANDR_CFLAGS = |
| 444 | XCB_RANDR_LIBS = |
420 | 445 | XLIBGL_CFLAGS = |
421 | 446 | XLIBGL_LIBS = |
| 447 | XLIB_RANDR_CFLAGS = |
| 448 | XLIB_RANDR_LIBS = |
422 | 449 | XVMC_CFLAGS = |
423 | 450 | XVMC_LIBS = |
424 | 451 | XVMC_LIB_INSTALL_DIR = ${libdir} |
… |
… |
|
428 | 455 | YFLAGS = |
429 | 456 | ZLIB_CFLAGS = |
430 | 457 | ZLIB_LIBS = -L/opt/local/lib -lz |
431 | | abs_builddir = /opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6/src/glx/apple |
432 | | abs_srcdir = /opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6/src/glx/apple |
433 | | abs_top_builddir = /opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6 |
434 | | abs_top_srcdir = /opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6 |
| 458 | abs_builddir = /opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6/src/glx/apple |
| 459 | abs_srcdir = /opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6/src/glx/apple |
| 460 | abs_top_builddir = /opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6 |
| 461 | abs_top_srcdir = /opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6 |
435 | 462 | ac_ct_AR = ar |
436 | 463 | ac_ct_CC = /opt/local/bin/clang-mp-9.0 |
437 | 464 | ac_ct_CXX = |
… |
… |
|
464 | 491 | ifGNUmake = |
465 | 492 | includedir = ${prefix}/include |
466 | 493 | infodir = ${datarootdir}/info |
467 | | install_sh = ${SHELL} /opt/local/var/macports/build/_opt_SnowLeopardPorts_x11_mesa/mesa/work/mesa-17.1.6/bin/install-sh |
| 494 | install_sh = ${SHELL} /opt/local/var/macports/build/_opt_macports-ports_x11_mesa/mesa/work/mesa-18.3.6/bin/install-sh |
468 | 495 | libdir = ${exec_prefix}/lib |
469 | 496 | libexecdir = ${exec_prefix}/libexec |
470 | 497 | localedir = ${datarootdir}/locale |
… |
… |
|
473 | 500 | mkdir_p = $(MKDIR_P) |
474 | 501 | oldincludedir = /usr/include |
475 | 502 | pdfdir = ${docdir} |
| 503 | pkgpyexecdir = ${pyexecdir}/mesa |
| 504 | pkgpythondir = ${pythondir}/mesa |
476 | 505 | prefix = /opt/local |
477 | 506 | program_transform_name = s,x,x, |
478 | 507 | psdir = ${docdir} |
| 508 | pyexecdir = ${exec_prefix}/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages |
| 509 | pythondir = ${prefix}/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages |
479 | 510 | sbindir = ${exec_prefix}/sbin |
480 | 511 | sharedstatedir = ${prefix}/com |
481 | 512 | srcdir = . |
… |
… |
|
488 | 519 | top_build_prefix = ../../../ |
489 | 520 | top_builddir = ../../.. |
490 | 521 | top_srcdir = ../../.. |
491 | | EXTRA_DIST = RELEASE_NOTES |
| 522 | EXTRA_DIST = \ |
| 523 | RELEASE_NOTES \ |
| 524 | meson.build |
| 525 | |
492 | 526 | noinst_LTLIBRARIES = libappleglx.la |
493 | 527 | AM_CFLAGS = \ |
494 | 528 | -I$(top_srcdir)/src \ |
… |
… |
|
500 | 534 | -I$(top_builddir)/src/mapi/glapi \ |
501 | 535 | -I$(top_srcdir)/src/mapi/glapi \ |
502 | 536 | $(VISIBILITY_CFLAGS) \ |
503 | | $(SHARED_GLAPI_CFLAGS) \ |
504 | 537 | $(DEFINES) \ |
505 | 538 | $(X11_INCLUDES) |
506 | 539 | |
diff -ur /opt/SnowLeopardPorts/x11/mesa/work/mesa-17.1.6/src/glx/apple/Makefile.am /opt/macports-ports/x11/mesa/work/mesa-18.3.6/src/glx/apple/Makefile.am
old
|
new
|
|
1 | | EXTRA_DIST = RELEASE_NOTES |
| 1 | EXTRA_DIST = \ |
| 2 | RELEASE_NOTES \ |
| 3 | meson.build |
2 | 4 | |
3 | 5 | noinst_LTLIBRARIES = libappleglx.la |
4 | 6 | |
… |
… |
|
12 | 14 | -I$(top_builddir)/src/mapi/glapi \ |
13 | 15 | -I$(top_srcdir)/src/mapi/glapi \ |
14 | 16 | $(VISIBILITY_CFLAGS) \ |
15 | | $(SHARED_GLAPI_CFLAGS) \ |
16 | 17 | $(DEFINES) \ |
17 | 18 | $(X11_INCLUDES) |
18 | 19 | |
diff -ur /opt/SnowLeopardPorts/x11/mesa/work/mesa-17.1.6/src/glx/apple/Makefile.in /opt/macports-ports/x11/mesa/work/mesa-18.3.6/src/glx/apple/Makefile.in
old
|
new
|
|
91 | 91 | target_triplet = @target@ |
92 | 92 | subdir = src/glx/apple |
93 | 93 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
94 | | am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_gnu_make.m4 \ |
| 94 | am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \ |
| 95 | $(top_srcdir)/m4/ax_check_gnu_make.m4 \ |
95 | 96 | $(top_srcdir)/m4/ax_check_python_mako_module.m4 \ |
96 | 97 | $(top_srcdir)/m4/ax_gcc_builtin.m4 \ |
97 | 98 | $(top_srcdir)/m4/ax_gcc_func_attribute.m4 \ |
… |
… |
|
209 | 210 | AUTOHEADER = @AUTOHEADER@ |
210 | 211 | AUTOMAKE = @AUTOMAKE@ |
211 | 212 | AWK = @AWK@ |
| 213 | BACKTRACE_CFLAGS = @BACKTRACE_CFLAGS@ |
| 214 | BACKTRACE_LIBS = @BACKTRACE_LIBS@ |
212 | 215 | BSYMBOLIC = @BSYMBOLIC@ |
213 | 216 | CC = @CC@ |
214 | 217 | CCAS = @CCAS@ |
… |
… |
|
222 | 225 | CPP = @CPP@ |
223 | 226 | CPPFLAGS = @CPPFLAGS@ |
224 | 227 | CXX = @CXX@ |
| 228 | CXX11_CXXFLAGS = @CXX11_CXXFLAGS@ |
225 | 229 | CXXCPP = @CXXCPP@ |
226 | 230 | CXXDEPMODE = @CXXDEPMODE@ |
227 | 231 | CXXFLAGS = @CXXFLAGS@ |
… |
… |
|
255 | 259 | EXPAT_CFLAGS = @EXPAT_CFLAGS@ |
256 | 260 | EXPAT_LIBS = @EXPAT_LIBS@ |
257 | 261 | FGREP = @FGREP@ |
258 | | FREEDRENO_CFLAGS = @FREEDRENO_CFLAGS@ |
259 | | FREEDRENO_LIBS = @FREEDRENO_LIBS@ |
260 | 262 | GALLIUM_PIPE_LOADER_DEFINES = @GALLIUM_PIPE_LOADER_DEFINES@ |
261 | 263 | GBM_PC_LIB_PRIV = @GBM_PC_LIB_PRIV@ |
262 | 264 | GBM_PC_REQ_PRIV = @GBM_PC_REQ_PRIV@ |
… |
… |
|
275 | 277 | GL_PC_CFLAGS = @GL_PC_CFLAGS@ |
276 | 278 | GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@ |
277 | 279 | GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@ |
| 280 | GL_PKGCONF_LIB = @GL_PKGCONF_LIB@ |
278 | 281 | GREP = @GREP@ |
279 | | HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@ |
| 282 | I915_CFLAGS = @I915_CFLAGS@ |
| 283 | I915_LIBS = @I915_LIBS@ |
280 | 284 | INDENT = @INDENT@ |
281 | 285 | INDENT_FLAGS = @INDENT_FLAGS@ |
282 | 286 | INSTALL = @INSTALL@ |
… |
… |
|
284 | 288 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
285 | 289 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
286 | 290 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
287 | | INTEL_CFLAGS = @INTEL_CFLAGS@ |
288 | | INTEL_LIBS = @INTEL_LIBS@ |
289 | 291 | LD = @LD@ |
290 | 292 | LDFLAGS = @LDFLAGS@ |
| 293 | LD_BUILD_ID = @LD_BUILD_ID@ |
291 | 294 | LD_NO_UNDEFINED = @LD_NO_UNDEFINED@ |
292 | 295 | LEX = @LEX@ |
293 | 296 | LEXLIB = @LEXLIB@ |
294 | 297 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ |
| 298 | LIBATOMIC_LIBS = @LIBATOMIC_LIBS@ |
295 | 299 | LIBCLC_INCLUDEDIR = @LIBCLC_INCLUDEDIR@ |
296 | 300 | LIBCLC_LIBEXECDIR = @LIBCLC_LIBEXECDIR@ |
297 | 301 | LIBDRM_CFLAGS = @LIBDRM_CFLAGS@ |
… |
… |
|
324 | 328 | MSVC2013_COMPAT_CXXFLAGS = @MSVC2013_COMPAT_CXXFLAGS@ |
325 | 329 | NINE_MAJOR = @NINE_MAJOR@ |
326 | 330 | NINE_MINOR = @NINE_MINOR@ |
327 | | NINE_TINY = @NINE_TINY@ |
| 331 | NINE_PATCH = @NINE_PATCH@ |
328 | 332 | NINE_VERSION = @NINE_VERSION@ |
329 | 333 | NM = @NM@ |
330 | 334 | NMEDIT = @NMEDIT@ |
… |
… |
|
334 | 338 | NVVIEUX_LIBS = @NVVIEUX_LIBS@ |
335 | 339 | OBJDUMP = @OBJDUMP@ |
336 | 340 | OBJEXT = @OBJEXT@ |
337 | | OMX_CFLAGS = @OMX_CFLAGS@ |
338 | | OMX_LIBS = @OMX_LIBS@ |
339 | | OMX_LIB_INSTALL_DIR = @OMX_LIB_INSTALL_DIR@ |
| 341 | OMX_BELLAGIO_CFLAGS = @OMX_BELLAGIO_CFLAGS@ |
| 342 | OMX_BELLAGIO_LIBS = @OMX_BELLAGIO_LIBS@ |
| 343 | OMX_BELLAGIO_LIB_INSTALL_DIR = @OMX_BELLAGIO_LIB_INSTALL_DIR@ |
| 344 | OMX_TIZONIA_CFLAGS = @OMX_TIZONIA_CFLAGS@ |
| 345 | OMX_TIZONIA_LIBS = @OMX_TIZONIA_LIBS@ |
| 346 | OMX_TIZONIA_LIB_INSTALL_DIR = @OMX_TIZONIA_LIB_INSTALL_DIR@ |
340 | 347 | OPENCL_LIBNAME = @OPENCL_LIBNAME@ |
341 | 348 | OPENCL_VERSION = @OPENCL_VERSION@ |
342 | 349 | OSMESA_LIB = @OSMESA_LIB@ |
… |
… |
|
364 | 371 | PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ |
365 | 372 | PTHREAD_LIBS = @PTHREAD_LIBS@ |
366 | 373 | PWR8_CFLAGS = @PWR8_CFLAGS@ |
367 | | PYTHON2 = @PYTHON2@ |
| 374 | PYTHON = @PYTHON@ |
| 375 | PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ |
| 376 | PYTHON_PLATFORM = @PYTHON_PLATFORM@ |
| 377 | PYTHON_PREFIX = @PYTHON_PREFIX@ |
| 378 | PYTHON_VERSION = @PYTHON_VERSION@ |
368 | 379 | RADEON_CFLAGS = @RADEON_CFLAGS@ |
369 | 380 | RADEON_LIBS = @RADEON_LIBS@ |
370 | 381 | RANLIB = @RANLIB@ |
371 | 382 | RM = @RM@ |
| 383 | SCANNER_ARG = @SCANNER_ARG@ |
372 | 384 | SED = @SED@ |
373 | 385 | SELINUX_CFLAGS = @SELINUX_CFLAGS@ |
374 | 386 | SELINUX_LIBS = @SELINUX_LIBS@ |
… |
… |
|
380 | 392 | STRIP = @STRIP@ |
381 | 393 | SWR_AVX2_CXXFLAGS = @SWR_AVX2_CXXFLAGS@ |
382 | 394 | SWR_AVX_CXXFLAGS = @SWR_AVX_CXXFLAGS@ |
383 | | SWR_CXX11_CXXFLAGS = @SWR_CXX11_CXXFLAGS@ |
| 395 | SWR_KNL_CXXFLAGS = @SWR_KNL_CXXFLAGS@ |
| 396 | SWR_SKX_CXXFLAGS = @SWR_SKX_CXXFLAGS@ |
| 397 | V3D_SIMULATOR_CFLAGS = @V3D_SIMULATOR_CFLAGS@ |
| 398 | V3D_SIMULATOR_LIBS = @V3D_SIMULATOR_LIBS@ |
384 | 399 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ |
385 | 400 | VALGRIND_LIBS = @VALGRIND_LIBS@ |
386 | 401 | VA_CFLAGS = @VA_CFLAGS@ |
… |
… |
|
401 | 416 | VL_CFLAGS = @VL_CFLAGS@ |
402 | 417 | VL_LIBS = @VL_LIBS@ |
403 | 418 | VULKAN_ICD_INSTALL_DIR = @VULKAN_ICD_INSTALL_DIR@ |
404 | | WAYLAND_CFLAGS = @WAYLAND_CFLAGS@ |
405 | | WAYLAND_LIBS = @WAYLAND_LIBS@ |
| 419 | WAYLAND_CLIENT_CFLAGS = @WAYLAND_CLIENT_CFLAGS@ |
| 420 | WAYLAND_CLIENT_LIBS = @WAYLAND_CLIENT_LIBS@ |
| 421 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ |
| 422 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ |
| 423 | WAYLAND_PROTOCOLS_CFLAGS = @WAYLAND_PROTOCOLS_CFLAGS@ |
| 424 | WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@ |
| 425 | WAYLAND_PROTOCOLS_LIBS = @WAYLAND_PROTOCOLS_LIBS@ |
406 | 426 | WAYLAND_SCANNER = @WAYLAND_SCANNER@ |
407 | 427 | WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@ |
408 | 428 | WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@ |
| 429 | WAYLAND_SERVER_CFLAGS = @WAYLAND_SERVER_CFLAGS@ |
| 430 | WAYLAND_SERVER_LIBS = @WAYLAND_SERVER_LIBS@ |
| 431 | WNO_OVERRIDE_INIT = @WNO_OVERRIDE_INIT@ |
409 | 432 | X11_INCLUDES = @X11_INCLUDES@ |
410 | 433 | XA_MAJOR = @XA_MAJOR@ |
411 | 434 | XA_MINOR = @XA_MINOR@ |
412 | | XA_TINY = @XA_TINY@ |
| 435 | XA_PATCH = @XA_PATCH@ |
413 | 436 | XA_VERSION = @XA_VERSION@ |
414 | 437 | XCB_DRI2_CFLAGS = @XCB_DRI2_CFLAGS@ |
415 | 438 | XCB_DRI2_LIBS = @XCB_DRI2_LIBS@ |
416 | 439 | XCB_DRI3_CFLAGS = @XCB_DRI3_CFLAGS@ |
417 | 440 | XCB_DRI3_LIBS = @XCB_DRI3_LIBS@ |
418 | | XF86VIDMODE_CFLAGS = @XF86VIDMODE_CFLAGS@ |
419 | | XF86VIDMODE_LIBS = @XF86VIDMODE_LIBS@ |
| 441 | XCB_DRI3_MODIFIERS_CFLAGS = @XCB_DRI3_MODIFIERS_CFLAGS@ |
| 442 | XCB_DRI3_MODIFIERS_LIBS = @XCB_DRI3_MODIFIERS_LIBS@ |
| 443 | XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@ |
| 444 | XCB_RANDR_LIBS = @XCB_RANDR_LIBS@ |
420 | 445 | XLIBGL_CFLAGS = @XLIBGL_CFLAGS@ |
421 | 446 | XLIBGL_LIBS = @XLIBGL_LIBS@ |
| 447 | XLIB_RANDR_CFLAGS = @XLIB_RANDR_CFLAGS@ |
| 448 | XLIB_RANDR_LIBS = @XLIB_RANDR_LIBS@ |
422 | 449 | XVMC_CFLAGS = @XVMC_CFLAGS@ |
423 | 450 | XVMC_LIBS = @XVMC_LIBS@ |
424 | 451 | XVMC_LIB_INSTALL_DIR = @XVMC_LIB_INSTALL_DIR@ |
… |
… |
|
473 | 500 | mkdir_p = @mkdir_p@ |
474 | 501 | oldincludedir = @oldincludedir@ |
475 | 502 | pdfdir = @pdfdir@ |
| 503 | pkgpyexecdir = @pkgpyexecdir@ |
| 504 | pkgpythondir = @pkgpythondir@ |
476 | 505 | prefix = @prefix@ |
477 | 506 | program_transform_name = @program_transform_name@ |
478 | 507 | psdir = @psdir@ |
| 508 | pyexecdir = @pyexecdir@ |
| 509 | pythondir = @pythondir@ |
479 | 510 | sbindir = @sbindir@ |
480 | 511 | sharedstatedir = @sharedstatedir@ |
481 | 512 | srcdir = @srcdir@ |
… |
… |
|
488 | 519 | top_build_prefix = @top_build_prefix@ |
489 | 520 | top_builddir = @top_builddir@ |
490 | 521 | top_srcdir = @top_srcdir@ |
491 | | EXTRA_DIST = RELEASE_NOTES |
| 522 | EXTRA_DIST = \ |
| 523 | RELEASE_NOTES \ |
| 524 | meson.build |
| 525 | |
492 | 526 | noinst_LTLIBRARIES = libappleglx.la |
493 | 527 | AM_CFLAGS = \ |
494 | 528 | -I$(top_srcdir)/src \ |
… |
… |
|
500 | 534 | -I$(top_builddir)/src/mapi/glapi \ |
501 | 535 | -I$(top_srcdir)/src/mapi/glapi \ |
502 | 536 | $(VISIBILITY_CFLAGS) \ |
503 | | $(SHARED_GLAPI_CFLAGS) \ |
504 | 537 | $(DEFINES) \ |
505 | 538 | $(X11_INCLUDES) |
506 | 539 | |
diff -ur /opt/SnowLeopardPorts/x11/mesa/work/mesa-17.1.6/src/glx/apple/apple_glapi.c /opt/macports-ports/x11/mesa/work/mesa-18.3.6/src/glx/apple/apple_glapi.c
old
|
new
|
|
42 | 42 | #include "main/remap.h" |
43 | 43 | #include "glapi.h" |
44 | 44 | #include "glapitable.h" |
45 | | #include "main/dispatch.h" |
46 | 45 | |
47 | 46 | #include "apple_glx.h" |
48 | 47 | #include "apple_xgl_api.h" |
… |
… |
|
64 | 63 | assert(__applegl_api); |
65 | 64 | memcpy(__applegl_api, __ogl_framework_api, sizeof(struct _glapi_table)); |
66 | 65 | |
67 | | SET_ReadPixels(__applegl_api, __applegl_glReadPixels); |
68 | | SET_CopyPixels(__applegl_api, __applegl_glCopyPixels); |
69 | | SET_CopyColorTable(__applegl_api, __applegl_glCopyColorTable); |
70 | | SET_DrawBuffer(__applegl_api, __applegl_glDrawBuffer); |
71 | | SET_DrawBuffers(__applegl_api, __applegl_glDrawBuffers); |
72 | | SET_Viewport(__applegl_api, __applegl_glViewport); |
| 66 | _glapi_table_patch(__applegl_api, "ReadPixels", __applegl_glReadPixels); |
| 67 | _glapi_table_patch(__applegl_api, "CopyPixels", __applegl_glCopyPixels); |
| 68 | _glapi_table_patch(__applegl_api, "CopyColorTable", __applegl_glCopyColorTable); |
| 69 | _glapi_table_patch(__applegl_api, "DrawBuffers", __applegl_glDrawBuffer); |
| 70 | _glapi_table_patch(__applegl_api, "Viewport", __applegl_glViewport); |
73 | 71 | } |
74 | 72 | |
75 | 73 | void apple_glapi_set_dispatch(void) { |
diff -ur /opt/SnowLeopardPorts/x11/mesa/work/mesa-17.1.6/src/glx/apple/apple_glx_context.c /opt/macports-ports/x11/mesa/work/mesa-18.3.6/src/glx/apple/apple_glx_context.c
old
|
new
|
|
55 | 55 | #include "apple_cgl.h" |
56 | 56 | #include "apple_glx_drawable.h" |
57 | 57 | |
| 58 | #include "util/debug.h" |
| 59 | |
58 | 60 | static pthread_mutex_t context_lock = PTHREAD_MUTEX_INITIALIZER; |
59 | 61 | |
60 | 62 | /* |
… |
… |
|
181 | 183 | *x11errorptr = false; |
182 | 184 | } |
183 | 185 | |
184 | | if (getenv("LIBGL_DIAGNOSTIC")) |
| 186 | if (env_var_as_boolean("LIBGL_DIAGNOSTIC", false)) |
185 | 187 | fprintf(stderr, "error: %s\n", apple_cgl.error_string(error)); |
186 | 188 | |
187 | 189 | return true; |
diff -ur /opt/SnowLeopardPorts/x11/mesa/work/mesa-17.1.6/src/glx/apple/apple_glx_log.c /opt/macports-ports/x11/mesa/work/mesa-18.3.6/src/glx/apple/apple_glx_log.c
old
|
new
|
|
36 | 36 | #include <inttypes.h> |
37 | 37 | #include <pthread.h> |
38 | 38 | #include "apple_glx_log.h" |
| 39 | #include "util/debug.h" |
39 | 40 | |
40 | 41 | static bool diagnostic = false; |
41 | 42 | static aslclient aslc; |
42 | 43 | |
43 | 44 | void apple_glx_log_init(void) { |
44 | | if (getenv("LIBGL_DIAGNOSTIC")) { |
| 45 | if (env_var_as_boolean("LIBGL_DIAGNOSTIC", false)) { |
45 | 46 | diagnostic = true; |
46 | 47 | } |
47 | 48 | |
… |
… |
|
96 | 97 | fprintf(stderr, "%-9s %24s:%-4d %s(%"PRIu64"): ", |
97 | 98 | _asl_level_string(level), file, line, function, thread); |
98 | 99 | vfprintf(stderr, fmt, args2); |
| 100 | va_end(args2); |
99 | 101 | } |
100 | 102 | |
101 | 103 | msg = asl_new(ASL_TYPE_MSG); |
diff -ur /opt/SnowLeopardPorts/x11/mesa/work/mesa-17.1.6/src/glx/apple/apple_glx_pbuffer.c /opt/macports-ports/x11/mesa/work/mesa-18.3.6/src/glx/apple/apple_glx_pbuffer.c
old
|
new
|
|
40 | 40 | #include "apple_glx_context.h" |
41 | 41 | #include "apple_glx_drawable.h" |
42 | 42 | |
| 43 | #include <stdbool.h> |
43 | 44 | #include <stdlib.h> |
44 | 45 | #include <pthread.h> |
45 | 46 | #include <assert.h> |
46 | 47 | #include "apple_glx.h" |
47 | 48 | #include "glxconfig.h" |
48 | 49 | #include "apple_cgl.h" |
| 50 | #include "util/debug.h" |
49 | 51 | |
50 | 52 | /* mesa defines in glew.h, Apple in glext.h. |
51 | 53 | * Due to namespace nightmares, just do it here. |
… |
… |
|
208 | 210 | |
209 | 211 | err = apple_cgl.choose_pixel_format(attr, &pfobj, &vsref); |
210 | 212 | if (kCGLNoError != err) { |
211 | | if (getenv("LIBGL_DIAGNOSTIC")) { |
| 213 | if (env_var_as_boolean("LIBGL_DIAGNOSTIC", false)) { |
212 | 214 | printf("choose_pixel_format error in %s: %s\n", __func__, |
213 | 215 | apple_cgl.error_string(err)); |
214 | 216 | } |
… |
… |
|
220 | 222 | err = apple_cgl.create_context(pfobj, NULL, &newcontext); |
221 | 223 | |
222 | 224 | if (kCGLNoError != err) { |
223 | | if (getenv("LIBGL_DIAGNOSTIC")) { |
| 225 | if (env_var_as_boolean("LIBGL_DIAGNOSTIC", false)) { |
224 | 226 | printf("create_context error in %s: %s\n", __func__, |
225 | 227 | apple_cgl.error_string(err)); |
226 | 228 | } |
diff -ur /opt/SnowLeopardPorts/x11/mesa/work/mesa-17.1.6/src/glx/apple/apple_visual.c /opt/macports-ports/x11/mesa/work/mesa-18.3.6/src/glx/apple/apple_visual.c
old
|
new
|
|
32 | 32 | #include <stdlib.h> |
33 | 33 | #include <assert.h> |
34 | 34 | #include <GL/gl.h> |
| 35 | #include <util/debug.h> |
35 | 36 | |
36 | 37 | /* <rdar://problem/6953344> */ |
37 | 38 | #define glTexImage1D glTexImage1D_OSX |
… |
… |
|
82 | 83 | int numattr = 0; |
83 | 84 | GLint vsref = 0; |
84 | 85 | CGLError error = 0; |
85 | | bool use_core_profile = getenv("LIBGL_PROFILE_CORE"); |
| 86 | bool use_core_profile = env_var_as_boolean("LIBGL_PROFILE_CORE", false); |
86 | 87 | |
87 | 88 | if (offscreen) { |
88 | 89 | apple_glx_diagnostic |
… |
… |
|
90 | 91 | |
91 | 92 | attr[numattr++] = kCGLPFAOffScreen; |
92 | 93 | } |
93 | | else if (getenv("LIBGL_ALWAYS_SOFTWARE") != NULL) { |
| 94 | else if (env_var_as_boolean("LIBGL_ALWAYS_SOFTWARE", false)) { |
94 | 95 | apple_glx_diagnostic |
95 | 96 | ("Software rendering requested. Using kCGLRendererGenericFloatID.\n"); |
96 | 97 | attr[numattr++] = kCGLPFARendererID; |
97 | 98 | attr[numattr++] = kCGLRendererGenericFloatID; |
98 | 99 | } |
99 | | else if (getenv("LIBGL_ALLOW_SOFTWARE") != NULL) { |
| 100 | else if (env_var_as_boolean("LIBGL_ALLOW_SOFTWARE", false)) { |
100 | 101 | apple_glx_diagnostic |
101 | 102 | ("Software rendering is not being excluded. Not using kCGLPFAAccelerated.\n"); |
102 | 103 | } |
… |
… |
|
190 | 191 | |
191 | 192 | if (!*pfobj) { |
192 | 193 | snprintf(__crashreporter_info_buff__, sizeof(__crashreporter_info_buff__), |
193 | | "No matching pixelformats found, perhaps try using LIBGL_ALLOW_SOFTWARE\n"); |
| 194 | "No matching pixelformats found, perhaps try setting LIBGL_ALLOW_SOFTWARE=true\n"); |
194 | 195 | fprintf(stderr, "%s", __crashreporter_info_buff__); |
195 | 196 | abort(); |
196 | 197 | } |
diff -ur /opt/SnowLeopardPorts/x11/mesa/work/mesa-17.1.6/src/glx/apple/glx_empty.c /opt/macports-ports/x11/mesa/work/mesa-18.3.6/src/glx/apple/glx_empty.c
old
|
new
|
|
50 | 50 | |
51 | 51 | |
52 | 52 | /* |
53 | | ** GLX_SGIX_swap_group |
54 | | */ |
55 | | void |
56 | | glXJoinSwapGroupSGIX(Display * dpy, GLXDrawable drawable, GLXDrawable member) |
57 | | { |
58 | | (void) dpy; |
59 | | (void) drawable; |
60 | | (void) member; |
61 | | } |
62 | | |
63 | | |
64 | | /* |
65 | | ** GLX_SGIX_swap_barrier |
66 | | */ |
67 | | void |
68 | | glXBindSwapBarrierSGIX(Display * dpy, GLXDrawable drawable, int barrier) |
69 | | { |
70 | | (void) dpy; |
71 | | (void) drawable; |
72 | | (void) barrier; |
73 | | } |
74 | | |
75 | | Bool |
76 | | glXQueryMaxSwapBarriersSGIX(Display * dpy, int screen, int *max) |
77 | | { |
78 | | (void) dpy; |
79 | | (void) screen; |
80 | | (void) max; |
81 | | return False; |
82 | | } |
83 | | |
84 | | |
85 | | /* |
86 | 53 | ** GLX_OML_sync_control |
87 | 54 | */ |
88 | 55 | Bool |