1
0

Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= iptraf
  5. PKG_VERSION:= 3.0.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 004c2c005a1b78739e22bc49d33e244d
  8. PKG_DESCR:= console-based network monitoring program.
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libncurses
  11. PKG_BUILDDEP:= ncurses
  12. PKG_URL:= http://iptraf.seul.org/
  13. PKG_SITES:= ftp://iptraf.seul.org/pub/iptraf/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,IPTRAF,iptraf,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= manual
  18. BUILD_STYLE:= manual
  19. INSTALL_STYLE:= manual
  20. TARGET_CPPFLAGS+= -D_GNU_SOURCE
  21. TARGET_LDFLAGS+= -ltinfo
  22. do-build:
  23. ${MAKE} -C ${WRKBUILD}/src \
  24. ${TARGET_CONFIGURE_OPTS} \
  25. CFLAGS="${TARGET_CFLAGS}" \
  26. DEBUG="" \
  27. INCLUDEDIR="-I../support -I${STAGING_TARGET_DIR}/usr/include" \
  28. LDOPTS="${TARGET_LDFLAGS}" \
  29. PLATFORM="-DPLATFORM=\\\"Linux/${ARCH}\\\"" \
  30. TARGET="/usr/bin" \
  31. WORKDIR="/var/lib/iptraf" \
  32. all
  33. do-install:
  34. ${INSTALL_DIR} ${IDIR_IPTRAF}/usr/bin
  35. ${INSTALL_BIN} ${WRKBUILD}/src/iptraf ${IDIR_IPTRAF}/usr/bin/
  36. include ${TOPDIR}/mk/pkg-bottom.mk