Ticket #26379: patch-mesa-MP26379.diff

File patch-mesa-MP26379.diff, 1.8 KB (added by kimuraw (kimura wataru), 14 years ago)

use `/usr/bin/python' in building

  • mesa/files/patch-src-gallium-auxiliary-Makefile.diff

     
     1--- Mesa-7.8.2/src/gallium/auxiliary/Makefile.orig      2010-09-28 19:56:02.000000000 +0900
     2+++ Mesa-7.8.2/src/gallium/auxiliary/Makefile   2010-09-28 19:57:13.000000000 +0900
     3@@ -2,6 +2,8 @@
     4 include $(TOP)/configs/current
     5 
     6 LIBNAME = gallium
     7+# https://trac.macports.org/ticket/26379
     8+PYTHON = /usr/bin/python
     9 
     10 C_SOURCES = \
     11        cso_cache/cso_context.c \
     12@@ -183,17 +185,17 @@
     13 
     14 
     15 indices/u_indices_gen.c: indices/u_indices_gen.py
     16-       python $< > $@
     17+       $(PYTHON) $< > $@
     18 
     19 indices/u_unfilled_gen.c: indices/u_unfilled_gen.py
     20-       python $< > $@
     21+       $(PYTHON) $< > $@
     22 
     23 util/u_format_table.c: util/u_format_table.py util/u_format_parse.py util/u_format.csv
     24-       python util/u_format_table.py util/u_format.csv > $@
     25+       $(PYTHON) util/u_format_table.py util/u_format.csv > $@
     26 
     27 util/u_format_pack.h: util/u_format_pack.py util/u_format_parse.py util/u_format.csv
     28-       python util/u_format_pack.py util/u_format.csv > $@
     29+       $(PYTHON) util/u_format_pack.py util/u_format.csv > $@
     30 
     31 util/u_format_access.c: util/u_format_access.py util/u_format_parse.py util/u_format.csv
     32-       python util/u_format_access.py util/u_format.csv > $@
     33+       $(PYTHON) util/u_format_access.py util/u_format.csv > $@
     34 
  • mesa/Portfile

     
    5050
    5151patch.pre_args -p1
    5252patchfiles \
    53         mesa-7.2-drm_headers.patch
     53        mesa-7.2-drm_headers.patch \
     54    patch-src-gallium-auxiliary-Makefile.diff
    5455
    5556build.target default
    5657build.args-append INSTALL_DIR=${prefix}