You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
525 B
24 lines
525 B
VERSION ?= 23.1.4
|
|
SANITIZE ?= 1
|
|
|
|
DIRNAME = mesa-${VERSION}
|
|
|
|
all: archive
|
|
|
|
clean:
|
|
rm -rf $(DIRNAME)/
|
|
rm -f mesa-${VERSION}.tar.xz
|
|
|
|
clone: clean
|
|
curl -O https://archive.mesa3d.org/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 caf ${DIRNAME}.tar.xz ${DIRNAME}
|