summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-08 20:00:05 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-08 20:00:05 (GMT)
commit4853b650d534b19caaab606a05183dc5847fb741 (patch)
tree1d2e7a74ef13e8a67d7bb433cd2ceac8e32957a9
parenta9c2d7f97b26eb1ca6b70301433210eac81d76b0 (diff)
downloadmxe-4853b650d534b19caaab606a05183dc5847fb741.zip
mxe-4853b650d534b19caaab606a05183dc5847fb741.tar.gz
mxe-4853b650d534b19caaab606a05183dc5847fb741.tar.bz2
translated package: libpng
-rw-r--r--src/libpng.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/libpng.mk b/src/libpng.mk
new file mode 100644
index 0000000..d1f5ead
--- /dev/null
+++ b/src/libpng.mk
@@ -0,0 +1,24 @@
+# libpng
+# http://www.libpng.org/
+
+PKG := libpng
+$(PKG)_VERSION := 1.2.25
+$(PKG)_SUBDIR := libpng-$($(PKG)_VERSION)
+$(PKG)_FILE := libpng-$($(PKG)_VERSION).tar.bz2
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libpng/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=5624&package_id=5683' | \
+ grep 'libpng-' | \
+ $(SED) -n 's,.*libpng-\([0-9][^>]*\)-no-config\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef