libnfc: moved to github
[openwrt.org/packages.git] / utils / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#
# Copyright (C) 2012-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=bluelog
PKG_VERSION:=1.1.0
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.digifail.com/software/bluelog
PKG_MD5SUM:=a5327d64731cd45debb57ab1edbe6e43
 
PKG_INSTALL:=1
 
include $(INCLUDE_DIR)/package.mk
 
define Package/bluelog/Default
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Bluetooth scanner and logger
  URL:=http://www.digifail.com/software/bluelog.shtml
  DEPENDS:=+bluez-utils +kmod-bluetooth
endef
 
define Package/bluelog/Default/description
  Bluelog is a simple Bluetooth scanner designed to tell you how many
  discoverable devices there are in an area as quickly as possible. It is
  intended to be used as a site survey tool, identifying the number of possible
  Bluetooth targets there are in the surrounding environment.
endef
 
define Package/bluelog
  $(call Package/bluelog/Default)
endef
 
define Package/bluelog/description
  $(call Package/bluelog/Default/description)
endef
 
define Package/bluelog-live
  $(call Package/bluelog/Default)
  TITLE+= (live output)
  DEPENDS+= bluelog
endef
 
define Package/bluelog-live/description
  $(call Package/bluelog/Default/description)
  This package contains the files for "Bluelog Live", an optional mode of
  Bluelog which creates a real-time webpage of discovered Bluetooth devices.
endef
 
TARGET_CFLAGS += -DOPENWRT
 
MAKE_FLAGS += \
         LIBS="$(TARGET_LDFLAGS) -lbluetooth -lm"
 
define Package/bluelog/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/bluelog $(1)/usr/bin/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/bluelog.init $(1)/etc/init.d/bluelog
endef
 
define Package/bluelog-live/install
        $(INSTALL_DIR) $(1)/www/bluelog
        $(CP) $(PKG_INSTALL_DIR)/usr/share/bluelog/*.html $(1)/www/bluelog/
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/share/bluelog/openwrt.css \
                $(1)/www/bluelog/style.css
        $(INSTALL_DIR) $(1)/www/bluelog/images
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/share/bluelog/images/digifail_logo.png \
                $(PKG_INSTALL_DIR)/usr/share/bluelog/images/email.png \
                $(PKG_INSTALL_DIR)/usr/share/bluelog/images/favicon.png \
                $(PKG_INSTALL_DIR)/usr/share/bluelog/images/openwrt_logo.png \
                $(PKG_INSTALL_DIR)/usr/share/bluelog/images/qrcontact.png \
                $(1)/www/bluelog/images/
        $(INSTALL_DIR) $(1)/www/cgi-bin
        $(CP) $(PKG_INSTALL_DIR)/usr/share/bluelog/cgi-bin/* $(1)/www/cgi-bin/
endef
 
$(eval $(call BuildPackage,bluelog))
$(eval $(call BuildPackage,bluelog-live))
 
comments