netpbm-10.76.00-build.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. - Don't install libnetpbm.a and libnetpbm.so into a sep link dir
  2. - Try to fix parallel building
  3. --- a/lib/Makefile
  4. +++ b/lib/Makefile
  5. @@ -249,7 +249,7 @@
  6. .PHONY: install.staticlib
  7. install.staticlib: $(PKGDIR)/link
  8. $(INSTALL) -c -m $(INSTALL_PERM_LIBS) libnetpbm.$(STATICLIBSUFFIX) \
  9. - $(PKGDIR)/link
  10. + $(PKGDIR)/lib
  11. # Install a shared library stub -- the ".so" file used at link time to
  12. # prepare a program for dynamically linking a library at run time
  13. @@ -257,9 +257,9 @@
  14. install.sharedlibstub: $(PKGDIR)/link
  15. ifeq ($(NETPBMLIBTYPE),unixshared)
  16. # install the link-time (.so) links to the runtime libraries
  17. - cd $(PKGDIR)/link ; \
  18. + cd $(PKGDIR)/lib ; \
  19. rm -f libnetpbm.$(NETPBMLIBSUFFIX); \
  20. - $(SYMLINK) ../lib/libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ) \
  21. + $(SYMLINK) libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ) \
  22. libnetpbm.$(NETPBMLIBSUFFIX)
  23. endif
  24. ifeq ($(NETPBMLIBTYPE),dll)
  25. --- a/GNUmakefile
  26. +++ b/GNUmakefile
  27. @@ -87,6 +87,9 @@
  28. .PHONY: nonmerge
  29. nonmerge: $(PRODUCT_SUBDIRS:%=%/all)
  30. +
  31. +$(PRODUCT_SUBDIRS:%=%/all): buildtools/all
  32. +converter/all analyzer/all editor/all generator/all other/all: lib/all
  33. # Parallel make (make --jobs) is not smart enough to coordinate builds
  34. # between submakes, so a naive parallel make would cause certain