1
0

Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= nss
  5. PKG_VERSION:= 3.12.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= da42596665f226de5eb3ecfc1ec57cd1
  8. PKG_DESCR:= Network Security Services (NSS) library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP+= nspr zlib
  11. PKG_NOPARALLEL:= 1
  12. PKG_URL:= http://www.mozilla.org/projects/security/pki/nss/
  13. PKG_SITES:= https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_6_RTM/src/
  14. PKG_TARGET_DEPENDS:= !foxboard
  15. PKG_HOST_DEPENDS:= !cygwin
  16. WRKSRC= ${WRKDIST}/mozilla/security/nss
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,NSS,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIG_STYLE:= manual
  20. ifeq ($(ADK_LINUX_64),y)
  21. TCFLAGS+= -DUSE_64
  22. XAKE_FLAGS+= USE_64=1
  23. endif
  24. MAKE_FLAGS+= NATIVE_CC="${HOSTCC}" NATIVE_FLAGS="${HOSTCFLAGS}"
  25. TCPPFLAGS+= -I${STAGING_DIR}/usr/include/nspr
  26. TCFLAGS+= -I${STAGING_DIR}/usr/include/nspr
  27. TLDFLAGS:= ''
  28. XAKE_FLAGS+= SOURCE_MD_DIR=${WRKDIST}/dist DIST=${WRKDIST}/dist \
  29. ARCHFLAG="${TCFLAGS} ${TCPPFLAGS} -ldl"
  30. ALL_TARGET:= build_coreconf all
  31. XAKE_FLAGS+= OS_TEST=${CPU_ARCH} NSS_DISABLE_DBM=1 OS_TARGET=Linux OS_RELEASE=2.6
  32. post-install:
  33. $(INSTALL_DIR) $(IDIR_NSS)/usr/lib
  34. ${INSTALL_DATA} ${WRKDIST}/dist/lib/lib{ssl3,smime3,nss3,nssutil3}.so \
  35. $(IDIR_NSS)/usr/lib
  36. ${INSTALL_DIR} ${STAGING_DIR}/usr/include/nss
  37. ${INSTALL_DATA} ${WRKDIST}/mozilla/dist/public/nss/* \
  38. ${STAGING_DIR}/usr/include/nss
  39. include ${TOPDIR}/mk/pkg-bottom.mk