2013-09-28 10:39:49 +02:00
|
|
|
# http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/files/2013f-makefile.patch
|
|
|
|
# added some fixes for the file-layout (jue)
|
|
|
|
#
|
|
|
|
# - Support env CC
|
|
|
|
# - Don't build/install libtz.a
|
|
|
|
# - Don't install man-pages provided by man-pages
|
|
|
|
# - Move zic, zdump to sbin and tzselect to bin ala glibc
|
|
|
|
# - Install posix zoneinfo into zoneinfo/posix/ instead of zoneinfo-posix/ ala glibc
|
|
|
|
# - Install leaps zoneinfo into zoneinfo/right/ ala glibc
|
|
|
|
|
|
|
|
|
2015-06-15 16:50:35 +02:00
|
|
|
diff -Nru tzcode.org/Makefile tzcode/Makefile
|
|
|
|
--- tzcode.org/Makefile 2015-06-15 12:23:54.796056136 +0200
|
|
|
|
+++ tzcode/Makefile 2015-06-15 12:24:08.705558291 +0200
|
2014-08-16 13:37:29 +02:00
|
|
|
@@ -44,21 +44,21 @@
|
2012-08-08 09:53:29 +02:00
|
|
|
|
|
|
|
# Everything gets put in subdirectories of. . .
|
|
|
|
|
|
|
|
-TOPDIR= /usr/local
|
2013-09-28 10:39:49 +02:00
|
|
|
+TOPDIR= /usr
|
2012-08-08 09:53:29 +02:00
|
|
|
|
|
|
|
# "Compiled" time zone information is placed in the "TZDIR" directory
|
|
|
|
# (and subdirectories).
|
|
|
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
|
|
|
|
2013-09-28 10:39:49 +02:00
|
|
|
TZDIR_BASENAME= zoneinfo
|
|
|
|
-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
|
|
|
|
+TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
|
2012-08-08 09:53:29 +02:00
|
|
|
|
2013-07-08 16:50:45 +02:00
|
|
|
# Types to try, as an alternative to time_t. int64_t should be first.
|
|
|
|
TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
|
|
|
|
|
2012-08-08 09:53:29 +02:00
|
|
|
# The "tzselect", "zic", and "zdump" commands get installed in. . .
|
|
|
|
|
|
|
|
-ETCDIR= $(TOPDIR)/etc
|
2013-07-08 16:50:45 +02:00
|
|
|
+SBINDIR= $(TOPDIR)/sbin
|
2012-08-08 09:53:29 +02:00
|
|
|
|
|
|
|
# If you "make INSTALL", the "date" command gets installed in. . .
|
|
|
|
|
2015-06-15 16:50:35 +02:00
|
|
|
@@ -326,8 +326,10 @@
|
2012-08-08 09:53:29 +02:00
|
|
|
|
2015-06-15 16:50:35 +02:00
|
|
|
#MAKE= make
|
2012-08-08 09:53:29 +02:00
|
|
|
|
|
|
|
-cc= cc
|
|
|
|
-CC= $(cc) -DTZDIR=\"$(TZDIR)\"
|
2013-09-28 10:39:49 +02:00
|
|
|
+CC+= -DTZDIR=\"$(TZDIR)\"
|
2012-08-08 09:53:29 +02:00
|
|
|
+ifeq ($(NLS),1)
|
2013-09-28 10:39:49 +02:00
|
|
|
+CC+= -DHAVE_GETTEXT=1 -DTZ_DOMAIN=\"libc\"
|
2012-08-08 09:53:29 +02:00
|
|
|
+endif
|
|
|
|
|
2013-10-27 08:50:33 +01:00
|
|
|
AR= ar
|
2012-08-08 09:53:29 +02:00
|
|
|
|
2015-06-15 16:50:35 +02:00
|
|
|
@@ -377,19 +379,18 @@
|
|
|
|
ALL: all date $(ENCHILADA)
|
2012-08-08 09:53:29 +02:00
|
|
|
|
2013-10-27 08:50:33 +01:00
|
|
|
install: all $(DATA) $(REDO) $(MANS)
|
|
|
|
- mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
|
|
|
|
- $(DESTDIR)$(LIBDIR) \
|
|
|
|
+ mkdir -p $(DESTDIR)$(SBINDIR) $(DESTDIR)$(TZDIR) \
|
|
|
|
+ $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR) \
|
|
|
|
$(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
|
|
|
|
$(DESTDIR)$(MANDIR)/man8
|
2012-08-08 09:53:29 +02:00
|
|
|
$(ZIC) -y $(YEARISTYPE) \
|
2013-09-28 10:39:49 +02:00
|
|
|
-d $(DESTDIR)$(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
|
2014-08-16 13:37:29 +02:00
|
|
|
cp -f iso3166.tab $(ZONETABLES) $(DESTDIR)$(TZDIR)/.
|
2013-09-28 10:39:49 +02:00
|
|
|
- cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
|
|
|
|
+ cp zic zdump $(DESTDIR)$(SBINDIR)/.
|
|
|
|
+ cp tzselect $(DESTDIR)$(BINDIR)/.
|
2013-10-27 08:50:33 +01:00
|
|
|
cp libtz.a $(DESTDIR)$(LIBDIR)/.
|
|
|
|
$(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
|
|
|
|
cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
|
|
|
|
- cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
|
|
|
|
- cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
|
2012-08-08 09:53:29 +02:00
|
|
|
|
|
|
|
INSTALL: ALL install date.1
|
2013-10-27 08:50:33 +01:00
|
|
|
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
2015-06-15 16:50:35 +02:00
|
|
|
@@ -432,19 +433,17 @@
|
2012-08-08 09:53:29 +02:00
|
|
|
# You must replace all of $(TZDIR) to switch from not using leap seconds
|
|
|
|
# to using them, or vice versa.
|
2013-09-28 10:39:49 +02:00
|
|
|
right_posix: right_only leapseconds
|
|
|
|
- rm -fr $(DESTDIR)$(TZDIR)-leaps
|
|
|
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \
|
|
|
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
|
|
|
+ rm -fr $(DESTDIR)$(TZDIR)/right
|
|
|
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
|
|
|
-L leapseconds $(TDATA)
|
|
|
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
|
|
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
|
|
|
-L /dev/null $(TDATA)
|
|
|
|
|
|
|
|
posix_right: posix_only leapseconds
|
|
|
|
rm -fr $(DESTDIR)$(TZDIR)-posix
|
|
|
|
- ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \
|
|
|
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-posix \
|
|
|
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix \
|
|
|
|
-L /dev/null $(TDATA)
|
|
|
|
- $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)-leaps \
|
|
|
|
+ $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/right \
|
|
|
|
-L leapseconds $(TDATA)
|
|
|
|
|
2014-09-01 11:20:48 +02:00
|
|
|
posix_packrat: posix_only backzone
|
2015-06-15 16:50:35 +02:00
|
|
|
@@ -473,7 +472,7 @@
|
2012-08-08 09:53:29 +02:00
|
|
|
chmod +x $@
|
|
|
|
|
2015-01-31 17:42:14 +01:00
|
|
|
check: check_character_set check_white_space check_links check_sorted \
|
2014-09-27 11:47:54 +02:00
|
|
|
- check_tables check_web
|
|
|
|
+ check_tables
|
2012-08-08 09:53:29 +02:00
|
|
|
|
2013-03-03 13:11:58 +01:00
|
|
|
check_character_set: $(ENCHILADA)
|
2014-08-16 13:37:29 +02:00
|
|
|
LC_ALL=en_US.utf8 && export LC_ALL && \
|