Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= lsof
  5. PKG_VERSION:= 4.84
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6dae655988c810a7042c06a4e2fa3c5f
  8. PKG_DESCR:= list open files
  9. PKG_SECTION:= misc
  10. PKG_URL:= http://people.freebsd.org/~abe/
  11. PKG_SITES:= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
  12. PKG_HOST_DEPENDS:= !darwin
  13. DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.tar.gz
  14. WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}/${PKG_NAME}_${PKG_VERSION}_src
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,LSOF,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= minimal
  18. CONFIGURE_PROG:= Configure
  19. CONFIGURE_ARGS:= -n linux
  20. XAKE_FLAGS+= CC='${TARGET_CC}'
  21. INSTALL_STYLE:= manual
  22. post-extract:
  23. (cd ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}; \
  24. tar xf ${PKG_NAME}_${PKG_VERSION}_src.tar)
  25. do-install:
  26. $(INSTALL_DIR) $(IDIR_LSOF)/usr/sbin
  27. $(INSTALL_BIN) $(WRKBUILD)/lsof \
  28. $(IDIR_LSOF)/usr/sbin
  29. include ${TOPDIR}/mk/pkg-bottom.mk