kumquat-buildroot/package/htpdate/htpdate.mk
Titouan Christophe 87dd18da54 package/htpdate: fix build with static openssl
Depending on its build configuration, openssl might not be compiled with
dynamic zlib support, and programs that link against openssl need to link
against zlib as well.

This can be generally and easily handled using the pkg-config files
installed by openssl.

Fixes: http://autobuild.buildroot.net/results/ae9/ae946ca72238840b3eaa5fe823e8d620618f7462/

Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-09-13 21:39:31 +02:00

36 lines
985 B
Makefile

################################################################################
#
# htpdate
#
################################################################################
HTPDATE_VERSION = 1.2.4
HTPDATE_SITE = $(call github,angeloc,htpdate,v$(HTPDATE_VERSION))
HTPDATE_LICENSE = GPL-2.0+
HTPDATE_LICENSE_FILES = LICENSE
ifeq ($(BR2_PACKAGE_OPENSSL),y)
HTPDATE_BUILD_OPTS = ENABLE_HTTPS=1
HTPDATE_DEPENDENCIES += openssl host-pkgconf
endif
define HTPDATE_BUILD_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(HTPDATE_BUILD_OPTS)
endef
define HTPDATE_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
endef
define HTPDATE_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/htpdate/S43htpdate \
$(TARGET_DIR)/etc/init.d/S43htpdate
endef
define HTPDATE_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 0644 package/htpdate/htpdate.service \
$(TARGET_DIR)/usr/lib/systemd/system/htpdate.service
endef
$(eval $(generic-package))