diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 17:28:56 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 17:28:56 (GMT) |
commit | 97b99df398aba9048dbf4552dbb8730e39d2cdee (patch) | |
tree | 19fd2ab77ad4e9749fb2f6853352fd2101aa6503 | |
parent | 53ce85aa061e331e42567a4fc002f0b84fab639b (diff) | |
download | mxe-97b99df398aba9048dbf4552dbb8730e39d2cdee.zip mxe-97b99df398aba9048dbf4552dbb8730e39d2cdee.tar.gz mxe-97b99df398aba9048dbf4552dbb8730e39d2cdee.tar.bz2 |
translated package: zlib
-rw-r--r-- | src/zlib.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/zlib.mk b/src/zlib.mk new file mode 100644 index 0000000..7e3a990 --- /dev/null +++ b/src/zlib.mk @@ -0,0 +1,22 @@ +# zlib +# http://www.zlib.net/ + +PKG := zlib +$(PKG)_VERSION := 1.2.3 +$(PKG)_SUBDIR := zlib-$($(PKG)_VERSION) +$(PKG)_FILE := zlib-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/libpng/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=5624&package_id=14274' | \ + grep 'zlib-' | \ + $(SED) -n 's,.*zlib-\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(2)' && CC='$(TARGET)-gcc' RANLIB='$(TARGET)-ranlib' ./configure \ + --prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(2)' -j '$(JOBS)' install +endef |