phytool: add phytool utility
[openwrt/staging/chunkeey.git] / package / network / utils / phytool / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=phytool
4 PKG_VERSION:=2
5 PKG_RELEASE:=1
6
7 PKG_RELEASE=$(PKG_SOURCE_VERSION)
8
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
10 PKG_SOURCE_URL:=https://github.com/wkz/phytool/releases/download/v$(PKG_VERSION)
11 PKG_HASH:=9901a14e8c6af02b7333c60b21ff81f50620e8326d54827185e5617ff9b11d21
12
13 PKG_LICENSE:=GPL-2.0+
14 PKG_LICENSE_FILES:=LICENSE
15
16 PKG_MAINTAINER:=Christian Lamparter <chunkeey@gmail.com>
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/phytool
21 SECTION:=net
22 CATEGORY:=Utilities
23 TITLE:=phytool Linux MDIO register access
24 URL:=https://github.com/wkz/phytool.git
25 endef
26
27 define Package/phytool/description
28 Linux MDIO register access
29 endef
30
31 define Build/Configure
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 CC="$(TARGET_CC)" \
37 CFLAGS="$(TARGET_CFLAGS) -Wall" \
38 LDFLAGS="$(TARGET_LDFLAGS)"
39 endef
40
41 define Package/phytool/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/phytool $(1)/usr/bin/
44 endef
45
46 $(eval $(call BuildPackage,phytool))