1 ################################################################################
5 ################################################################################
8 S6_SITE
= http
://skarnet.org
/software
/s6
10 S6_LICENSE_FILES
= COPYING
11 S6_INSTALL_STAGING
= YES
12 S6_DEPENDENCIES
= execline
16 --with-sysdeps
=$(STAGING_DIR
)/usr
/lib
/skalibs
/sysdeps \
17 --with-include
=$(STAGING_DIR
)/usr
/include \
18 --with-dynlib
=$(STAGING_DIR
)/usr
/lib \
19 --with-lib
=$(STAGING_DIR
)/usr
/lib
/execline \
20 --with-lib
=$(STAGING_DIR
)/usr
/lib
/skalibs \
21 $(if
$(BR2_STATIC_LIBS
),,--disable-allstatic
) \
22 $(SHARED_STATIC_LIBS_OPTS
)
24 define S6_CONFIGURE_CMDS
25 (cd
$(@D
); $(TARGET_CONFIGURE_OPTS
) .
/configure
$(S6_CONF_OPTS
))
29 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
32 define S6_INSTALL_TARGET_CMDS
33 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) DESTDIR
=$(TARGET_DIR
) install
36 define S6_REMOVE_STATIC_LIB_DIR
37 rm -rf
$(TARGET_DIR
)/usr
/lib
/s6
40 S6_POST_INSTALL_TARGET_HOOKS
+= S6_REMOVE_STATIC_LIB_DIR
42 define S6_INSTALL_STAGING_CMDS
43 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) DESTDIR
=$(STAGING_DIR
) install
46 HOST_S6_DEPENDENCIES
= host-execline
49 --prefix=$(HOST_DIR
)/usr \
50 --with-sysdeps
=$(HOST_DIR
)/usr
/lib
/skalibs
/sysdeps \
51 --with-include
=$(HOST_DIR
)/usr
/include \
52 --with-dynlib
=$(HOST_DIR
)/usr
/lib \
57 define HOST_S6_CONFIGURE_CMDS
58 (cd
$(@D
); $(HOST_CONFIGURE_OPTS
) .
/configure
$(HOST_S6_CONF_OPTS
))
61 define HOST_S6_BUILD_CMDS
62 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
)
65 define HOST_S6_INSTALL_CMDS
66 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
) install-dynlib install-include
69 $(eval
$(generic-package
))
70 $(eval
$(host-generic-package
))