source: packages/utils/lsof/Makefile @ 14378

Last change on this file since 14378 was 14378, checked in by nico, 8 years ago

[packages] lsof: fix build on glibc/eglibc based toolchain, use build kernel version instead of host one, pass optflags without overriding cflags, bump release number

  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1#
2# Copyright (C) 2007-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=lsof
13PKG_VERSION:=4.77
14PKG_RELEASE:=2
15
16PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).dfsg.1.orig.tar.gz
17PKG_SOURCE_URL:=http://ftp2.de.debian.org/debian/pool/main/l/lsof
18PKG_MD5SUM:=6751a1cbdefb751b7cb2e22e6e5bdacb
19
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).dfsg.1.orig
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/lsof
25  SECTION:=utils
26  CATEGORY:=Utilities
27  TITLE:=LiSt Open Files - a diagnostic tool
28  URL:=http://www.akadia.com/services/lsof_intro.html
29endef
30
31define Build/Configure
32        cd $(PKG_BUILD_DIR); \
33                LINUX_CLIB="-DGLIBCV=2" LSOF_VSTR="$(LINUX_VERSION)" \
34                ./Configure -n linux
35endef
36
37define Build/Compile   
38        $(MAKE) -C $(PKG_BUILD_DIR) \
39                CC="$(TARGET_CC)" \
40                DEBUG="$(TARGET_CFLAGS)" \
41                LDFLAGS="$(TARGET_LDFLAGS)" 
42endef
43
44define Package/lsof/install     
45        $(INSTALL_DIR) $(1)/usr/bin
46        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lsof $(1)/usr/bin
47endef
48
49$(eval $(call BuildPackage,lsof))
Note: See TracBrowser for help on using the repository browser.