2016-12-19 22:29:08 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# execline
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-09 12:34:14 +02:00
|
|
|
EXECLINE_VERSION = 2.3.0.2
|
2016-12-19 22:29:08 +01:00
|
|
|
EXECLINE_SITE = http://skarnet.org/software/execline
|
|
|
|
EXECLINE_LICENSE = ISC
|
|
|
|
EXECLINE_LICENSE_FILES = COPYING
|
|
|
|
EXECLINE_INSTALL_STAGING = YES
|
|
|
|
EXECLINE_DEPENDENCIES = skalibs
|
|
|
|
|
|
|
|
EXECLINE_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/skalibs \
|
|
|
|
$(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
|
|
|
|
$(SHARED_STATIC_LIBS_OPTS)
|
|
|
|
|
|
|
|
define EXECLINE_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(EXECLINE_CONF_OPTS))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define EXECLINE_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define EXECLINE_REMOVE_STATIC_LIB_DIR
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/execline
|
|
|
|
endef
|
|
|
|
|
|
|
|
EXECLINE_POST_INSTALL_TARGET_HOOKS += EXECLINE_REMOVE_STATIC_LIB_DIR
|
|
|
|
|
|
|
|
define EXECLINE_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define EXECLINE_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
HOST_EXECLINE_DEPENDENCIES = host-skalibs
|
|
|
|
|
2017-07-07 19:09:46 +02:00
|
|
|
# Set --shebangdir to /usr/bin, as this value is used by the host variant of
|
|
|
|
# s6-rc when generating execline scripts for the target.
|
2016-12-19 22:29:08 +01:00
|
|
|
HOST_EXECLINE_CONF_OPTS = \
|
2017-07-05 13:14:18 +02:00
|
|
|
--prefix=$(HOST_DIR) \
|
2017-07-07 19:09:46 +02:00
|
|
|
--shebangdir=/usr/bin \
|
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:08 +01:00
|
|
|
--disable-static \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-allstatic
|
|
|
|
|
|
|
|
define HOST_EXECLINE_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure $(HOST_EXECLINE_CONF_OPTS))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_EXECLINE_BUILD_CMDS
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_EXECLINE_INSTALL_CMDS
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|
|
|
|
$(eval $(host-generic-package))
|