2018-09-08 11:00:17 +00:00
|
|
|
VERSION ?= 18.2.0
|
2017-11-10 17:14:35 +00:00
|
|
|
SANITIZE ?= 1
|
|
|
|
|
|
|
|
DIRNAME = mesa-${VERSION}
|
|
|
|
|
|
|
|
all: archive
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(DIRNAME)/
|
|
|
|
rm -f mesa-${VERSION}.tar.xz
|
|
|
|
|
|
|
|
clone: clean
|
|
|
|
curl -O https://mesa.freedesktop.org/archive/mesa-${VERSION}.tar.xz
|
|
|
|
tar xf mesa-${VERSION}.tar.xz
|
|
|
|
|
|
|
|
sanitize: clone vl_mpeg12_decoder.c vl_decoder.c
|
|
|
|
ifdef SANITIZE
|
|
|
|
cat < vl_mpeg12_decoder.c > $(DIRNAME)/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
|
|
|
|
cat < vl_decoder.c > $(DIRNAME)/src/gallium/auxiliary/vl/vl_decoder.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
archive: clone sanitize
|
2018-01-01 21:27:43 +00:00
|
|
|
tar caf ${DIRNAME}.tar.xz ${DIRNAME}
|