mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
https://github.com/radiator-software/p5-net-ssleay/blob/1.96/Changes Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
35 lines
1.3 KiB
Makefile
35 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# perl-net-ssleay
|
|
#
|
|
################################################################################
|
|
|
|
PERL_NET_SSLEAY_VERSION = 1.96
|
|
PERL_NET_SSLEAY_SOURCE = Net-SSLeay-$(PERL_NET_SSLEAY_VERSION).tar.gz
|
|
PERL_NET_SSLEAY_SITE = $(BR2_CPAN_MIRROR)/authors/id/C/CH/CHRISN
|
|
PERL_NET_SSLEAY_DEPENDENCIES = openssl
|
|
PERL_NET_SSLEAY_LICENSE = Artistic-2.0
|
|
PERL_NET_SSLEAY_LICENSE_FILES = LICENSE
|
|
PERL_NET_SSLEAY_DISTNAME = Net-SSLeay
|
|
|
|
# Try as hard as possible to remedy to the brain-damage their build-system
|
|
# suffers from: don't search for openssl, they pick the host-system one.
|
|
PERL_NET_SSLEAY_CONF_ENV = OPENSSL_PREFIX=$(STAGING_DIR)/usr
|
|
|
|
# Remove problematic single quotes in LDDLFLAGS, CCFLAGS & OPTIMIZE definition
|
|
define PERL_NET_SSLEAY_FIX_MAKEFILE
|
|
$(SED) "s/^LDDLFLAGS = '\(.*\)'/LDDLFLAGS = \1/" $(@D)/Makefile
|
|
$(SED) "s/^CCFLAGS = '\(.*\)'/CCFLAGS = \1/" $(@D)/Makefile
|
|
$(SED) "s/^OPTIMIZE = '\(.*\)'/OPTIMIZE = \1/" $(@D)/Makefile
|
|
endef
|
|
PERL_NET_SSLEAY_POST_CONFIGURE_HOOKS += PERL_NET_SSLEAY_FIX_MAKEFILE
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBRESSL),y)
|
|
define PERL_NET_SSLEAY_DROP_ZLIB_MAKEFILE
|
|
$(SED) "s/-lz//" $(@D)/Makefile
|
|
endef
|
|
PERL_NET_SSLEAY_POST_CONFIGURE_HOOKS += PERL_NET_SSLEAY_DROP_ZLIB_MAKEFILE
|
|
endif
|
|
|
|
$(eval $(perl-package))
|