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_CXX:= MRD6
  8. PKG_MD5SUM:= 93ada53bb414b9d622f80a717bc2694b
  9. PKG_DESCR:= IPv6 multicast routing daemon
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= kmod-ipv6
  12. PKG_SITES:= http://www.openadk.org/distfiles/
  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. ifeq (${ADK_COMPILE_MRD6_WITH_UCLIBCXX},y)
  17. TCXXFLAGS+= -fno-builtin -nostdinc++ -nodefaultlibs -I${STAGING_DIR}/usr/include/uClibc++
  18. TLDFLAGS+= -nodefaultlibs -luClibc++ -shared
  19. endif
  20. XAKE_FLAGS+= EXTRA_FLAGS="${TCFLAGS}"
  21. BUILD_STYLE:= auto
  22. INSTALL_STYLE:= auto
  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