netpbm-10.31-build.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. - Don't install libnetpbm.a and libnetpbm.so into a sep link dir
  2. - Try to fix parallel building
  3. - Make the libopt tool less 'helpful'
  4. --- lib/Makefile
  5. +++ lib/Makefile
  6. @@ -249,7 +249,7 @@
  7. .PHONY: install.staticlib
  8. install.staticlib: $(PKGDIR)/link
  9. $(INSTALL) -c -m $(INSTALL_PERM_LIBS) libnetpbm.$(STATICLIBSUFFIX) \
  10. - $(PKGDIR)/link
  11. + $(PKGDIR)/lib
  12. # Install a shared library stub -- the ".so" file used at link time to
  13. # prepare a program for dynamically linking a library at run time
  14. @@ -257,9 +257,9 @@
  15. install.sharedlibstub: $(PKGDIR)/link
  16. ifeq ($(NETPBMLIBTYPE),unixshared)
  17. # install the link-time (.so) links to the runtime libraries
  18. - cd $(PKGDIR)/link ; \
  19. + cd $(PKGDIR)/lib ; \
  20. rm -f libnetpbm.$(NETPBMLIBSUFFIX); \
  21. - $(SYMLINK) ../lib/libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ) \
  22. + $(SYMLINK) libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ) \
  23. libnetpbm.$(NETPBMLIBSUFFIX)
  24. endif
  25. ifeq ($(NETPBMLIBTYPE),dll)
  26. --- GNUmakefile
  27. +++ GNUmakefile
  28. @@ -87,6 +87,9 @@
  29. .PHONY: nonmerge
  30. nonmerge: $(PRODUCT_SUBDIRS:%=%/all)
  31. +
  32. +$(PRODUCT_SUBDIRS:%=%/all): buildtools/all
  33. +converter/all analyzer/all editor/all generator/all other/all: lib/all
  34. OMIT_CONFIG_RULE = 1
  35. include $(SRCDIR)/Makefile.common
  36. --- buildtools/libopt.c
  37. +++ buildtools/libopt.c
  38. @@ -502,7 +502,7 @@
  39. strcpy(outputLine, ""); /* initial value */
  40. runtime = FALSE; /* initial value */
  41. - quiet = FALSE; /* initial value */
  42. + quiet = TRUE; /* initial value */
  43. error = FALSE; /* no error yet */
  44. for (arg = 1; arg < argc && !error; arg++) {
  45. if (strcmp(argv[arg], "-runtime") == 0)