Makefile 2.1 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:= olsrd
  5. PKG_VERSION:= 0.6.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 84e9295457cab50539f776118939b343
  8. PKG_DESCR:= Optimized Link State Routing protocol
  9. PKG_SECTION:= wifi
  10. PKG_URL:= http://www.olsr.org/
  11. PKG_SITES:= http://www.olsr.org/releases/0.6/
  12. PKG_MULTI:= 1
  13. PKG_NOPARALLEL:= 1
  14. PKG_SUBPKGS:= OLSRD OLSRD_MOD_DYN_GW OLSRD_MOD_HTTPINFO OLSRD_MOD_NAMESERVICE
  15. PKG_SUBPKGS+= OLSRD_MOD_TAS
  16. include ${TOPDIR}/mk/package.mk
  17. define PKG_mod_template
  18. INSTALL_MODS_$${ADK_PACKAGE_${1}}+= ${2}-install
  19. ${2}-install:
  20. $${INSTALL_DIR} $${IDIR_${1}}/usr/lib
  21. $${CP} $${WRKINST}/usr/lib/olsrd_${2}.so.* $${IDIR_${1}}/usr/lib/
  22. endef
  23. $(eval $(call PKG_template,OLSRD,olsrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,OLSRD_MOD_DYN_GW,olsrd-mod-dyn-gw,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,OLSRD_MOD_HTTPINFO,olsrd-mod-httpinfo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,OLSRD_MOD_NAMESERVICE,olsrd-mod-nameservice,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,OLSRD_MOD_TAS,olsrd-mod-tas,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. $(eval $(call PKG_mod_template,OLSRD_MOD_DYN_GW,dyn_gw))
  29. $(eval $(call PKG_mod_template,OLSRD_MOD_HTTPINFO,httpinfo))
  30. $(eval $(call PKG_mod_template,OLSRD_MOD_NAMESERVICE,nameservice))
  31. $(eval $(call PKG_mod_template,OLSRD_MOD_TAS,tas))
  32. CONFIG_STYLE:= manual
  33. TARGET_CFLAGS+= -fPIC
  34. ALL_TARGET+= libs
  35. INSTALL_TARGET+= install_libs
  36. MAKE_ENV+= OS="linux" NODEBUG=1 STRIP="true" OFLAGS="${TARGET_CFLAGS}"
  37. post-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
  38. ${INSTALL_DIR} ${IDIR_OLSRD}/usr/sbin ${IDIR_OLSRD}/etc
  39. ${INSTALL_DATA} ${WRKINST}/etc/olsrd.conf ${IDIR_OLSRD}/etc/
  40. ${INSTALL_BIN} ${WRKINST}/usr/sbin/olsrd ${IDIR_OLSRD}/usr/sbin/
  41. include ${TOPDIR}/mk/pkg-bottom.mk