Add more license tags with SPDX identifiers
[openwrt/staging/chunkeey.git] / package / network / utils / maccalc / Makefile
1 #
2 # Copyright (C) 2011 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:=maccalc
11 PKG_RELEASE:=1
12 PKG_LICENSE:=GPL-2.0
13
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15
16 PKG_LICENSE:=GPL-2.0
17 PKG_LICENSE_FILES:=
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/maccalc
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=MAC address calculation
25 endef
26
27 define Package/maccalc/description
28 This package contains a MAC address manipulation utility.
29 endef
30
31 define Build/Prepare
32 mkdir -p $(PKG_BUILD_DIR)
33 $(CP) ./src/* $(PKG_BUILD_DIR)/
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 CC="$(TARGET_CC)" \
42 CFLAGS="$(TARGET_CFLAGS) -Wall" \
43 LDFLAGS="$(TARGET_LDFLAGS)"
44 endef
45
46 define Package/maccalc/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/maccalc $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,maccalc))