2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-07-08 15:19:16 +02:00
|
|
|
#
|
|
|
|
# libnss
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-13 08:40:56 +02:00
|
|
|
|
2013-11-26 23:48:05 +01:00
|
|
|
LIBNSS_VERSION = 3.14.5
|
2011-07-08 15:19:16 +02:00
|
|
|
LIBNSS_SOURCE = nss-$(LIBNSS_VERSION).tar.gz
|
package: unification of use $(subst [._-], [._-], $(<PKG>_VERSION)) macro
Currently, there are five packages which use 'subst' macro to change their version.
* Three of them (ebtables, icu, perl) use this macro "in place" :
EBTABLES_SITE = http://downloads.sourceforge.net/project/ebtables/ebtables/ebtables-$(subst .,-,$(EBTABLES_VERSION))
ICU_SOURCE = icu4c-$(subst .,_,$(ICU_VERSION))-src.tgz
PERL_CROSS_OLD_POD = perl$(subst .,,$(PERL_CROSS_BASE_VERSION))delta.pod
PERL_CROSS_NEW_POD = perl$(subst .,,$(PERL_VERSION))delta.pod
* Two of them (boost, libnss) use an additional variable :
BOOST_FILE_VERSION = $(subst .,_,$(BOOST_VERSION))
BOOST_SOURCE = boost_$(BOOST_FILE_VERSION).tar.bz2
LIBNSS_SITE_VERSION = $(subst .,_,$(LIBNSS_VERSION))
LIBNSS_SITE = https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_$(LIBNSS_SITE_VERSION)_RTM/src
* Additionally two packages (duma, rings) doesn't use it at all :
DUMA_VERSION = 2_5_15
DUMA_SITE = http://downloads.sourceforge.net/project/duma/duma/2.5.15
RINGS_VERSION_MAJOR = 1.3.0
RINGS_SUBDIR = rings-v_1_3_0
This commit makes changes to use 'subst' macro "in place", in all of them.
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-01-14 11:30:58 +01:00
|
|
|
LIBNSS_SITE = https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_$(subst .,_,$(LIBNSS_VERSION))_RTM/src
|
2011-07-08 15:19:16 +02:00
|
|
|
LIBNSS_SUBDIR = mozilla/security
|
|
|
|
LIBNSS_DISTDIR = mozilla/dist
|
|
|
|
LIBNSS_INSTALL_STAGING = YES
|
|
|
|
LIBNSS_DEPENDENCIES = libnspr sqlite zlib
|
2013-05-13 08:40:56 +02:00
|
|
|
LIBNSS_LICENSE = MPLv2.0
|
|
|
|
LIBNSS_LICENSE_FILES = mozilla/security/nss/COPYING
|
2011-07-08 15:19:16 +02:00
|
|
|
|
|
|
|
LIBNSS_BUILD_VARS = MOZILLA_CLIENT=1 \
|
|
|
|
NSPR_INCLUDE_DIR=$(STAGING_DIR)/usr/include/nspr \
|
|
|
|
NSPR_LIB_DIR=$(STAGING_DIR)/usr/lib \
|
|
|
|
BUILD_OPT=1 \
|
|
|
|
NS_USE_GCC=1 \
|
|
|
|
NSS_USE_SYSTEM_SQLITE=1 \
|
|
|
|
NSS_ENABLE_ECC=1 \
|
|
|
|
NATIVE_CC="$(HOSTCC)" \
|
|
|
|
TARGETCC="$(TARGET_CC)" \
|
|
|
|
TARGETCCC="$(TARGET_CXX)" \
|
|
|
|
TARGETRANLIB="$(TARGET_RANLIB)" \
|
|
|
|
OS_ARCH="Linux" \
|
|
|
|
OS_RELEASE="2.6" \
|
|
|
|
OS_TEST="$(ARCH)"
|
|
|
|
|
2012-07-11 00:30:36 +02:00
|
|
|
ifeq ($(BR2_ARCH_IS_64),y)
|
|
|
|
LIBNSS_BUILD_VARS += USE_64=1
|
|
|
|
endif
|
|
|
|
|
2011-07-08 15:19:16 +02:00
|
|
|
|
|
|
|
define LIBNSS_BUILD_CMDS
|
2012-12-11 04:31:00 +01:00
|
|
|
$(MAKE1) -C $(@D)/$(LIBNSS_SUBDIR)/nss build_coreconf \
|
2011-07-08 15:19:16 +02:00
|
|
|
SOURCE_MD_DIR=$(@D)/$(LIBNSS_DISTDIR) \
|
|
|
|
DIST=$(@D)/$(LIBNSS_DISTDIR) \
|
|
|
|
CHECKLOC= \
|
|
|
|
$(LIBNSS_BUILD_VARS)
|
2012-12-11 04:31:00 +01:00
|
|
|
$(MAKE1) -C $(@D)/$(LIBNSS_SUBDIR)/nss build_dbm all \
|
|
|
|
SOURCE_MD_DIR=$(@D)/$(LIBNSS_DISTDIR) \
|
|
|
|
DIST=$(@D)/$(LIBNSS_DISTDIR) \
|
|
|
|
CHECKLOC= \
|
|
|
|
$(LIBNSS_BUILD_VARS) OPTIMIZER="$(TARGET_CFLAGS)"
|
2011-07-08 15:19:16 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBNSS_INSTALL_STAGING_CMDS
|
|
|
|
$(INSTALL) -m 755 -t $(STAGING_DIR)/usr/lib/ \
|
|
|
|
$(@D)/$(LIBNSS_DISTDIR)/lib/*.so
|
|
|
|
$(INSTALL) -m 755 -d $(STAGING_DIR)/usr/include/nss
|
|
|
|
$(INSTALL) -m 644 -t $(STAGING_DIR)/usr/include/nss \
|
|
|
|
$(@D)/$(LIBNSS_DISTDIR)/public/nss/*
|
|
|
|
$(INSTALL) -m 755 -t $(STAGING_DIR)/usr/lib/ \
|
|
|
|
$(@D)/$(LIBNSS_DISTDIR)/lib/*.a
|
2012-08-21 19:07:04 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(TOPDIR)/package/libnss/nss.pc.in \
|
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/nss.pc
|
|
|
|
$(SED) 's/@VERSION@/$(LIBNSS_VERSION)/g;' \
|
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/nss.pc
|
2011-07-08 15:19:16 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBNSS_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/lib/ \
|
|
|
|
$(@D)/$(LIBNSS_DISTDIR)/lib/*.so
|
|
|
|
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/include/nss
|
|
|
|
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/include/nss \
|
|
|
|
$(@D)/$(LIBNSS_DISTDIR)/public/nss/*
|
|
|
|
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/lib/ \
|
|
|
|
$(@D)/$(LIBNSS_DISTDIR)/lib/*.a
|
2012-08-21 19:07:04 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(TOPDIR)/package/libnss/nss.pc.in \
|
|
|
|
$(TARGET_DIR)/usr/lib/pkgconfig/nss.pc
|
|
|
|
$(SED) 's/@VERSION@/$(LIBNSS_VERSION)/g;' \
|
|
|
|
$(TARGET_DIR)/usr/lib/pkgconfig/nss.pc
|
2011-07-08 15:19:16 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|