package/pax-utils: switch to autotools
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [yann.morin.1998@free.fr: independently done a patch similar to the one by Thomas] Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
8143721c3e
commit
ec7eb7e44d
@ -10,9 +10,21 @@ PAX_UTILS_SOURCE = pax-utils-$(PAX_UTILS_VERSION).tar.xz
|
|||||||
PAX_UTILS_LICENSE = GPLv2
|
PAX_UTILS_LICENSE = GPLv2
|
||||||
PAX_UTILS_LICENSE_FILES = COPYING
|
PAX_UTILS_LICENSE_FILES = COPYING
|
||||||
|
|
||||||
|
PAX_UTILS_DEPENDENCIES = host-pkgconf
|
||||||
|
PAX_UTILS_CONF_OPTS = --without-python
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||||
PAX_UTILS_DEPENDENCIES += libcap
|
PAX_UTILS_DEPENDENCIES += libcap
|
||||||
PAX_UTILS_USE_CAP = USE_CAP=yes
|
PAX_UTILS_CONF_OPTS += --with-caps
|
||||||
|
else
|
||||||
|
PAX_UTILS_CONF_OPTS += --without-caps
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
||||||
|
PAX_UTILS_DEPENDENCIES += libseccomp
|
||||||
|
PAX_UTILS_CONF_OPTS += --with-seccomp
|
||||||
|
else
|
||||||
|
PAX_UTILS_CONF_OPTS += --without-seccomp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# libcap is only useful for pspax (a running system)
|
# libcap is only useful for pspax (a running system)
|
||||||
@ -26,22 +38,5 @@ endef
|
|||||||
endif
|
endif
|
||||||
PAX_UTILS_POST_INSTALL_TARGET_HOOKS += PAX_UTILS_REMOVE_BASH_TOOLS
|
PAX_UTILS_POST_INSTALL_TARGET_HOOKS += PAX_UTILS_REMOVE_BASH_TOOLS
|
||||||
|
|
||||||
define HOST_PAX_UTILS_BUILD_CMDS
|
$(eval $(autotools-package))
|
||||||
$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
|
$(eval $(host-autotools-package))
|
||||||
endef
|
|
||||||
|
|
||||||
define PAX_UTILS_BUILD_CMDS
|
|
||||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) $(PAX_UTILS_USE_CAP) -C $(@D)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define HOST_PAX_UTILS_INSTALL_CMDS
|
|
||||||
$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) DESTDIR="$(HOST_DIR)" install
|
|
||||||
endef
|
|
||||||
|
|
||||||
define PAX_UTILS_INSTALL_TARGET_CMDS
|
|
||||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
||||||
DESTDIR="$(TARGET_DIR)" install
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(generic-package))
|
|
||||||
$(eval $(host-generic-package))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user