Skip to content

Commit

Permalink
libyder: add package
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Lane <[email protected]>
  • Loading branch information
vidplace7 committed Dec 9, 2024
1 parent 1f24c07 commit 6ac507a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/liborcania/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=liborcania
PKG_VERSION:=2.3.0
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/babelouest/orcania/tar.gz/v$(PKG_VERSION)?
Expand Down Expand Up @@ -35,4 +35,9 @@ define Package/liborcania/description
Potluck with different functions for different purposes that can be shared among C programs.
endef

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

$(eval $(call BuildPackage,liborcania))
48 changes: 48 additions & 0 deletions libs/libyder/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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.17
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:=fb006e4e2a3e2f992985776808da92cbd87ed386dd3125984025036fdc10bfdf

PKG_MAINTAINER:=Austin Lane <[email protected]>
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
PROVIDES:=libyder
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))

0 comments on commit 6ac507a

Please sign in to comment.