Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.4
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 1ee3ed9c1900079319bd1de51388d856
  8. PKG_DESCR:= Network Security Services (NSS) library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP+= nspr zlib
  11. PKG_NOPARALLEL:= 1
  12. PKG_URL:= http://www.mozilla.org/projects/security/pki/nss/
  13. PKG_SITES:= https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_4_RTM/src/
  14. PKG_TARGET_DEPENDS:= !foxboard
  15. WRKSRC= ${WRKDIST}/mozilla/security/nss
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,NSS,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIG_STYLE:= manual
  19. ifeq ($(ADK_LINUX_64),y)
  20. TCFLAGS+= -DUSE_64
  21. MAKE_FLAGS+= USE_64=1
  22. endif
  23. MAKE_FLAGS+= NATIVE_CC="${HOSTCC}" NATIVE_FLAGS="${HOSTCFLAGS}"
  24. TCPPFLAGS+= -I${STAGING_DIR}/usr/include/nspr
  25. TCFLAGS+= -I${STAGING_DIR}/usr/include/nspr
  26. TLDFLAGS:= ''
  27. MAKE_FLAGS+= SOURCE_MD_DIR=${WRKDIST}/dist DIST=${WRKDIST}/dist \
  28. ARCHFLAG="${TCFLAGS} ${TCPPFLAGS} -ldl"
  29. ALL_TARGET:= build_coreconf all
  30. XAKE_FLAGS+= OS_TEST=${ARCH} NSS_DISABLE_DBM=1 OS_TARGET=Linux OS_RELEASE=2.6
  31. post-install:
  32. $(INSTALL_DIR) $(IDIR_NSS)/usr/lib
  33. ${INSTALL_DATA} ${WRKDIST}/dist/lib/lib{ssl3,smime3,nss3,nssutil3}.so \
  34. $(IDIR_NSS)/usr/lib
  35. ${INSTALL_DIR} ${STAGING_DIR}/usr/include/nss
  36. ${INSTALL_DATA} ${WRKDIST}/mozilla/dist/public/nss/* \
  37. ${STAGING_DIR}/usr/include/nss
  38. include ${TOPDIR}/mk/pkg-bottom.mk