1################################################################################ 2# 3# s6-rc 4# 5################################################################################ 6 7S6_RC_VERSION = 0.5.2.2 8S6_RC_SITE = http://skarnet.org/software/s6-rc 9S6_RC_LICENSE = ISC 10S6_RC_LICENSE_FILES = COPYING 11S6_RC_INSTALL_STAGING = YES 12S6_RC_DEPENDENCIES = s6 13 14S6_RC_CONF_OPTS = \ 15 --prefix=/ \ 16 --with-sysdeps=$(STAGING_DIR)/lib/skalibs/sysdeps \ 17 --with-include=$(STAGING_DIR)/include \ 18 --with-dynlib=$(STAGING_DIR)/lib \ 19 --with-lib=$(STAGING_DIR)/lib/execline \ 20 --with-lib=$(STAGING_DIR)/lib/s6 \ 21 --with-lib=$(STAGING_DIR)/lib/skalibs \ 22 $(if $(BR2_STATIC_LIBS),,--disable-allstatic) \ 23 $(SHARED_STATIC_LIBS_OPTS) 24 25define S6_RC_CONFIGURE_CMDS 26 (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(S6_RC_CONF_OPTS)) 27endef 28 29define S6_RC_BUILD_CMDS 30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) 31endef 32 33define S6_RC_REMOVE_STATIC_LIB_DIR 34 rm -rf $(TARGET_DIR)/usr/lib/s6-rc 35endef 36 37S6_RC_POST_INSTALL_TARGET_HOOKS += S6_RC_REMOVE_STATIC_LIB_DIR 38 39define S6_RC_INSTALL_TARGET_CMDS 40 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install 41endef 42 43define S6_RC_INSTALL_STAGING_CMDS 44 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install 45endef 46 47HOST_S6_RC_DEPENDENCIES = host-s6 48 49HOST_S6_RC_CONF_OPTS = \ 50 --prefix=$(HOST_DIR) \ 51 --libexecdir=/usr/libexec \ 52 --with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \ 53 --with-include=$(HOST_DIR)/include \ 54 --with-dynlib=$(HOST_DIR)/lib \ 55 --disable-static \ 56 --enable-shared \ 57 --disable-allstatic 58 59define HOST_S6_RC_CONFIGURE_CMDS 60 (cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure $(HOST_S6_RC_CONF_OPTS)) 61endef 62 63define HOST_S6_RC_BUILD_CMDS 64 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) 65endef 66 67define HOST_S6_RC_INSTALL_CMDS 68 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) install-dynlib install-bin 69 rm -f $(HOST_DIR)/bin/s6-rc-dryrun 70endef 71 72$(eval $(generic-package)) 73$(eval $(host-generic-package)) 74