2016-12-19 22:29:12 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# s6-rc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-10-23 21:52:03 +02:00
|
|
|
S6_RC_VERSION = 0.3.0.0
|
2016-12-19 22:29:12 +01:00
|
|
|
S6_RC_SITE = http://skarnet.org/software/s6-rc
|
|
|
|
S6_RC_LICENSE = ISC
|
|
|
|
S6_RC_LICENSE_FILES = COPYING
|
|
|
|
S6_RC_INSTALL_STAGING = YES
|
|
|
|
S6_RC_DEPENDENCIES = s6
|
|
|
|
|
|
|
|
S6_RC_CONF_OPTS = \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-sysdeps=$(STAGING_DIR)/usr/lib/skalibs/sysdeps \
|
|
|
|
--with-include=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-dynlib=$(STAGING_DIR)/usr/lib \
|
|
|
|
--with-lib=$(STAGING_DIR)/usr/lib/execline \
|
|
|
|
--with-lib=$(STAGING_DIR)/usr/lib/s6 \
|
|
|
|
--with-lib=$(STAGING_DIR)/usr/lib/skalibs \
|
|
|
|
$(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
|
|
|
|
$(SHARED_STATIC_LIBS_OPTS)
|
|
|
|
|
|
|
|
define S6_RC_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(S6_RC_CONF_OPTS))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define S6_RC_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define S6_RC_REMOVE_STATIC_LIB_DIR
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/s6-rc
|
|
|
|
endef
|
|
|
|
|
|
|
|
S6_RC_POST_INSTALL_TARGET_HOOKS += S6_RC_REMOVE_STATIC_LIB_DIR
|
|
|
|
|
|
|
|
define S6_RC_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define S6_RC_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
HOST_S6_RC_DEPENDENCIES = host-s6
|
|
|
|
|
|
|
|
HOST_S6_RC_CONF_OPTS = \
|
2017-07-05 13:14:18 +02:00
|
|
|
--prefix=$(HOST_DIR) \
|
2016-12-19 22:29:12 +01:00
|
|
|
--libexecdir=/usr/libexec \
|
2017-07-05 13:14:21 +02:00
|
|
|
--with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
|
2017-07-05 13:14:22 +02:00
|
|
|
--with-include=$(HOST_DIR)/include \
|
2017-07-05 13:14:21 +02:00
|
|
|
--with-dynlib=$(HOST_DIR)/lib \
|
2016-12-19 22:29:12 +01:00
|
|
|
--disable-static \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-allstatic
|
|
|
|
|
|
|
|
define HOST_S6_RC_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure $(HOST_S6_RC_CONF_OPTS))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_S6_RC_BUILD_CMDS
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_S6_RC_INSTALL_CMDS
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install-dynlib install-bin
|
2017-07-05 13:14:19 +02:00
|
|
|
rm -f $(HOST_DIR)/bin/s6-rc-dryrun
|
2016-12-19 22:29:12 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|
|
|
|
$(eval $(host-generic-package))
|