Commit aa6fdc1c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: add zlib

Same, not libav* enabled
parent 76fb6afa
83ce467787903b7e90ece203aaea0be42174b9cf4a9aa16fe3f72925a4993b549d50154dec4cc76b4cb1aa0b7b966118772aca3d73efa0601167256ff7ce7a12 zlib-1.2.5.tar.gz
# ZLIB
ZLIB_VERSION := 1.2.5
ZLIB_URL := $(SF)/libpng/zlib-$(ZLIB_VERSION).tar.gz
PKGS += zlib
$(TARBALLS)/zlib-$(ZLIB_VERSION).tar.gz:
$(call download,$(ZLIB_URL))
.sum-zlib: zlib-$(ZLIB_VERSION).tar.gz
zlib: zlib-$(ZLIB_VERSION).tar.gz .sum-zlib
$(UNPACK)
$(APPLY) $(SRC)/zlib/zlib-wince.patch
$(APPLY) $(SRC)/zlib/zlib-static.patch
$(MOVE)
.zlib: zlib
#$(RECONF)
cd $< && $(HOSTVARS) ./configure --prefix=$(PREFIX) --static
cd $< && $(MAKE) install
touch $@
--- zlib/Makefile.in 2010-04-20 06:12:21.000000000 +0200
+++ zlib.new/Makefile.in 2010-06-08 14:02:43.000000000 +0200
@@ -168,7 +168,7 @@
-@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi
-@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi
cp $(STATICLIB) $(DESTDIR)$(libdir)
- cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)
+ cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir) || true >/dev/null 2>&1
cd $(DESTDIR)$(libdir); chmod u=rw,go=r $(STATICLIB)
-@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
-@cd $(DESTDIR)$(sharedlibdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \
--- zlib/zutil.h 2010-04-18 21:29:24.000000000 +0200
+++ zlib.new/zutil.h 2010-06-08 13:53:03.000000000 +0200
@@ -153,6 +153,10 @@
# endif
#endif
+#if defined(_WIN32_WCE)
+# define fdopen(fd,mode) NULL /* No fdopen() */
+#endif
+
#if defined(__BORLANDC__)
#pragma warn -8004
#pragma warn -8008
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment