[vlc-commits] contrib: add bpg

Tristan Matthews git at videolan.org
Thu Jan 8 17:57:49 CET 2015


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Tue Jan  6 00:51:57 2015 +0000| [afbb16c02ffeda947fafda4be93e1100e9e47668] | committer: Tristan Matthews

contrib: add bpg

Currently libbpg is only available as a static library.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=afbb16c02ffeda947fafda4be93e1100e9e47668
---

 contrib/src/bpg/SHA512SUMS |    1 +
 contrib/src/bpg/pic.patch  |   11 +++++++++++
 contrib/src/bpg/rules.mak  |   22 ++++++++++++++++++++++
 3 files changed, 34 insertions(+)

diff --git a/contrib/src/bpg/SHA512SUMS b/contrib/src/bpg/SHA512SUMS
new file mode 100644
index 0000000..0746c8c
--- /dev/null
+++ b/contrib/src/bpg/SHA512SUMS
@@ -0,0 +1 @@
+8b97327d7bd9af41e88daa226e8791d797e6ff1ac01fe3ab25e2a64e193d80b51364ff76371dc9b99fa19da2d5d3e9301b5a2fe396b4014601175f5e8d0274ba  libbpg-0.9.4.tar.gz
diff --git a/contrib/src/bpg/pic.patch b/contrib/src/bpg/pic.patch
new file mode 100644
index 0000000..a392b0e
--- /dev/null
+++ b/contrib/src/bpg/pic.patch
@@ -0,0 +1,11 @@
+--- libbpg-0.9.4/Makefile.old	2015-01-07 15:41:29.030598098 -0500
++++ libbpg-0.9.4/Makefile	2015-01-07 15:51:18.146608993 -0500
+@@ -36,7 +36,7 @@
+ 
+ PWD:=$(shell pwd)
+ 
+-CFLAGS:=-Os -Wall -MMD -fno-asynchronous-unwind-tables -fdata-sections -ffunction-sections -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -fomit-frame-pointer
++CFLAGS+=-Os -Wall -MMD -fno-asynchronous-unwind-tables -fdata-sections -ffunction-sections -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -fomit-frame-pointer
+ CFLAGS+=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT
+ CFLAGS+=-I.
+ CFLAGS+=-DCONFIG_BPG_VERSION=\"$(shell cat VERSION)\"
diff --git a/contrib/src/bpg/rules.mak b/contrib/src/bpg/rules.mak
new file mode 100644
index 0000000..8ffb356
--- /dev/null
+++ b/contrib/src/bpg/rules.mak
@@ -0,0 +1,22 @@
+# BPG
+BPG_VERSION := 0.9.4
+BPG_URL := http://bellard.org/bpg/libbpg-$(BPG_VERSION).tar.gz
+
+# default disabled
+# PKGS += bpg
+
+$(TARBALLS)/libbpg-$(BPG_VERSION).tar.gz:
+	$(call download,$(BPG_URL))
+
+.sum-bpg: libbpg-$(BPG_VERSION).tar.gz
+
+bpg: libbpg-$(BPG_VERSION).tar.gz .sum-bpg
+	$(UNPACK)
+	$(APPLY) $(SRC)/bpg/pic.patch
+	$(MOVE)
+
+.bpg: bpg
+	cd $< && $(HOSTVARS_PIC) $(MAKE) libbpg.a
+	mkdir -p $(PREFIX)/include/ && cp $</libbpg.h $(PREFIX)/include/
+	mkdir -p $(PREFIX)/lib/ && cp $</libbpg.a $(PREFIX)/lib/
+	touch $@



More information about the vlc-commits mailing list