mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
libscrypt: New package
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> [Thomas: - Add entry to DEVELOPERS file for the new package - Add dependency on !BR2_STATIC_LIBS, because the Makefile unconditionally builds a shared library - Use the "github" helper function to define <pkg>_SITE, get rid of <pkg>_SOURCE. - License is BSD-2c, not just BSD. - Add <pkg>_LICENSE_FILES variable. - Define LIBSCRYPT_DISABLE_STACK_PROTECTOR inside the BR2_TOOLCHAIN_HAS_SSP condition, and move from a LIBSCRYPT_POST_EXTRACT_HOOKS to a LIBSCRYPT_POST_PATCH_HOOKS. - Pass $(TARGET_CONFIGURE_OPTS) instead of just passing CC. - Pass $(TARGET_MAKE_ENV) when calling $(MAKE).] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
00d2a3da72
commit
62a7b862eb
34
package/libscrypt/libscrypt.mk
Normal file
34
package/libscrypt/libscrypt.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
################################################################################
|
||||
#
|
||||
# libscrypt
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBSCRYPT_VERSION = v1.21
|
||||
LIBSCRYPT_SITE = $(call github,technion,libscrypt,$(LIBSCRYPT_VERSION))
|
||||
LIBSCRYPT_LICENSE = BSD-2c
|
||||
LIBSCRYPT_LICENSE_FILES = LICENSE
|
||||
LIBSCRYPT_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),)
|
||||
define LIBSCRYPT_DISABLE_STACK_PROTECTOR
|
||||
$(SED) 's/-fstack-protector//g' $(@D)/Makefile
|
||||
endef
|
||||
LIBSCRYPT_POST_PATCH_HOOKS += LIBSCRYPT_DISABLE_STACK_PROTECTOR
|
||||
endif
|
||||
|
||||
define LIBSCRYPT_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
|
||||
endef
|
||||
|
||||
define LIBSCRYPT_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr \
|
||||
DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
define LIBSCRYPT_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=/usr \
|
||||
DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user