mesa/Makefile
Igor Gnatenko a9b186ccff Update to 17.3.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-01 22:27:35 +01:00

23 lines
534 B
Makefile

VERSION ?= 17.3.1
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
tar cf ${DIRNAME}.tar.xz ${DIRNAME}