Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.6.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 65181a5280391d69411908c186fd0c1f
  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_NOPARALLEL:= 1
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. PKG_SUBPKGS:= OLSRD OLSRD_MOD_DYN_GW OLSRD_MOD_HTTPINFO
  15. PKG_SUBPKGS+= OLSRD_MOD_NAMESERVICE OLSRD_MOD_TAS
  16. PKGSD_OLSRD_MOD_DYN_GW:= support for dynamic gateway
  17. PKGSN_OLSRD_MOD_DYN_GW:= olsrd
  18. PKGSD_OLSRD_MOD_HTTPINFO:= support for httpinfo
  19. PKGSN_OLSRD_MOD_HTTPINFO:= olsrd
  20. PKGSD_OLSRD_MOD_NAMESERVICE:= nameservice support
  21. PKGSN_OLSRD_MOD_NAMESERVICE:= olsrd
  22. PKGSD_OLSRD_MOD_TAS:= tas support
  23. PKGSN_OLSRD_MOD_TAS:= olsrd
  24. include ${TOPDIR}/mk/package.mk
  25. define PKG_mod_template
  26. INSTALL_MODS_$${ADK_PACKAGE_${1}}+= ${2}-install
  27. ${2}-install:
  28. $${INSTALL_DIR} $${IDIR_${1}}/usr/lib
  29. $${CP} $${WRKINST}/usr/lib/olsrd_${2}.so.* $${IDIR_${1}}/usr/lib/
  30. endef
  31. $(eval $(call PKG_template,OLSRD,olsrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  32. $(eval $(call PKG_template,OLSRD_MOD_DYN_GW,olsrd-mod-dyn-gw,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  33. $(eval $(call PKG_template,OLSRD_MOD_HTTPINFO,olsrd-mod-httpinfo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  34. $(eval $(call PKG_template,OLSRD_MOD_NAMESERVICE,olsrd-mod-nameservice,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  35. $(eval $(call PKG_mod_template,OLSRD_MOD_DYN_GW,dyn_gw))
  36. $(eval $(call PKG_mod_template,OLSRD_MOD_HTTPINFO,httpinfo))
  37. $(eval $(call PKG_mod_template,OLSRD_MOD_NAMESERVICE,nameservice))
  38. CONFIG_STYLE:= manual
  39. TARGET_CFLAGS+= -fPIC -D_GNU_SOURCE
  40. ALL_TARGET+= libs
  41. INSTALL_TARGET+= install_libs
  42. MAKE_ENV+= OS="linux" DEBUG=0 STRIP="true" OFLAGS="${TARGET_CFLAGS}" prefix="/usr"
  43. post-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
  44. ${INSTALL_DIR} ${IDIR_OLSRD}/usr/sbin ${IDIR_OLSRD}/etc
  45. ${INSTALL_DATA} ${WRKINST}/etc/olsrd.conf ${IDIR_OLSRD}/etc/
  46. ${INSTALL_BIN} ${WRKINST}/usr/sbin/olsrd ${IDIR_OLSRD}/usr/sbin/
  47. include ${TOPDIR}/mk/pkg-bottom.mk