1
0

Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. WRKSRC= ${WRKDIST}/nss
  21. include $(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="${CC_FOR_BUILD}" NATIVE_FLAGS="${CFLAGS_FOR_BUILD}"
  32. TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/nspr
  33. TARGET_CFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/nspr
  34. TARGET_LDFLAGS+= -ldl -pthread -lrt
  35. XAKE_FLAGS+= SOURCE_MD_DIR=${WRKDIST}/dist DIST=${WRKDIST}/dist
  36. XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS}"
  37. XAKE_FLAGS+= NSS_DISABLE_DBM=1 OS_TEST=${CPU_ARCH} OS_TARGET=Linux OS_RELEASE=2.6 OS_ARCH=Linux
  38. XAKE_FLAGS+= ARTOOL="${TARGET_CROSS}ar" RANLIB="${TARGET_CROSS}ranlib" NSS_USE_SYSTEM_SQLITE=1
  39. XAKE_FLAGS+= NSS_USE_SYSTEM_ZLIB=1
  40. ALL_TARGET:= all
  41. do-install:
  42. $(INSTALL_DIR) $(IDIR_NSS)/usr/lib
  43. ${INSTALL_DATA} ${WRKDIST}/dist/lib/lib{nsssysinit,nssckbi,freebl3,ssl3,smime3,nss3,nssutil3,softokn3}.so \
  44. $(IDIR_NSS)/usr/lib
  45. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/include/nss
  46. ${INSTALL_DATA} ${WRKDIST}/dist/public/nss/* \
  47. ${STAGING_TARGET_DIR}/usr/include/nss
  48. # needed for firefox and corosync
  49. ${INSTALL_DIR} ${WRKINST}/usr/bin
  50. ${INSTALL_BIN} ${WRKDIST}/dist/bin/nss-config \
  51. ${WRKINST}/usr/bin
  52. ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig
  53. ${INSTALL_BIN} ${WRKDIST}/dist/lib/pkgconfig/nss.pc \
  54. ${WRKINST}/usr/lib/pkgconfig
  55. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/lib
  56. $(INSTALL_DATA) ${WRKDIST}/dist/lib/libcrmf.a \
  57. ${STAGING_TARGET_DIR}/usr/lib
  58. include ${TOPDIR}/mk/pkg-bottom.mk