Add a few SPDX tags
[openwrt.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 include $(INCLUDE_DIR)/package.mk
17
18 define Package/maccalc
19   SECTION:=utils
20   CATEGORY:=Utilities
21   TITLE:=MAC address calculation
22 endef
23
24 define Package/maccalc/description
25  This package contains a MAC address manipulation utility.
26 endef
27
28 define Build/Prepare
29         mkdir -p $(PKG_BUILD_DIR)
30         $(CP) ./src/* $(PKG_BUILD_DIR)/
31 endef
32
33 define Build/Configure
34 endef
35
36 define Build/Compile
37         $(MAKE) -C $(PKG_BUILD_DIR) \
38                 CC="$(TARGET_CC)" \
39                 CFLAGS="$(TARGET_CFLAGS) -Wall" \
40                 LDFLAGS="$(TARGET_LDFLAGS)"
41 endef
42
43 define Package/maccalc/install
44         $(INSTALL_DIR) $(1)/usr/sbin
45         $(INSTALL_BIN) $(PKG_BUILD_DIR)/maccalc $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,maccalc))