shithub: openh264

Download patch

ref: 9ed902a8d7b6f936a6abd9aab79bb132407abe6a
parent: 3a42ae54cfc5bb28b57f68292fe695a9adb1fecd
author: Martin Storsjö <martin@martin.st>
date: Thu May 28 20:10:45 EDT 2015

Use vpath instead of explicit $(SRC_PATH) for building .pc files out of tree

--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@
 vpath %.asm $(SRC_PATH)
 vpath %.S $(SRC_PATH)
 vpath %.rc $(SRC_PATH)
+vpath %.pc.in $(SRC_PATH)
 
 OS=$(shell uname | tr A-Z a-z | tr -d \\-[:digit:].)
 ARCH=$(shell uname -m)
@@ -241,10 +242,10 @@
 	$(QUIET)ln -sfn $+ $@
 endif
 
-$(PROJECT_NAME).pc: $(SRC_PATH)/$(PROJECT_NAME).pc.in
+$(PROJECT_NAME).pc: $(PROJECT_NAME).pc.in
 	@sed -e 's;@prefix@;$(PREFIX);' -e 's;@VERSION@;$(VERSION);' -e 's;@LIBS@;;' -e 's;@LIBS_PRIVATE@;$(STATIC_LDFLAGS);' < $< > $@
 
-$(PROJECT_NAME)-static.pc: $(SRC_PATH)/$(PROJECT_NAME).pc.in
+$(PROJECT_NAME)-static.pc: $(PROJECT_NAME).pc.in
 	@sed -e 's;@prefix@;$(PREFIX);' -e 's;@VERSION@;$(VERSION);' -e 's;@LIBS@;$(STATIC_LDFLAGS);' -e 's;@LIBS_PRIVATE@;;' < $< > $@
 
 install-headers: