diff options
Diffstat (limited to 'package/nss')
-rw-r--r-- | package/nss/Config.in | 5 | ||||
-rw-r--r-- | package/nss/Makefile | 43 | ||||
-rw-r--r-- | package/nss/patches/patch-mozilla_security_coreconf_Linux_mk | 15 | ||||
-rw-r--r-- | package/nss/patches/patch-mozilla_security_coreconf_arch_mk | 11 | ||||
-rw-r--r-- | package/nss/patches/patch-mozilla_security_coreconf_nsinstall_Makefile | 13 | ||||
-rw-r--r-- | package/nss/patches/patch-mozilla_security_nss_cmd_shlibsign_sign_sh | 11 |
6 files changed, 98 insertions, 0 deletions
diff --git a/package/nss/Config.in b/package/nss/Config.in new file mode 100644 index 000000000..06c56929e --- /dev/null +++ b/package/nss/Config.in @@ -0,0 +1,5 @@ +config ADK_PACKAGE_NSS + prompt "nss............................... NSS library" + tristate + default n + help diff --git a/package/nss/Makefile b/package/nss/Makefile new file mode 100644 index 000000000..a837cd8d9 --- /dev/null +++ b/package/nss/Makefile @@ -0,0 +1,43 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= nss +PKG_VERSION:= 3.12.3 +PKG_RELEASE:= 1 +PKG_MD5SUM:= ecb7079ba4ebcf29b7716775384f1f18 +PKG_DESCR:= Network Security Services (NSS) library +PKG_SECTION:= libs +PKG_URL:= http://www.mozilla.org/projects/security/pki/nss/ +PKG_SITES:= ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_3_RTM/src/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 +WRKSRC= ${WRKDIST}/mozilla/security/nss + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,NSS,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +ifeq ($(ADK_LINUX_64),y) +TCFLAGS+= -DUSE_64 +MAKE_FLAGS+= USE_64=1 +endif + +MAKE_FLAGS+= NATIVE_CC="${HOSTCC}" NATIVE_FLAGS="${HOSTCFLAGS}" NATIVE_LDFLAGS="${HOSTLDFLAGS}" +TCPPFLAGS+= -I${STAGING_DIR}/usr/include/nspr +TCFLAGS+= -I${STAGING_DIR}/usr/include/nspr +BUILD_STYLE= auto +INSTALL_STYLE= auto +MAKE_FLAGS+= SOURCE_MD_DIR=${WRKDIST}/dist DIST=${WRKDIST}/dist NSS_DISABLE_DBM=1 OS_TEST=${ARCH} \ + ARCHFLAG="${TCFLAGS} ${TCPPFLAGS}" +ALL_TARGET:= build_coreconf all +XAKE_FLAGS+= OS_TEST=${ARCH} NSS_DISABLE_DBM=1 + +post-install: + $(INSTALL_DIR) $(IDIR_NSS)/usr/lib + ${INSTALL_DATA} ${WRKDIST}/dist/lib/*.so $(IDIR_NSS)/usr/lib + ${INSTALL_DIR} ${STAGING_DIR}/usr/include/nss + ${INSTALL_DATA} ${WRKDIST}/mozilla/dist/public/nss/* ${STAGING_DIR}/usr/include/nss + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/nss/patches/patch-mozilla_security_coreconf_Linux_mk b/package/nss/patches/patch-mozilla_security_coreconf_Linux_mk new file mode 100644 index 000000000..cce23e2ee --- /dev/null +++ b/package/nss/patches/patch-mozilla_security_coreconf_Linux_mk @@ -0,0 +1,15 @@ +--- nss-3.12.3.orig/mozilla/security/coreconf/Linux.mk 2008-09-06 01:17:23.000000000 +0200 ++++ nss-3.12.3/mozilla/security/coreconf/Linux.mk 2009-06-24 19:11:27.470840369 +0200 +@@ -46,9 +46,9 @@ ifeq ($(USE_PTHREADS),1) + IMPL_STRATEGY = _PTH + endif + +-CC = gcc +-CCC = g++ +-RANLIB = ranlib ++CC ?= gcc ++CCC ?= g++ ++RANLIB ?= ranlib + + DEFAULT_COMPILER = gcc + diff --git a/package/nss/patches/patch-mozilla_security_coreconf_arch_mk b/package/nss/patches/patch-mozilla_security_coreconf_arch_mk new file mode 100644 index 000000000..1ebf69cc9 --- /dev/null +++ b/package/nss/patches/patch-mozilla_security_coreconf_arch_mk @@ -0,0 +1,11 @@ +--- nss-3.12.3.orig/mozilla/security/coreconf/arch.mk 2009-03-11 19:54:24.000000000 +0100 ++++ nss-3.12.3/mozilla/security/coreconf/arch.mk 2009-06-24 21:46:32.910214640 +0200 +@@ -329,7 +329,7 @@ endif + # IMPL_STRATEGY may be defined too. + # + +-OBJDIR_NAME = $(OS_TARGET)$(OS_RELEASE)$(CPU_TAG)$(COMPILER_TAG)$(LIBC_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ ++OBJDIR_NAME = $(OS_TARGET)$(OS_RELEASE)$(CPU_TAG)$(LIBC_TAG).OBJ + + ifeq (,$(filter-out WIN%,$(OS_TARGET))) + ifndef BUILD_OPT diff --git a/package/nss/patches/patch-mozilla_security_coreconf_nsinstall_Makefile b/package/nss/patches/patch-mozilla_security_coreconf_nsinstall_Makefile new file mode 100644 index 000000000..db87f018b --- /dev/null +++ b/package/nss/patches/patch-mozilla_security_coreconf_nsinstall_Makefile @@ -0,0 +1,13 @@ +--- nss-3.12.3.orig/mozilla/security/coreconf/nsinstall/Makefile 2005-10-06 00:25:37.000000000 +0200 ++++ nss-3.12.3/mozilla/security/coreconf/nsinstall/Makefile 2009-06-24 19:48:52.858310011 +0200 +@@ -65,6 +65,10 @@ ifdef NATIVE_FLAGS + OS_CFLAGS=$(NATIVE_FLAGS) + endif + ++ifdef NATIVE_LDFLAGS ++LDFLAGS=$(NATIVE_LDFLAGS) ++endif ++ + include $(DEPTH)/coreconf/rules.mk + + # Redefine MAKE_OBJDIR for just this directory diff --git a/package/nss/patches/patch-mozilla_security_nss_cmd_shlibsign_sign_sh b/package/nss/patches/patch-mozilla_security_nss_cmd_shlibsign_sign_sh new file mode 100644 index 000000000..9c643dacf --- /dev/null +++ b/package/nss/patches/patch-mozilla_security_nss_cmd_shlibsign_sign_sh @@ -0,0 +1,11 @@ +--- nss-3.12.3.orig/mozilla/security/nss/cmd/shlibsign/sign.sh 2006-01-18 21:56:28.000000000 +0100 ++++ nss-3.12.3/mozilla/security/nss/cmd/shlibsign/sign.sh 2009-06-24 21:27:49.462838938 +0200 +@@ -53,6 +53,7 @@ OpenVMS) + ADDON_PATH=${1}/lib:${4}:$ADDON_PATH + export ADDON_PATH + echo ${2}/shlibsign -v -i ${5} +- ${2}/shlibsign -v -i ${5} ++ #disable for cross-compile ++ #${2}/shlibsign -v -i ${5} + ;; + esac |