treewide: refresh hashes after move to use ZSTD as default
[feed/packages.git] / libs / libsoc / Makefile
1 #
2 # Copyright (C) 2017 Yegor Yefremov <yegorslists@googlemail.com>
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:=libsoc
11 PKG_RELEASE:=2
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL:=https://github.com/jackmitch/libsoc.git
15 PKG_MIRROR_HASH:=6aefbd76922fd6b606b9fcbda555dfe079f3afe445a6180d8be0fbb8fd27f424
16 PKG_SOURCE_DATE:=2016-12-22
17 PKG_SOURCE_VERSION:=5b788d4d558a78c52e6cfe97325e4564b307a3a0
18
19 PKG_MAINTAINER:=Yegor Yefremov <yegorslists@googlemail.com>
20 PKG_LICENSE:=LGPL-2.1
21 PKG_LICENSE_FILES:=LICENCE
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libsoc
30 SECTION:=libs
31 CATEGORY:=Libraries
32 DEPENDS:=+libpthread
33 TITLE:=SoC Library
34 URL:=https://github.com/jackmitch/libsoc
35 endef
36
37 define Package/libsoc/description
38 libsoc: C library for interfacing with common SoC peripherals through
39 generic kernel interfaces
40 endef
41
42 CONFIGURE_ARGS += \
43 --enable-shared \
44 --enable-static \
45 --disable-cxx
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsoc_board.h $(1)/usr/include/
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsoc_conffile.h $(1)/usr/include/
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsoc_debug.h $(1)/usr/include/
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsoc_gpio.h $(1)/usr/include/
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsoc_i2c.h $(1)/usr/include/
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsoc_pwm.h $(1)/usr/include/
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/libsoc_spi.h $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoc.{a,so*} $(1)/usr/lib/
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsoc.pc $(1)/usr/lib/pkgconfig
60 endef
61
62 define Package/libsoc/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoc.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,libsoc))