Makefile 2.0 KB

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