Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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:= 2
  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. DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.tar.gz
  13. WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}
  14. WRKSRC= ${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}' CFLAGS='${TARGET_CFLAGS}' CFGL='${TARGET_LDFLAGS} -L./lib -llsof'
  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