Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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:= miredo
  5. PKG_VERSION:= 1.1.6
  6. PKG_RELEASE:= 1
  7. ifeq (${ADK_COMPILE_MIREDO_WITH_UCLIBCXX},y)
  8. PKG_BUILDDEP+= uclibc++
  9. endif
  10. PKG_MD5SUM:= bf49c1ddc068746760787d0cf76e40de
  11. PKG_DESCR:= A Teredo (IPv6 tunneling over UDP through NAT) client and relay daemon
  12. PKG_SECTION:= net
  13. PKG_URL:= http://www.remlab.net
  14. PKG_SITES:= http://www.remlab.net/files/miredo/
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,MIREDO,miredo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,MIREDO_SERVER,miredo-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIGURE_STYLE:= gnu
  20. CONFIGURE_ENV+= ac_cv_file__proc_self_maps=yes
  21. CONFIGURE_ARGS+= --disable-chroot \
  22. --without-Judy \
  23. --enable-teredo-client \
  24. --enable-teredo-relay \
  25. --enable-teredo-server \
  26. --enable-miredo-user=root
  27. BUILD_STYLE:= auto
  28. INSTALL_STYLE:= auto
  29. XAKE_FLAGS+ CXXLINK="\$${LINK}" \
  30. ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
  31. TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++
  32. TLDFLAGS+= -nodefaultlibs
  33. CONFIGURE_ENV+= LIBS="-luClibc++ -lc -lm"
  34. endif
  35. post-install:
  36. ${INSTALL_DIR} ${IDIR_MIREDO}/etc/miredo ${IDIR_MIREDO}/usr/sbin
  37. ${INSTALL_DIR} ${IDIR_MIREDO}/usr/lib
  38. ${INSTALL_DATA} ${WRKINST}/etc/miredo/miredo.conf \
  39. ${IDIR_MIREDO}/etc/miredo
  40. ${CP} ${WRKINST}/usr/lib/libtun*.so* ${IDIR_MIREDO}/usr/lib
  41. ${CP} ${WRKINST}/usr/lib/libteredo.so* ${IDIR_MIREDO}/usr/lib
  42. ${INSTALL_BIN} ${WRKINST}/usr/sbin/miredo ${IDIR_MIREDO}/usr/sbin/
  43. ${INSTALL_DIR} ${IDIR_MIREDO_SERVER}/usr/sbin
  44. ${INSTALL_BIN} ${WRKINST}/usr/sbin/miredo-server \
  45. ${IDIR_MIREDO_SERVER}/usr/sbin/
  46. include ${TOPDIR}/mk/pkg-bottom.mk