ksymoops: remove package, it has been obsolete and useless for a long time
[openwrt.org/packages.git] / libs / 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
#
# Copyright (C) 2012 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:=libugpio
PKG_VERSION:=0.0.1
PKG_RELEASE=$(PKG_SOURCE_VERSION)-1
 
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/mhei/libugpio.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=8235d04096bfa9db594d5df75c5cd634a3bbc39a
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 
PKG_INSTALL:=1
 
include $(INCLUDE_DIR)/package.mk
 
define Package/libugpio
  SECTION:=libs
  CATEGORY:=Libraries
  URL:=https://github.com/mhei/libugpio
  TITLE:=Library for using sysfs gpio interface from C programs
  DEPENDS:=@GPIO_SUPPORT
endef
 
define Package/libugpio/description
  libugpio is a library to ease the use of linux kernel's sysfs
  gpio interface from C programs and/or other libraries.
endef
 
define Package/gpioctl-sysfs
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Tool for controlling gpio pins
  DEPENDS:=+libugpio
endef
 
define Package/gpioctl-sysfs/description
  Tool for controlling gpio pins using the sysfs api provided by the kernel.
endef
 
define Build/Configure
        ( cd "$(PKG_BUILD_DIR)"; ./autogen.sh )
        $(call Build/Configure/Default)
endef
 
define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/ugpio $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libugpio.{so*,a} $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libugpio.pc $(1)/usr/lib/pkgconfig/
endef
 
define Package/libugpio/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libugpio.so* $(1)/usr/lib/
endef
 
define Package/gpioctl-sysfs/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpioctl $(1)/usr/bin/
endef
 
$(eval $(call BuildPackage,libugpio))
$(eval $(call BuildPackage,gpioctl-sysfs))
 
comments