summaryrefslogtreecommitdiff
path: root/base64c/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-07-23 17:20:09 +0200
committerKarel Kočí <cynerd@email.cz>2020-07-23 17:20:09 +0200
commitb99c4d1af4ee509b4299b081fb222d33eafe8e39 (patch)
tree49d2ffc87444168c6c0f484e0e3a37e1bee4537b /base64c/Makefile
parentee24ad882119908409137de5ac753895bc948cc6 (diff)
downloadopenwrt-personal-pkgs-b99c4d1af4ee509b4299b081fb222d33eafe8e39.tar.gz
openwrt-personal-pkgs-b99c4d1af4ee509b4299b081fb222d33eafe8e39.tar.bz2
openwrt-personal-pkgs-b99c4d1af4ee509b4299b081fb222d33eafe8e39.zip
base64c: add new package
Diffstat (limited to 'base64c/Makefile')
-rw-r--r--base64c/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/base64c/Makefile b/base64c/Makefile
new file mode 100644
index 0000000..41ca862
--- /dev/null
+++ b/base64c/Makefile
@@ -0,0 +1,52 @@
+#
+## Copyright (C) 2020 CZ.NIC z.s.p.o. (http://www.nic.cz/)
+#
+## This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+# #
+#
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=base64c
+#PKG_VERSION:=0.2.0
+PKG_RELEASE:=1
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/updater/updater.git
+#PKG_SOURCE_VERSION:=v$(PKG_VERSION)
+
+PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_INSTALL:=1
+PKG_FIXUP:=autoreconf
+
+include $(INCLUDE_DIR)/autopkg-branch.mk
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/autotools.mk
+
+define Package/base64c
+ SECTION:=libs
+ CATEGORY:=Libraries
+ TITLE:=base64c
+endef
+
+CONFIGURE_ARGS += \
+ --disable-tests \
+ --disable-linters
+
+define Package/base64c/install
+ $(INSTALL_DIR) $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbase64c.so* $(1)/usr/lib/
+endef
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/
+
+ $(INSTALL_DIR) $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,base64c))