1*4882a593Smuzhiyun# Copyright (C) 2016 Khem Raj <raj.khem@gmail.com> 2*4882a593Smuzhiyun# Released under the MIT license (see COPYING.MIT for the terms) 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunSUMMARY = "Open-source software for volunteer computing" 5*4882a593SmuzhiyunDESCRIPTION = "The Berkeley Open Infrastructure for Network Computing (BOINC) is an open- \ 6*4882a593Smuzhiyunsource software platform which supports distributed computing, primarily in \ 7*4882a593Smuzhiyunthe form of volunteer computing and desktop Grid computing. It is well \ 8*4882a593Smuzhiyunsuited for problems which are often described as trivially parallel. BOINC \ 9*4882a593Smuzhiyunis the underlying software used by projects such as SETI@home, Einstein@Home, \ 10*4882a593SmuzhiyunClimatePrediciton.net, the World Community Grid, and many other distributed \ 11*4882a593Smuzhiyuncomputing projects. \ 12*4882a593SmuzhiyunThis package installs the BOINC client software, which will allow your \ 13*4882a593Smuzhiyuncomputer to participate in one or more BOINC projects, using your spare \ 14*4882a593Smuzhiyuncomputer time to search for cures for diseases, model protein folding, study \ 15*4882a593Smuzhiyunglobal warming, discover sources of gravitational waves, and many other types \ 16*4882a593Smuzhiyunof scientific and mathematical research." 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunHOMEPAGE = "http://boinc.berkeley.edu/" 19*4882a593SmuzhiyunLICENSE = "LGPL-2.0-or-later & GPL-3.0-only" 20*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ 21*4882a593Smuzhiyun file://COPYING.LESSER;md5=6a6a8e020838b23406c81b19c1d46df6" 22*4882a593SmuzhiyunSECTION = "applications" 23*4882a593SmuzhiyunDEPENDS = "curl \ 24*4882a593Smuzhiyun jpeg \ 25*4882a593Smuzhiyun openssl \ 26*4882a593Smuzhiyun sqlite3 \ 27*4882a593Smuzhiyun virtual/egl \ 28*4882a593Smuzhiyun ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'libnotify', '', d)} \ 29*4882a593Smuzhiyun ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk+ libnotify xcb-util libxscrnsaver', '', d)} \ 30*4882a593Smuzhiyun nettle \ 31*4882a593Smuzhiyun" 32*4882a593SmuzhiyunSRCREV = "b49adfb118211e11c719766c0d71e7bdfe7f3363" 33*4882a593SmuzhiyunBRANCH = "client_release/7/7.18" 34*4882a593SmuzhiyunSRC_URI = "git://github.com/BOINC/boinc;protocol=https;branch=${BRANCH} \ 35*4882a593Smuzhiyun file://boinc-AM_CONDITIONAL.patch \ 36*4882a593Smuzhiyun file://gtk-configure.patch \ 37*4882a593Smuzhiyun file://4563.patch \ 38*4882a593Smuzhiyun file://0001-scripts-Do-not-check-for-files-on-build-host.patch \ 39*4882a593Smuzhiyun" 40*4882a593Smuzhiyun 41*4882a593Smuzhiyuninherit gettext autotools pkgconfig features_check systemd 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunREQUIRED_DISTRO_FEATURES += "opengl" 44*4882a593Smuzhiyun 45*4882a593SmuzhiyunS = "${WORKDIR}/git" 46*4882a593Smuzhiyun 47*4882a593SmuzhiyunEXTRA_OECONF += "\ 48*4882a593Smuzhiyun --enable-libraries \ 49*4882a593Smuzhiyun --enable-unicode \ 50*4882a593Smuzhiyun --enable-shared \ 51*4882a593Smuzhiyun --enable-dynamic-client-linkage \ 52*4882a593Smuzhiyun --enable-client \ 53*4882a593Smuzhiyun --disable-server \ 54*4882a593Smuzhiyun --disable-static \ 55*4882a593Smuzhiyun --disable-manager \ 56*4882a593Smuzhiyun --with-ssl=${STAGING_EXECPREFIXDIR} \ 57*4882a593Smuzhiyun --without-wxdir \ 58*4882a593Smuzhiyun --without-x \ 59*4882a593Smuzhiyun --with-boinc-platform=${TARGET_SYS} \ 60*4882a593Smuzhiyun ac_cv_c_undeclared_builtin_options='none' \ 61*4882a593Smuzhiyun" 62*4882a593Smuzhiyunexport PKG_CONFIG = "${STAGING_BINDIR_NATIVE}/pkg-config" 63*4882a593Smuzhiyun 64*4882a593Smuzhiyundo_configure:prepend () { 65*4882a593Smuzhiyun if [ "${@bb.utils.contains('DEPENDS', 'gtk+', '1', '0', d)}" = "0" ] 66*4882a593Smuzhiyun then 67*4882a593Smuzhiyun export GTK2_CFLAGS="" 68*4882a593Smuzhiyun export GTK2_LIBS="" 69*4882a593Smuzhiyun fi 70*4882a593Smuzhiyun} 71*4882a593Smuzhiyun 72*4882a593Smuzhiyundo_compile:prepend () { 73*4882a593Smuzhiyun # Disable rpaths 74*4882a593Smuzhiyun sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${B}/libtool 75*4882a593Smuzhiyun sed -i -e 's|^sys_lib_dlsearch_path_spec=.*|sys_lib_dlsearch_path_spec=""|g' ${B}/libtool 76*4882a593Smuzhiyun sed -i -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${B}/libtool 77*4882a593Smuzhiyun} 78*4882a593Smuzhiyun 79*4882a593Smuzhiyundo_install:prepend() { 80*4882a593Smuzhiyun # help script install a bit to do right thing for OE 81*4882a593Smuzhiyun if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 82*4882a593Smuzhiyun mkdir -p ${D}${systemd_system_unitdir} 83*4882a593Smuzhiyun else 84*4882a593Smuzhiyun mkdir -p ${D}${sysconfdir}/init.d 85*4882a593Smuzhiyun fi 86*4882a593Smuzhiyun mkdir -p ${D}${sysconfdir}/default 87*4882a593Smuzhiyun} 88*4882a593Smuzhiyun 89*4882a593SmuzhiyunSYSTEMD_SERVICE:${PN} = "boinc-client.service" 90*4882a593Smuzhiyun 91*4882a593SmuzhiyunFILES:${PN} += "${libdir}/systemd" 92