timezone-data-2016g-makefile.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. - Fix up default paths
  2. - Support env CC
  3. - Don't build/install libtz.a
  4. - Don't install man-pages provided by sys-apps/man-pages
  5. - Move tzselect, zic, and zdump to bin
  6. - Do not run network based unittests
  7. --- a/Makefile
  8. +++ b/Makefile
  9. @@ -45,21 +45,21 @@ POSIXRULES= America/New_York
  10. # Everything gets put in subdirectories of. . .
  11. -TOPDIR= /usr/local
  12. +TOPDIR= /usr
  13. # "Compiled" time zone information is placed in the "TZDIR" directory
  14. # (and subdirectories).
  15. # Use an absolute path name for TZDIR unless you're just testing the software.
  16. TZDIR_BASENAME= zoneinfo
  17. -TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
  18. +TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
  19. # Types to try, as an alternative to time_t. int64_t should be first.
  20. TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
  21. # The "tzselect", "zic", and "zdump" commands get installed in. . .
  22. -ETCDIR= $(TOPDIR)/etc
  23. +SBINDIR= $(TOPDIR)/sbin
  24. # If you "make INSTALL", the "date" command gets installed in. . .
  25. @@ -67,7 +67,7 @@ BINDIR= $(TOPDIR)/bin
  26. # Manual pages go in subdirectories of. . .
  27. -MANDIR= $(TOPDIR)/man
  28. +MANDIR= $(TOPDIR)/share/man
  29. # Library functions are put in an archive in LIBDIR.
  30. @@ -298,8 +298,7 @@ GZIPFLAGS= -9n
  31. #MAKE= make
  32. -cc= cc
  33. -CC= $(cc) -DTZDIR=\"$(TZDIR)\"
  34. +CPPFLAGS+= -DTZDIR=\"$(TZDIR)\"
  35. AR= ar
  36. @@ -352,16 +354,12 @@ ALL: all date
  37. install: all $(DATA) $(REDO) $(MANS)
  38. mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
  39. - $(DESTDIR)$(LIBDIR) \
  40. + $(DESTDIR)$(BINDIR) \
  41. $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
  42. $(DESTDIR)$(MANDIR)/man8
  43. $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES)
  44. cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
  45. - cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
  46. + cp tzselect zic zdump $(DESTDIR)$(BINDIR)/.
  47. - cp libtz.a $(DESTDIR)$(LIBDIR)/.
  48. - $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
  49. cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
  50. - cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
  51. - cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
  52. INSTALL: ALL install date.1
  53. mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
  54. @@ -440,7 +438,7 @@ tzselect: tzselect.ksh
  55. chmod +x $@
  56. check: check_character_set check_white_space check_links check_sorted \
  57. - check_tables check_tzs check_web
  58. + check_tables
  59. check_character_set: $(ENCHILADA)
  60. LC_ALL=en_US.utf8 && export LC_ALL && \