43abc0a1e5
Sunwait calculates sunrise or sunset times with civil, nautical, astronomical and custom twilights. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> [Thomas: - add dependency on C++ - improve the build logic to pass cflags/ldflags properly] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
27 lines
708 B
Makefile
27 lines
708 B
Makefile
################################################################################
|
|
#
|
|
# sunwait
|
|
#
|
|
################################################################################
|
|
|
|
SUNWAIT_VERSION = 7326b53e5406c7ebd552ae6dc0fc659252a18e7f
|
|
SUNWAIT_SITE = $(call github,risacher,sunwait,$(SUNWAIT_VERSION))
|
|
SUNWAIT_LICENSE = GPL-3.0
|
|
SUNWAIT_LICENSE_FILES = LICENSE
|
|
|
|
SUNWAIT_MAKE_OPTS = \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
C=$(TARGET_CXX) \
|
|
CFLAGS="$(TARGET_CFLAGS) -c" \
|
|
LDFLAGS="$(TARGET_LDFLAGS) -lm"
|
|
|
|
define SUNWAIT_BUILD_CMDS
|
|
$(MAKE) $(SUNWAIT_MAKE_OPTS) -C $(@D) all
|
|
endef
|
|
|
|
define SUNWAIT_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/sunwait $(TARGET_DIR)/usr/bin/sunwait
|
|
endef
|
|
|
|
$(eval $(generic-package))
|