Upgrade libart to 2.3.19, fixes rrdtool compilation #2906
[openwrt/svn-archive/archive.git] / net / mii-tool / Makefile
1 #
2 # Copyright (C) 2006 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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mii-tool
12 PKG_VERSION:=1.9.1.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://freshmeat.net/redir/mii-tool/59072/url_bz2/
17 PKG_MD5SUM:=f65dbeb1c2392acffd4c94138b1f2e52
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/mii-tool
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=configure media type using MII commands
28 URL:=http://freshmeat.net/redir/mii-tool/
29 endef
30
31 define Package/mii-tool/description
32 The mii-tool command allows you to set or autodetect the media type
33 or mii chipset-based ethernet devices. It traditionally had been
34 distributed in the net-tools package. This is a single distribution
35 optimized for embedded systems and fully automated cross/-sysroot-builds
36 endef
37
38 MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE -I. -idirafter ./include/"
39
40 define Package/mii-tool/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(CP) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,mii-tool))