Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:= lsof
  5. PKG_VERSION:= 4.84
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= 3ab54cbc0e4f8ee3b1cfd1d2d1fb81765e7d28144256e5f444faedc4399a969b
  8. PKG_DESCR:= list open files
  9. PKG_SECTION:= sys/utils
  10. PKG_DEPENDS:= libtirpc
  11. PKG_BUILDDEP:= libtirpc
  12. PKG_URL:= http://people.freebsd.org/~abe/
  13. PKG_SITES:= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
  14. PKG_LIBC_DEPENDS:= uclibc glibc
  15. DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.tar.gz
  16. WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}
  17. WRKSRC= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}/${PKG_NAME}_${PKG_VERSION}_src
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,LSOF,lsof,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIG_STYLE:= minimal
  21. CONFIGURE_PROG:= Configure
  22. CONFIGURE_ARGS:= -n linux
  23. XAKE_FLAGS+= CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS} -I$(STAGING_TARGET_DIR)/usr/include/tirpc'
  24. XAKE_FLAGS+= CFGL='${TARGET_LDFLAGS} -L./lib -llsof -ltirpc'
  25. INSTALL_STYLE:= manual
  26. post-extract:
  27. (cd ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}; \
  28. tar xf ${PKG_NAME}_${PKG_VERSION}_src.tar)
  29. do-install:
  30. $(INSTALL_DIR) $(IDIR_LSOF)/usr/sbin
  31. $(INSTALL_BIN) $(WRKBUILD)/lsof \
  32. $(IDIR_LSOF)/usr/sbin
  33. include ${ADK_TOPDIR}/mk/pkg-bottom.mk