Makefile 2.0 KB

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