2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-16 07:56:20 +01:00
|
|
|
#
|
|
|
|
# keyutils
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-16 07:56:20 +01:00
|
|
|
|
2014-09-24 10:44:19 +02:00
|
|
|
KEYUTILS_VERSION = 1.5.9
|
2012-12-16 07:56:20 +01:00
|
|
|
KEYUTILS_SOURCE = keyutils-$(KEYUTILS_VERSION).tar.bz2
|
|
|
|
KEYUTILS_SITE = http://people.redhat.com/~dhowells/keyutils
|
|
|
|
KEYUTILS_LICENSE = GPLv2+ LGPLv2.1+
|
|
|
|
KEYUTILS_LICENSE_FILES = LICENCE.GPL LICENCE.LGPL
|
|
|
|
KEYUTILS_INSTALL_STAGING = YES
|
|
|
|
|
2014-09-24 10:44:19 +02:00
|
|
|
KEYUTILS_MAKE_PARAMS = \
|
|
|
|
INSTALL=$(INSTALL) \
|
|
|
|
LIBDIR=/usr/lib \
|
|
|
|
USRLIBDIR=/usr/lib \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
CPPFLAGS="$(TARGET_CPPFLAGS) -I." \
|
|
|
|
LNS="$(HOSTLN) -sf"
|
|
|
|
|
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
|
KEYUTILS_MAKE_PARAMS += NO_SOLIB=1
|
|
|
|
endif
|
2012-12-16 07:56:20 +01:00
|
|
|
|
|
|
|
define KEYUTILS_BUILD_CMDS
|
2014-09-24 10:44:19 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D)
|
2012-12-16 07:56:20 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KEYUTILS_INSTALL_STAGING_CMDS
|
2014-09-24 10:44:19 +02:00
|
|
|
$(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
2012-12-16 07:56:20 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KEYUTILS_INSTALL_TARGET_CMDS
|
2014-09-24 10:44:19 +02:00
|
|
|
$(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
2012-12-16 07:56:20 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|