buildroot/package/sunwait/sunwait.mk
Angelo Compagnucci 43abc0a1e5 package/sunwait: new package
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>
2019-10-21 23:33:59 +02:00

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))