Makefile 1.6 KB

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