Files
MSYS2-packages/tzcode/tzcode-makefile.patch
David Macek 310f430905 Clean up /usr/sbin and /usr/etc
Affected recipes: cyrus-sasl, filesystem, gdb, heimdal, tar, tzcode, util-linux

Also:
- add missing dependencies to gdb
- re-format filesystem PKGBUILD slightly
2015-03-07 17:07:25 +01:00

73 lines
1.9 KiB
Diff

--- src/Makefile.orig 2014-08-29 04:32:04.000000000 +0900
+++ src/Makefile 2014-09-09 12:55:02.881446900 +0900
@@ -19,7 +19,7 @@
# make zonenames
# to get a list of the values you can use for LOCALTIME.
-LOCALTIME= GMT
+LOCALTIME= Europe/Berlin
# If you want something other than Eastern United States time as a template
# for handling POSIX-style time zone environment variables,
@@ -44,21 +44,21 @@
# Everything gets put in subdirectories of. . .
-TOPDIR= /usr/local
+TOPDIR= /usr
# "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.
TZDIR_BASENAME= zoneinfo
-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME)
+TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME)
# 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
# The "tzselect", "zic", and "zdump" commands get installed in. . .
-ETCDIR= $(TOPDIR)/etc
+ETCDIR= $(TOPDIR)/bin
# If you "make INSTALL", the "date" command gets installed in. . .
@@ -66,7 +66,7 @@
# Manual pages go in subdirectories of. . .
-MANDIR= $(TOPDIR)/man
+MANDIR= $(TOPDIR)/share/man
# Library functions are put in an archive in LIBDIR.
@@ -233,7 +233,7 @@
# before the first Monday in January when a "%V" format is used and January 1
# falls on a Friday, Saturday, or Sunday.
-CFLAGS=
+CFLAGS+= -DHAVE_ADJTIME=0
# Linker flags. Default to $(LFLAGS) for backwards compatibility
# to tzcode2012h and earlier.
@@ -246,7 +246,7 @@
ZFLAGS=
# The name of a Posix-compliant 'awk' on your system.
-AWK= awk
+AWK= gawk
# The full path name of a Posix-compliant shell, preferably one that supports
# the Korn shell's 'select' statement as an extension.
@@ -321,7 +321,7 @@
###############################################################################
-cc= cc
+cc= gcc
CC= $(cc) -DTZDIR=\"$(TZDIR)\"
AR= ar