Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.13.3
  6. PKG_RELEASE:= 2
  7. PKG_MAJ_VERSION:= 3
  8. PKG_MIN_VERSION:= 13
  9. PKG_PATCH_VERSION:= 3
  10. PKG_MD5SUM:= 006cb82fa900e9e664b4b14a9b7810ca
  11. PKG_DESCR:= Network Security Services (NSS) library
  12. PKG_SECTION:= libs
  13. PKG_BUILDDEP:= nspr zlib
  14. PKG_DEPENDS:= nspr
  15. PKG_URL:= http://www.mozilla.org/projects/security/pki/nss/
  16. PKG_SITES:= ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_13_3_RTM/src/
  17. PKG_NOPARALLEL:= 1
  18. PKG_HOST_DEPENDS:= !cygwin
  19. PKG_ARCH_DEPENDS:= !cris
  20. WRKSRC= ${WRKDIST}/mozilla/security/nss
  21. include $(TOPDIR)/mk/package.mk
  22. $(eval $(call PKG_template,NSS,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. CONFIG_STYLE:= manual
  24. ifneq ($(ADK_LINUX_64),)
  25. ifeq ($(ADK_LINUX_MIPS),y)
  26. TARGET_CFLAGS+= -DNS_PTR_LE_32
  27. endif
  28. XAKE_FLAGS+= USE_64=1
  29. endif
  30. MAKE_FLAGS+= NATIVE_CC="${CC_FOR_BUILD}" NATIVE_FLAGS="${CFLAGS_FOR_BUILD}"
  31. TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/nspr
  32. TARGET_CFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/nspr
  33. TARGET_LDFLAGS+= -ldl -pthread -lrt
  34. XAKE_FLAGS+= SOURCE_MD_DIR=${WRKDIST}/dist DIST=${WRKDIST}/dist
  35. XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS}"
  36. XAKE_FLAGS+= NSS_DISABLE_DBM=1 OS_TEST=${CPU_ARCH} OS_TARGET=Linux OS_RELEASE=2.6 OS_ARCH=Linux
  37. XAKE_FLAGS+= ARTOOL="${TARGET_CROSS}ar" RANLIB="${TARGET_CROSS}ranlib"
  38. ALL_TARGET:= build_coreconf all
  39. post-install:
  40. $(INSTALL_DIR) $(IDIR_NSS)/usr/lib
  41. ${INSTALL_DATA} ${WRKDIST}/dist/lib/lib{ssl3,smime3,nss3,nssutil3}.so \
  42. $(IDIR_NSS)/usr/lib
  43. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/include/nss
  44. ${INSTALL_DATA} ${WRKDIST}/mozilla/dist/public/nss/* \
  45. ${STAGING_TARGET_DIR}/usr/include/nss
  46. # needed for firefox
  47. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/lib
  48. $(INSTALL_DATA) ${WRKDIST}/dist/lib/libcrmf.a \
  49. ${STAGING_TARGET_DIR}/usr/lib
  50. # needed for corosync
  51. $(INSTALL_DIR) ${WRKINST}/usr/lib/pkgconfig
  52. $(CP) ./files/nss.pc ${WRKINST}/usr/lib/pkgconfig
  53. include ${TOPDIR}/mk/pkg-bottom.mk