banip: release 0.9.6-1
[feed/packages.git] / net / boinc / Makefile
1 # Copyright 2020 by Christian Dreihsig and Steffen Möller
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=boinc
9 PKG_VERSION:=7.24.3
10 PKG_VERSION_SHORT:=$(shell echo $(PKG_VERSION)| cut -f1,2 -d.)
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL:=https://github.com/BOINC/boinc
15 PKG_SOURCE_VERSION:=client_release/$(PKG_VERSION_SHORT)/$(PKG_VERSION)
16 PKG_MIRROR_HASH:=568a87739949e018c3a0ab0b72ba887b82bfc1b91a060f1cf1266dbfe0a5f81b
17
18 PKG_MAINTAINER:=Christian Dreihsig <christian.dreihsig@t-online.de>, Steffen Moeller <moeller@debian.org>
19 PKG_LICENSE:=GPL-3.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:rom_walton:boinc
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=0
25 PKG_FIXUP:=autoreconf
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/target.mk
29
30 define Package/boinc
31 SECTION:=net
32 CATEGORY:=Network
33 TITLE:=BOINC client
34 DEPENDS:=+curl +bzip2 +libstdcpp +libopenssl +zlib
35 USERID:=boinc:boinc
36 URL:=https://github.com/BOINC/boinc/
37 endef
38
39 define Package/boinc/description
40 The Berkeley Open Infrastructure for Network Computing (BOINC) is a
41 software platform for distributed computing: several initiatives of
42 various scientific disciplines all compete for the idle time of
43 desktop computers. The developers' web site at the University of
44 Berkeley serves as a common portal to the otherwise independently run
45 projects.
46
47 This package provides the BOINC core client program that is
48 required to participate in any project that uses BOINC to control what
49 projects to join and to determine constraints for the computation
50 like the percentage of CPU time. OpenWrt does not
51 provide the graphical BOINC Manager, but you can connect to this
52 machine from the BOINC Manager of your desktop computer.
53 endef
54
55 CONFIGURE_ARGS += \
56 --disable-server --disable-manager --enable-client --enable-libraries \
57 --disable-boinczip --enable-install-headers --enable-dynamic-client-linkage \
58 --with-boinc-platform=$(REAL_GNU_TARGET_NAME) \
59 --with-boinc-alt-platform=$(ARCH)-$(BOARD)-$(DEVICE_TYPE)-openwrt-$(TARGET_SUFFIX)
60
61 define Build/InstallDev
62 $(INSTALL_DIR) $(1)/usr/include/boinc
63 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/boinc/* $(1)/usr/include/boinc/
64 $(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/boinc/ # project_specific_defines.h, config.h, version.h, svn_version.h
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.a $(1)/usr/lib/
67 endef
68
69 define Package/boinc/install
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so}* $(1)/usr/lib/
74 $(INSTALL_DIR) $(1)/etc/init.d
75 $(INSTALL_BIN) ./files/boinc-client.init $(1)/etc/init.d/boinc-client
76 $(INSTALL_DIR) $(1)/opt/boinc
77 $(INSTALL_DIR) $(1)/usr/share/boinc
78 $(CP) ./files/global_prefs_override.xml $(1)/usr/share/boinc/global_prefs_override.xml
79 $(CP) ./files/remote_hosts.cfg $(1)/usr/share/boinc/remote_hosts.cfg
80 endef
81
82 $(eval $(call BuildPackage,boinc))