1
0

Makefile 1.7 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:= 2
  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
  15. PKG_ARCH_DEPENDS:= !cris
  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_TARGET_DIR}/usr/include/nspr
  26. TCFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/nspr
  27. TLDFLAGS+= -ldl
  28. XAKE_FLAGS+= SOURCE_MD_DIR=${WRKDIST}/dist DIST=${WRKDIST}/dist
  29. XAKE_FLAGS+= ARCHFLAG="${TCFLAGS} ${TCPPFLAGS} -ldl"
  30. XAKE_FLAGS+= OS_TEST=${CPU_ARCH} NSS_DISABLE_DBM=1 OS_TARGET=Linux OS_RELEASE=2.6 OS_ARCH=Linux
  31. XAKE_FLAGS+= ARTOOL="${TARGET_CROSS}ar" RANLIB="${TARGET_CROSS}ranlib"
  32. ALL_TARGET:= build_coreconf all
  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_TARGET_DIR}/usr/include/nss
  38. ${INSTALL_DATA} ${WRKDIST}/mozilla/dist/public/nss/* \
  39. ${STAGING_TARGET_DIR}/usr/include/nss
  40. include ${TOPDIR}/mk/pkg-bottom.mk