Makefile 2.5 KB

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