Makefile 1.5 KB

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