Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.5.6-r2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= acf15dbd0af521a6826541b567c6473a
  8. PKG_DESCR:= Optimized Link State Routing protocol
  9. PKG_SECTION:= net
  10. PKG_MULTI:= 1
  11. PKG_URL:= http://www.olsr.org
  12. PKG_SITES:= http://www.olsr.org/releases/0.5/
  13. include ${TOPDIR}/mk/package.mk
  14. define PKG_mod_template
  15. INSTALL_MODS_$${ADK_PACKAGE_${1}}+= ${2}-install
  16. ${2}-install:
  17. $${INSTALL_DIR} $${IDIR_${1}}/usr/lib
  18. $${CP} $${WRKINST}/usr/lib/olsrd_${2}.so.* $${IDIR_${1}}/usr/lib/
  19. endef
  20. $(eval $(call PKG_template,OLSRD,olsrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,OLSRD_MOD_DYN_GW,olsrd-mod-dyn-gw,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,OLSRD_MOD_HTTPINFO,olsrd-mod-httpinfo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,OLSRD_MOD_NAMESERVICE,olsrd-mod-nameservice,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,OLSRD_MOD_TAS,olsrd-mod-tas,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_mod_template,OLSRD_MOD_DYN_GW,dyn_gw))
  26. $(eval $(call PKG_mod_template,OLSRD_MOD_HTTPINFO,httpinfo))
  27. $(eval $(call PKG_mod_template,OLSRD_MOD_NAMESERVICE,nameservice))
  28. $(eval $(call PKG_mod_template,OLSRD_MOD_TAS,tas))
  29. CONFIG_STYLE:= manual
  30. BUILD_STYLE:= manual
  31. INSTALL_STYLE:= manual
  32. TCFLAGS+= -fPIC
  33. do-build:
  34. rm -rf ${WRKINST}
  35. mkdir -p ${WRKINST}
  36. ${MAKE} -C "${WRKBUILD}" \
  37. ${TARGET_CONFIGURE_OPTS} \
  38. NODEBUG=1 \
  39. OFLAGS="${TARGET_CFLAGS}" \
  40. OS="linux" \
  41. DESTDIR="${WRKINST}" \
  42. STRIP="true" \
  43. all libs install install_libs
  44. do-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
  45. ${INSTALL_DIR} ${IDIR_OLSRD}/usr/sbin ${IDIR_OLSRD}/etc
  46. ${INSTALL_DATA} ${WRKINST}/etc/olsrd.conf ${IDIR_OLSRD}/etc/
  47. ${INSTALL_BIN} ${WRKINST}/usr/sbin/olsrd ${IDIR_OLSRD}/usr/sbin/
  48. include ${TOPDIR}/mk/pkg-bottom.mk