Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_SITES:= http://www.openadk.org/distfiles/
  11. PKG_NEED_CXX:= 1
  12. PKG_CXX:= MRD6
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  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. ifeq ($(ADK_TARGET_USE_SSP),y)
  21. LIBRARIES+=-lssp -lssp_nonshared
  22. endif
  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