diff options
author | Karel Kočí <cynerd@email.cz> | 2020-09-26 11:21:29 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-09-26 11:21:29 +0200 |
commit | ca796b169e12d420a27ce18d75a80d689c6f3822 (patch) | |
tree | 24a227cfff5fd08cd8373a2e95acba61e7e7f5f5 /logc/Makefile | |
parent | 5fee4bd515d55cb1ded1bed0c34fb89c22e01a87 (diff) | |
download | openwrt-personal-pkgs-ca796b169e12d420a27ce18d75a80d689c6f3822.tar.gz openwrt-personal-pkgs-ca796b169e12d420a27ce18d75a80d689c6f3822.tar.bz2 openwrt-personal-pkgs-ca796b169e12d420a27ce18d75a80d689c6f3822.zip |
Add packages for testing
Diffstat (limited to 'logc/Makefile')
-rw-r--r-- | logc/Makefile | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/logc/Makefile b/logc/Makefile new file mode 100644 index 0000000..d8fffcd --- /dev/null +++ b/logc/Makefile @@ -0,0 +1,76 @@ +# +## Copyright (C) 2020 CZ.NIC z.s.p.o. (https://www.nic.cz/) +# +## This is free software, licensed under the GNU General Public License v3. +# See /LICENSE for more information. +# # +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=logc +PKG_VERSION:=0.0.1 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/base64c.git +#PKG_SOURCE_VERSION:=v$(PKG_VERSION) +PKG_SOURCE_VERSION:=57c3f8db4d55f579411aa46fbcc73fa9e6e2780f + +PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz> +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +PKG_INSTALL:=1 +PKG_FIXUP:=autoreconf + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/autotools.mk + +define Package/Common + SECTION:=libs + CATEGORY:=Libraries + URL:=https://gitlab.nic.cz/turris/logc.git +endef + +define Package/logc + $(call Package/Common) + TITLE:=logc +endef + +define Package/logc-argp + $(call Package/Common) + TITLE:=logc-argp +endef + +define Package/logc/description + Logging library for C (LogC) +endef + +define Package/logc-argp/description + Argument parsing library for LogC base on argp. +endef + +CONFIGURE_ARGS += \ + --disable-tests \ + --disable-linters + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + + $(INSTALL_DIR) $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ +endef + +define Package/logc/install + $(INSTALL_DIR) $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblogc.so* $(1)/usr/lib/ +endef + +define Package/logc-argp/install + $(INSTALL_DIR) $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblogc_argp.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,logc)) +$(eval $(call BuildPackage,logc-argp)) |