b300a1ed85
zic needs CC defined since version bump to 2024a, and upstream commit
c3ebd8e98846 (make Makefile more compatible with POSIX).
Use HOST_CONFIGURE_OPTS which contains the appropriate host CC setting,
as well as our host CFLAGS and LDFLAGS.
Fixes:
c99 -O1 -c -o zic.o zic.c
make[2]: c99: No such file or directory
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
[yann.morin.1998@free.fr: reword commit log, refer to upstream commit]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 9139159d39
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
26 lines
690 B
Makefile
26 lines
690 B
Makefile
################################################################################
|
|
#
|
|
# zic
|
|
#
|
|
################################################################################
|
|
|
|
ZIC_VERSION = 2024a
|
|
ZIC_SOURCE = tzcode$(ZIC_VERSION).tar.gz
|
|
ZIC_SITE = https://www.iana.org/time-zones/repository/releases
|
|
ZIC_STRIP_COMPONENTS = 0
|
|
ZIC_LICENSE = Public domain
|
|
ZIC_LICENSE_FILES = LICENSE
|
|
|
|
define HOST_ZIC_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) zic
|
|
endef
|
|
|
|
define HOST_ZIC_INSTALL_CMDS
|
|
$(INSTALL) -D -m 755 $(@D)/zic $(HOST_DIR)/sbin/zic
|
|
$(INSTALL) -D -m 644 $(@D)/tzfile.h $(HOST_DIR)/include/tzfile.h
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|
|
|
|
ZIC = $(HOST_DIR)/sbin/zic
|