Makefile 933 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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= trafshow
  5. PKG_VERSION:= 5.2.3
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 0b2f0bb23b7832138b7d841437b9e182
  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 ${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 ${TOPDIR}/mk/pkg-bottom.mk