1
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_CXX:= MRD6
  13. WRKBUILD= ${WRKSRC}/src
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,MRD6,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. ifeq (${ADK_COMPILE_MRD6_WITH_UCLIBCXX},y)
  18. TCXXFLAGS+= -fno-builtin -nostdinc++ -nodefaultlibs \
  19. -I${STAGING_TARGET_DIR}/usr/include/uClibc++
  20. TLDFLAGS+= -nodefaultlibs -luClibc++ -shared
  21. endif
  22. XAKE_FLAGS+= EXTRA_FLAGS="${TCFLAGS}"
  23. post-install:
  24. ${INSTALL_DIR} ${IDIR_MRD6}/usr/sbin ${IDIR_MRD6}/etc
  25. ${INSTALL_DIR} ${IDIR_MRD6}/usr/lib/mrd6 ${IDIR_MRD6}/usr/bin
  26. ${INSTALL_DATA} ./files/${PKG_NAME}.conf ${IDIR_MRD6}/etc
  27. ${INSTALL_BIN} ${WRKINST}/usr/local/sbin/mrd \
  28. ${IDIR_MRD6}/usr/sbin
  29. ${INSTALL_BIN} ${WRKINST}/usr/local/bin/mrd6sh \
  30. ${IDIR_MRD6}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/local/lib/mrd6/bgp.so \
  32. ${IDIR_MRD6}/usr/lib/mrd6/
  33. include ${TOPDIR}/mk/pkg-bottom.mk