unfs3: add support for compiling with the external librpc
[openwrt/svn-archive/archive.git] / net / cdp / Makefile
1 #
2 # Copyright (C) 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cdp-tools
11 PKG_VERSION:=20070302
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=cdp-tools.tar.gz
15 PKG_SOURCE_URL:=http://gpl.internetconnection.net/files/
16 PKG_MD5SUM:=94e3a355a5c82a2a5b14114d1f9b0599
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_BUILD_DEPENDS:=+libpcap +libnet1
23
24
25 define Package/cdp-tools
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=CDP tools (CISCO)
29 URL:=http://gpl.internetconnection.net
30 DEPENDS:=+libpcap
31 endef
32
33 define Package/dhcpcd/description
34 Tools to work with the Cisco Discovery Protocol (CDP)
35 endef
36
37 define Build/Compile
38 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/pcap -I$(STAGING_DIR)/usr/lib/libnet-1.1.x/include" \
39 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libnet-1.1.x/lib" \
40 CFLAGS="$(TARGET_CFLAGS)" \
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 $(TARGET_CONFIGURE_OPTS) \
43 all
44 endef
45
46
47 define Package/cdp-tools/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/{cdp-send,cdp-listen,cdp-routemgr} $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,cdp-tools))