mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 15:53:29 +08:00
3d86d29bf0
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# libsepol
|
|
#
|
|
################################################################################
|
|
|
|
LIBSEPOL_VERSION = 2.1.9
|
|
LIBSEPOL_SITE = http://userspace.selinuxproject.org/releases/20130423/
|
|
LIBSEPOL_LICENSE = LGPLv2.1+
|
|
LIBSEPOL_LICENSE_FILES = COPYING
|
|
|
|
LIBSEPOL_INSTALL_STAGING = YES
|
|
|
|
define LIBSEPOL_BUILD_CMDS
|
|
# DESTDIR is needed during the compile to compute library and
|
|
# header paths.
|
|
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(STAGING_DIR)
|
|
endef
|
|
|
|
define LIBSEPOL_INSTALL_STAGING_CMDS
|
|
$(MAKE) -C $(@D) install $(TARGET_CONFIGURE_OPTS) DESTDIR=$(STAGING_DIR)
|
|
endef
|
|
|
|
define LIBSEPOL_INSTALL_TARGET_CMDS
|
|
$(MAKE) -C $(@D) install $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR)
|
|
endef
|
|
|
|
define HOST_LIBSEPOL_BUILD_CMDS
|
|
$(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS) DESTDIR=$(HOST_DIR)
|
|
endef
|
|
|
|
define HOST_LIBSEPOL_INSTALL_CMDS
|
|
$(MAKE) -C $(@D) install $(HOST_CONFIGURE_OPTS) DESTDIR=$(HOST_DIR)
|
|
mv $(HOST_DIR)/lib/libsepol.so.1 $(HOST_DIR)/usr/lib
|
|
(cd $(HOST_DIR)/usr/lib; rm -f libsepol.so; ln -s libsepol.so.1 libsepol.so)
|
|
-rmdir $(HOST_DIR)/lib
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|