Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:= mrd6
  5. PKG_VERSION:= 0.9.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 93ada53bb414b9d622f80a717bc2694b
  8. PKG_DESCR:= ipv6 multicast routing daemon
  9. PKG_SECTION:= net/ipv6
  10. PKG_SITES:= http://www.openadk.org/distfiles/
  11. PKG_CXX:= MRD6
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  13. WRKBUILD= ${WRKSRC}/src
  14. include ${ADK_TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,MRD6,mrd6,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. ifeq (${ADK_COMPILE_MRD6_WITH_UCLIBCXX},y)
  18. LIBRARIES:=-nodefaultlibs -luClibc++
  19. ifeq ($(ADK_TARGET_USE_SSP),y)
  20. LIBRARIES+=-lssp -lssp_nonshared
  21. endif
  22. endif
  23. ifeq (${ADK_COMPILE_MRD6_WITH_UCLIBCXX},y)
  24. TARGET_CXXFLAGS+= -fno-builtin -nostdinc++ \
  25. -I${STAGING_TARGET_DIR}/usr/include/uClibc++
  26. TARGET_LDFLAGS+= -shared ${LIBRARIES}
  27. endif
  28. XAKE_FLAGS+= EXTRA_FLAGS="${TARGET_CFLAGS}"
  29. mrd6-install:
  30. ${INSTALL_DIR} ${IDIR_MRD6}/usr/sbin ${IDIR_MRD6}/etc
  31. ${INSTALL_DIR} ${IDIR_MRD6}/usr/lib/mrd6 ${IDIR_MRD6}/usr/bin
  32. ${INSTALL_DATA} ./files/${PKG_NAME}.conf ${IDIR_MRD6}/etc
  33. ${INSTALL_BIN} ${WRKINST}/usr/local/sbin/mrd \
  34. ${IDIR_MRD6}/usr/sbin
  35. ${INSTALL_BIN} ${WRKINST}/usr/local/bin/mrd6sh \
  36. ${IDIR_MRD6}/usr/bin
  37. ${INSTALL_BIN} ${WRKINST}/usr/local/lib/mrd6/bgp.so \
  38. ${IDIR_MRD6}/usr/lib/mrd6/
  39. include ${ADK_TOPDIR}/mk/pkg-bottom.mk