Makefile 975 B

123456789101112131415161718192021222324252627282930
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= trafshow
  5. PKG_VERSION:= 5.2.3
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= ea7e22674a66afcc7174779d0f803c1f25b42271973b4f75fab293b8d7db11fc
  8. PKG_DESCR:= traffic analyzing tool
  9. PKG_SECTION:= net/perf
  10. PKG_BUILDDEP:= libpcap ncurses
  11. PKG_DEPENDS:= libpcap libncurses libpthread
  12. PKG_SITES:= http://openadk.org/distfiles
  13. PKG_NOPARALLEL:= 1
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,TRAFSHOW,trafshow,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_CPPFLAGS+= -DHAVE_SOCKADDR_STORAGE -DHAVE_HAS_COLORS -D_GNU_SOURCE
  18. TARGET_LDFLAGS+= -ltinfo
  19. trafshow-install:
  20. ${INSTALL_DIR} ${IDIR_TRAFSHOW}/usr/bin
  21. ${INSTALL_BIN} ${WRKINST}/usr/bin/trafshow ${IDIR_TRAFSHOW}/usr/bin/
  22. include ${ADK_TOPDIR}/mk/pkg-bottom.mk