01-directories.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff -Nur 4th-3.62.5-unix/sources/Makefile 4th-3.62.5-unix.new/sources/Makefile
  2. --- 4th-3.62.5-unix/sources/Makefile 2015-04-23 07:59:18.000000000 +0200
  3. +++ 4th-3.62.5-unix.new/sources/Makefile 2018-01-27 01:39:36.000000000 +0100
  4. @@ -13,13 +13,13 @@
  5. # The following variables may need to be changed
  6. -LIBRARIES=/usr/lib
  7. -INCLUDES=/usr/include
  8. -BINARIES=/usr/local/bin
  9. -MANDIR=/usr/share/man
  10. -DOCDIR=/usr/share/doc
  11. +LIBRARIES=$(DESTDIR)/usr/lib$(LIBSUFFIX)
  12. +INCLUDES=$(DESTDIR)/usr/include
  13. +BINARIES=$(DESTDIR)/usr/bin
  14. +MANDIR=$(DESTDIR)/usr/man
  15. +DOCDIR=$(DESTDIR)/usr/doc
  16. SOURCES=../4th
  17. -CFLAGS= -DUNIX -fsigned-char -Wall -O3 -s
  18. +CFLAGS=$(CXXFLAGS) -DUNIX -fsigned-char -Wall -s
  19. # Cross compilation variables
  20. LD=$(CROSS)ld
  21. @@ -125,7 +125,8 @@
  22. install: mostlyinstall
  23. install -Dm644 ../documentation/4th.1 $(MANDIR)/man1/4th.1
  24. - install -Dm644 ../documentation/4tHmanual.txt $(DOCDIR)/4th/
  25. + install -Dm644 ../documentation/4tHmanual.txt $(DOCDIR)/4th-3.62.5/
  26. + install -Dm644 ../sources/4th.h $(INCLUDES)/4th.h
  27. uninstall:
  28. -rm -f $(LIBRARIES)/lib4th.{a,so*}