boinc-wrapper: add new package
[feed/packages.git] / net / boinc-wrapper / Makefile
1 # SPDX-Identifier-License: GPL-3.0-or-later
2 #
3 # Copyright (C) 2023 by Vitalii Koshura <lestat.de.lionkur@gmail.com>
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=boinc-wrapper
9 PKG_VERSION:=26018
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://codeload.github.com/BOINC/boinc/tar.gz/refs/tags/wrapper/$(PKG_VERSION)?
14 PKG_HASH:=a93ae0a9e640a893e78f523c6d93f31b1d5812092f85af4e9ce964846373f55d
15
16 PKG_MAINTAINER:=Vitalii Koshura <lestat.de.lionkur@gmail.com>
17 PKG_LICENSE:=GPL-3.0-or-later
18 PKG_LICENSE_FILES:=COPYING
19 PKG_CPE_ID:=cpe:/a:boinc-wrapper:boinc-wrapper
20
21 PKG_INSTALL:=1
22 PKG_BUILD_PARALLEL:=0
23 PKG_FIXUP:=autoreconf
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/target.mk
27
28 define Package/boinc-wrapper
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=BOINC wrapper
32 DEPENDS:=+libstdcpp
33 URL:=https://github.com/BOINC/boinc/
34 endef
35
36 define Package/boinc-wrapper/description
37 The Berkeley Open Infrastructure for Network Computing (BOINC) is a
38 software platform for distributed computing: several initiatives of
39 various scientific disciplines all compete for the idle time of
40 desktop computers. The developers' web site at the University of
41 Berkeley serves as a common portal to the otherwise independently run
42 projects.
43
44 This package provides the BOINC wrapper that runs the Project applications as
45 subprocesses, and handles all communication with the BOINC client
46 (e.g., to report CPU time and fraction done).
47 endef
48
49 CONFIGURE_ARGS += \
50 --disable-server --disable-manager --disable-client --enable-libraries \
51 --enable-boinczip \
52 --with-boinc-platform=$(REAL_GNU_TARGET_NAME) \
53 --with-boinc-alt-platform=$(ARCH)-$(BOARD)-$(DEVICE_TYPE)-openwrt-$(TARGET_SUFFIX)
54
55 TARGET_CFLAGS += -Wno-format -Wno-format-security
56 TARGET_CPPFLAGS += -Wno-format -Wno-format-security
57
58 define Build/Compile
59 $(call Build/Compile/Default)
60 $(MAKE_VARS) $(MAKE) \
61 -C $(PKG_BUILD_DIR)/samples/wrapper \
62 $(MAKE_FLAGS)
63 endef
64
65 define Package/boinc-wrapper/install
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(INSTALL_BIN) $(PKG_BUILD_DIR)/samples/wrapper/wrapper $(1)/usr/bin/boinc-wrapper
68 endef
69
70 $(eval $(call BuildPackage,boinc-wrapper))