timezone-data-2016a-makefile.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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,10 @@ GZIPFLAGS= -9n
  31. #MAKE= make
  32. -cc= cc
  33. -CC= $(cc) -DTZDIR=\"$(TZDIR)\"
  34. +CPPFLAGS+= -DTZDIR=\"$(TZDIR)\"
  35. +ifeq ($(NLS),1)
  36. +CPPFLAGS+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
  37. +endif
  38. AR= ar
  39. @@ -352,16 +354,12 @@ ALL: all date
  40. install: all $(DATA) $(REDO) $(MANS)
  41. mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
  42. - $(DESTDIR)$(LIBDIR) \
  43. + $(DESTDIR)$(BINDIR) \
  44. $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
  45. $(DESTDIR)$(MANDIR)/man8
  46. $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES)
  47. cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
  48. - cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
  49. + cp tzselect zic zdump $(DESTDIR)$(BINDIR)/.
  50. - cp libtz.a $(DESTDIR)$(LIBDIR)/.
  51. - $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
  52. cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
  53. - cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
  54. - cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
  55. INSTALL: ALL install date.1
  56. mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
  57. @@ -440,7 +438,7 @@ tzselect: tzselect.ksh
  58. chmod +x $@
  59. check: check_character_set check_white_space check_links check_sorted \
  60. - check_tables check_web
  61. + check_tables
  62. check_character_set: $(ENCHILADA)
  63. LC_ALL=en_US.utf8 && export LC_ALL && \