[vlc-commits] Contribs: add openjpeg

Jean-Baptiste Kempf git at videolan.org
Thu Sep 15 13:20:58 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Sep 15 13:12:55 2011 +0200| [96d4c7f7d2bfc637d342e271b6b40d1b71686013] | committer: Jean-Baptiste Kempf

Contribs: add openjpeg

This wasn't present in the old contribs

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

 contrib/src/openjpeg/SHA512SUMS       |    1 +
 contrib/src/openjpeg/pkg-config.patch |   11 +++++++++++
 contrib/src/openjpeg/rules.mak        |   20 ++++++++++++++++++++
 3 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/contrib/src/openjpeg/SHA512SUMS b/contrib/src/openjpeg/SHA512SUMS
new file mode 100644
index 0000000..d5a4716
--- /dev/null
+++ b/contrib/src/openjpeg/SHA512SUMS
@@ -0,0 +1 @@
+3b7e07f9c41b007b45e607806073a42ee736d1fea7ab4286ed5046710adac910f656e5b40b420849852100b0fa1fd241597be90e0b2eb58e336fb73b757e1417  openjpeg_v1_4_sources_r697.tgz
diff --git a/contrib/src/openjpeg/pkg-config.patch b/contrib/src/openjpeg/pkg-config.patch
new file mode 100644
index 0000000..573fbd8
--- /dev/null
+++ b/contrib/src/openjpeg/pkg-config.patch
@@ -0,0 +1,11 @@
+--- openjpeg/Makefile.am	2011-01-02 19:14:55.000000000 +0100
++++ openjpeg.new/Makefile.am	2011-09-15 13:07:38.002469677 +0200
+@@ -9,7 +9,7 @@
+ 
+ distclean-local: clean-local
+ 
+-pkgconf_dir = /usr/lib/pkgconfig
++pkgconf_dir = $(libdir)/pkgconfig
+ 
+ install-data-hook:
+ 	@echo ""
diff --git a/contrib/src/openjpeg/rules.mak b/contrib/src/openjpeg/rules.mak
new file mode 100644
index 0000000..7c56948
--- /dev/null
+++ b/contrib/src/openjpeg/rules.mak
@@ -0,0 +1,20 @@
+# jpeg
+
+OPENJPEG_VERSION := 1_4_sources_r697
+OPENJPEG_URL := http://openjpeg.googlecode.com/files/openjpeg_v$(OPENJPEG_VERSION).tgz
+
+$(TARBALLS)/openjpeg_v$(OPENJPEG_VERSION).tgz:
+	$(call download,$(OPENJPEG_URL))
+
+.sum-openjpeg: openjpeg_v$(OPENJPEG_VERSION).tgz
+
+openjpeg: openjpeg_v$(OPENJPEG_VERSION).tgz .sum-openjpeg
+	$(UNPACK)
+	$(APPLY) $(SRC)/openjpeg/pkg-config.patch
+	$(MOVE)
+
+.openjpeg: openjpeg
+	$(RECONF)
+	cd $< && $(HOSTVARS) ./configure --enable-png=no --enable-tiff=no $(HOSTCONF)
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list