summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey <non_2001@mail.ru>2014-08-06 03:02:25 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-06 03:02:56 (GMT)
commit2c1d33f5decf79aa7cb58970815f39e9e11405b8 (patch)
treeef4e2eb39059f6c6cdfa587ba08216c01ef372e0
parent78d6cc3592f5fa90fc15f4a74f6f6c56368eec3b (diff)
downloadmxe-2c1d33f5decf79aa7cb58970815f39e9e11405b8.zip
mxe-2c1d33f5decf79aa7cb58970815f39e9e11405b8.tar.gz
mxe-2c1d33f5decf79aa7cb58970815f39e9e11405b8.tar.bz2
Add package libwebp
See #442 and #445. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r--index.html4
-rw-r--r--src/libwebp.mk24
2 files changed, 28 insertions, 0 deletions
diff --git a/index.html b/index.html
index adc5250..1110647 100644
--- a/index.html
+++ b/index.html
@@ -1782,6 +1782,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="website"><a href="http://code.google.com/p/webm/">vpx</a></td>
</tr>
<tr>
+ <td class="package">libwebp</td>
+ <td class="website"><a href="https://developers.google.com/speed/webp/">libwebp</a></td>
+ </tr>
+ <tr>
<td class="package">libwebsockets</td>
<td class="website"><a href="http://libwebsockets.org/">libwebsockets</a></td>
</tr>
diff --git a/src/libwebp.mk b/src/libwebp.mk
new file mode 100644
index 0000000..4fd4a69
--- /dev/null
+++ b/src/libwebp.mk
@@ -0,0 +1,24 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := libwebp
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 0.4.1
+$(PKG)_CHECKSUM := 6d3a8a0c25ec4e2eb7a04d9e7f52d780a9d6c0ed
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://downloads.webmproject.org/releases/webp/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'https://developers.google.com/speed/webp/download' | \
+ $(SED) -n 's,.*<a href="http://downloads.webmproject.org/releases/webp/libwebp-\([0-9][^"]*\)\.tar.gz">Download</a> |,\1,p' | \
+ $(SORT) -V | \
+ tail -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ $(MXE_CONFIGURE_OPTS)
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS=
+endef \ No newline at end of file