1
0

Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= nss
  5. PKG_VERSION:= 3.16.1
  6. PKG_RELEASE:= 2
  7. PKG_MAJ_VERSION:= 3
  8. PKG_MIN_VERSION:= 16
  9. PKG_PATCH_VERSION:= 1
  10. PKG_HASH:= fab750f7d34c09cf34df25da1924a9a8f4c7f1768e2d456f8be767ecbbe84a6e
  11. PKG_DESCR:= network security services library
  12. PKG_SECTION:= libs/crypto
  13. PKG_BUILDDEP:= nspr zlib sqlite
  14. PKG_DEPENDS:= nspr zlib libsqlite
  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_${PKG_MAJ_VERSION}_${PKG_MIN_VERSION}_${PKG_PATCH_VERSION}_RTM/src/
  17. PKG_NOPARALLEL:= 1
  18. PKG_HOST_DEPENDS:= !cygwin
  19. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  20. WRKSRC= ${WRKDIST}/nss
  21. include $(ADK_TOPDIR)/mk/package.mk
  22. $(eval $(call PKG_template,NSS,nss,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. CONFIG_STYLE:= manual
  24. INSTALL_STYLE:= manual
  25. ifeq ($(ADK_LINUX_64),y)
  26. ifeq ($(ADK_TARGET_ABI_N32),y)
  27. TARGET_CFLAGS+= -DNS_PTR_LE_32
  28. endif
  29. XAKE_FLAGS+= USE_64=1
  30. endif
  31. MAKE_FLAGS+= NATIVE_CC="${HOST_CC}" NATIVE_FLAGS="${HOST_CFLAGS}"
  32. TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/nspr
  33. TARGET_CFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/nspr
  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=${ADK_TARGET_CPU_ARCH} OS_TARGET=Linux OS_RELEASE=2.6 OS_ARCH=Linux
  37. XAKE_FLAGS+= ARTOOL="${TARGET_CROSS}ar" RANLIB="${TARGET_CROSS}ranlib" NSS_USE_SYSTEM_SQLITE=1
  38. XAKE_FLAGS+= NSS_USE_SYSTEM_ZLIB=1
  39. ALL_TARGET:= all
  40. do-install:
  41. $(INSTALL_DIR) $(IDIR_NSS)/usr/lib
  42. ${INSTALL_DATA} ${WRKDIST}/dist/lib/lib{nsssysinit,nssckbi,freebl3,ssl3,smime3,nss3,nssutil3,softokn3}.so \
  43. $(IDIR_NSS)/usr/lib
  44. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/include/nss
  45. ${INSTALL_DATA} ${WRKDIST}/dist/public/nss/* \
  46. ${STAGING_TARGET_DIR}/usr/include/nss
  47. # needed for firefox
  48. ${INSTALL_DIR} ${WRKINST}/usr/bin
  49. ${INSTALL_BIN} ${WRKDIST}/dist/bin/nss-config \
  50. ${WRKINST}/usr/bin
  51. ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig
  52. ${INSTALL_BIN} ${WRKDIST}/dist/lib/pkgconfig/nss.pc \
  53. ${WRKINST}/usr/lib/pkgconfig
  54. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/lib
  55. $(INSTALL_DATA) ${WRKDIST}/dist/lib/libcrmf.a \
  56. ${STAGING_TARGET_DIR}/usr/lib
  57. include ${ADK_TOPDIR}/mk/pkg-bottom.mk