Makefile 1.4 KB

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