1################################################################################ 2# 3# iodine 4# 5################################################################################ 6 7IODINE_VERSION = 0.7.0 8IODINE_SITE = http://code.kryo.se/iodine 9IODINE_DEPENDENCIES = zlib 10IODINE_LICENSE = MIT 11IODINE_LICENSE_FILES = README 12IODINE_CPE_ID_VENDOR = kryo 13IODINE_SELINUX_MODULES = iodine 14 15IODINE_CFLAGS = $(TARGET_CFLAGS) 16 17# iodine contains a local implementation of daemon(3) for older 18# systems, unless __GLIBC__ is defined. Musl does provide it, but 19# unlike uClibc it doesn't define __GLIBC__. Work around it by 20# pretending to be glibc as we otherwise end up with symbol conflicts. 21ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y) 22IODINE_CFLAGS += -D__GLIBC__ 23endif 24 25define IODINE_BUILD_CMDS 26 $(TARGET_CONFIGURE_OPTS) CFLAGS="$(IODINE_CFLAGS)" \ 27 $(MAKE) ARCH=$(BR2_ARCH) -C $(@D) 28endef 29 30define IODINE_INSTALL_TARGET_CMDS 31 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install DESTDIR="$(TARGET_DIR)" prefix=/usr 32endef 33 34$(eval $(generic-package)) 35