shithub: openh264

Download patch

ref: 0110e5df555b3580a0d4ba6c84538bf7f07b0739
parent: 4edc5f60a11216729cfc099e500186a0198e2635
parent: 17c14d44e202aa63344875d9e36372a1f462c9ca
author: ruil2 <[email protected]>
date: Thu Jul 10 05:33:19 EDT 2014

Merge pull request #1137 from ethanhugg/gmpapi-bybranch32

Pull gmp-api by branch name

--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@
 OBJ=o
 PROJECT_NAME=openh264
 MODULE_NAME=gmpopenh264
+GMP_API_BRANCH=Firefox32
 CCASFLAGS=$(CFLAGS)
 
 ifeq (,$(wildcard ./gmp-api))
@@ -122,7 +123,8 @@
 	$(QUIET)rm -f $(OBJS) $(OBJS:.$(OBJ)=.d) $(LIBRARIES) $(BINARIES)
 
 gmp-bootstrap:
-	git clone https://github.com/mozilla/gmp-api gmp-api
+	if [ ! -d gmp-api ] ; then git clone https://github.com/mozilla/gmp-api gmp-api ; fi
+	cd gmp-api && git fetch origin && git checkout $(GMP_API_BRANCH)
 
 gtest-bootstrap:
 	svn co https://googletest.googlecode.com/svn/trunk/ gtest