05ed99958fa711976cbf2b0d5f6366f4fd94ffed
[openwrt/svn-archive/archive.git] / package / utils / fbtest / Makefile
1 #
2 # Copyright (C) 2012 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:=fbtest
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 PKG_LICENSE:=GPL-2.0+
16 PKG_LICENSE_FILES:=
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/fbtest
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=Frame buffer device testing tool
24 DEPENDS:=@DISPLAY_SUPPORT
25 endef
26
27 define Build/Prepare
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)/
30 endef
31
32 define Build/Configure
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 CC="$(TARGET_CC)" \
38 CFLAGS="$(TARGET_CFLAGS) -Wall" \
39 LDFLAGS="$(TARGET_LDFLAGS)"
40 endef
41
42 define Package/fbtest/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fbtest $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,fbtest))