Skip to content

Instantly share code, notes, and snippets.

@ladislas
Created December 30, 2013 14:58
Show Gist options
  • Save ladislas/8183035 to your computer and use it in GitHub Desktop.
Save ladislas/8183035 to your computer and use it in GitHub Desktop.
zlib-1.2.5.patch
diff --git a/Makefile.in b/Makefile.in
index 5b15bd0..6817b94 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -167,8 +167,12 @@ install-libs: $(LIBS)
-@if [ ! -d $(DESTDIR)$(sharedlibdir) ]; then mkdir -p $(DESTDIR)$(sharedlibdir); fi
-@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)
+ if [ "x$(STATICLIB)" != "x" ] && [ -e $(STATICLIB) ] ; then \
+ cp $(STATICLIB) $(DESTDIR)$(libdir) ; \
+ fi
+ if [ "x$(SHAREDLIBV)" != "x" ] && [ -e $(SHAREDLIBV) ] ; then \
+ cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir) ; \
+ fi
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 \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment