mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-25 01:45:29 +00:00
a3f576ae07
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
23 lines
539 B
Makefile
23 lines
539 B
Makefile
VERSION ?= 19.0.0-rc1
|
|
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 caf ${DIRNAME}.tar.xz ${DIRNAME}
|