binutils: update to 2.43.1
[openadk.git] / package / lsof / Makefile
blob87a5a69979441b156f94e31e5636c99c443429e6
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= lsof
7 PKG_VERSION:= 4.89
8 PKG_RELEASE:= 2
9 PKG_HASH:= 5d08da7ebe049c9d9a6472d6afb81aa5af54c4733a3f8822cbc22b57867633c9
10 PKG_DESCR:= list open files
11 PKG_SECTION:= sys/utils
12 PKG_DEPENDS:= libtirpc
13 PKG_BUILDDEP:= libtirpc
14 PKG_URL:= http://people.freebsd.org/~abe/
15 PKG_SITES:= https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/
17 PKG_LIBC_DEPENDS:= uclibc-ng glibc
19 DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.tar.gz
20 WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}
21 WRKSRC= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}/${PKG_NAME}_${PKG_VERSION}_src
23 include $(ADK_TOPDIR)/mk/package.mk
25 $(eval $(call PKG_template,LSOF,lsof,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
27 CONFIG_STYLE:= minimal
28 CONFIGURE_PROG:= Configure
29 CONFIGURE_ARGS:= -n linux
30 XAKE_FLAGS+= CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS} -I$(STAGING_TARGET_DIR)/usr/include/tirpc'
31 XAKE_FLAGS+= CFGL='${TARGET_LDFLAGS} -L./lib -llsof -ltirpc'
32 INSTALL_STYLE:= manual
34 post-extract:
35 (cd ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}; \
36 tar xf ${PKG_NAME}_${PKG_VERSION}_src.tar)
38 do-install:
39 $(INSTALL_DIR) $(IDIR_LSOF)/usr/sbin
40 $(INSTALL_BIN) $(WRKBUILD)/lsof \
41 $(IDIR_LSOF)/usr/sbin
43 include ${ADK_TOPDIR}/mk/pkg-bottom.mk