summaryrefslogtreecommitdiffstats
path: root/libs/libyder/Makefile
blob: 7f53c4f249cb554bbc5eefaa105850e17d6be410 (plain)
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
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=libyder
PKG_VERSION:=1.4.20
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/babelouest/yder/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=c1a7f2281514d0d0bba912b6b70f371d8c127ccfd644b8c438c9301a0fd4c5f2

PKG_MAINTAINER:=Austin Lane <vidplace7@gmail.com>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=LICENSE

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/yder-$(PKG_VERSION)
CMAKE_INSTALL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/libyder
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE:=Logging library written in C.
  URL:=https://github.com/babelouest/yder
  DEPENDS:=+liborcania
endef

CMAKE_OPTIONS += \
	-DWITH_JOURNALD=off \
	-DCMAKE_BUILD_TYPE=Release

define Package/libyder/description
  Simple and easy to use logging library.
  You can log messages to the console, a file, Syslog, journald or a callback function.
endef

define Package/libyder/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libyder.so* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,libyder))