1
0
forked from rpms/mesa
mesa/SOURCES/Makefile

24 lines
525 B
Makefile
Raw Normal View History

2021-10-05 14:00:43 +00:00
VERSION ?= 21.1.5
2019-08-02 12:45:18 +00:00
SANITIZE ?= 1
DIRNAME = mesa-${VERSION}
all: archive
clean:
rm -rf $(DIRNAME)/
rm -f mesa-${VERSION}.tar.xz
clone: clean
2020-07-28 12:25:02 +00:00
curl -O https://archive.mesa3d.org/mesa-${VERSION}.tar.xz
2019-08-02 12:45:18 +00:00
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 caf ${DIRNAME}.tar.xz ${DIRNAME}