PORTNAME= boinc-client DISTVERSIONPREFIX= client_release/8.0/ DISTVERSION= 8.0.2 PORTREVISION= 1 CATEGORIES= net MAINTAINER= ler@FreeBSD.org COMMENT= Berkeley Open Infrastructure for Network Computing client WWW= https://boinc.berkeley.edu/ LICENSE= LGPL3 USES= autoreconf compiler:c++11-lang desktop-file-utils dos2unix \ gmake libtool pkgconfig ssl tar DOS2UNIX_GLOB= *.xpm USE_GITHUB= yes GH_ACCOUNT= BOINC GH_PROJECT= boinc USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-server CONFIGURE_ENV= OBJCXX="${CXX}" INSTALL_TARGET= install-strip CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo SUB_FILES= pkg-deinstall pkg-install SUB_LIST= BOINC_CLIENT_GROUP="${BOINC_CLIENT_GROUP}" \ BOINC_CLIENT_HOME="${BOINC_CLIENT_HOME}" \ BOINC_CLIENT_USER="${BOINC_CLIENT_USER}" \ LOCALBASE="${LOCALBASE}" \ PREFIX="${PREFIX}" USERS= boinc GROUPS= boinc OPTIONS_DEFINE= CLIENT LINUX MANAGER NLS SKINS USER X11 OPTIONS_DEFAULT= CLIENT MANAGER USER X11 OPTIONS_GROUP= SCRIPT OPTIONS_GROUP_SCRIPT= NO_GUI_RPC NO_NET_INFO OPTIONS_SUB= yes CLIENT_DESC= BOINC Build client LINUX_DESC= Accept applications Linux science MANAGER_DESC= BOINC Build GUI manager NLS_DESC= Install language translations for use in the GUI NO_GUI_RPC_DESC= (breaks and boinc_curses) Disable GUI RPC socket NO_NET_INFO_DESC= address and Do host name not send servers to SCRIPT_DESC= Command in line options script SKINS_DESC= BOINC for Install manager more skins USER_DESC= and BOINC client Create/check directory user X11_DESC= API Build graphics CLIENT_LIB_DEPENDS= libcurl.so:ftp/curl \ libfreetype.so:print/freetype2 CLIENT_RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss CLIENT_USE= RC_SUBR=boinc-client CLIENT_CONFIGURE_ENABLE= client LINUX_USES= linux LINUX_CONFIGURE_ON= --with-boinc-alt-platform=x86_64-pc-linux-gnu MANAGER_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libnotify.so:devel/libnotify \ libsqlite3.so:databases/sqlite3 \ libxcb-util.so:x11/xcb-util MANAGER_USES= gnome iconv MANAGER_USE= GNOME=cairo,gdkpixbuf2,glib20,pango \ WX=3.2+ \ XORG=x11,xcb,xext,xscrnsaver MANAGER_CONFIGURE_ON= --with-sqlite3-prefix=${LOCALBASE} MANAGER_CONFIGURE_OFF= --with-wx-config=false \ --without-x MANAGER_CONFIGURE_ENABLE= manager NLS_USES= gettext X11_USES= gl jpeg xorg X11_USE= GL=glut \ XORG=x11,xi,xmu,xscrnsaver X11_CONFIGURE_OFF= --without-x \ ax_cv_check_glut_libglut=no BOINC_CLIENT_GROUP?= boinc BOINC_CLIENT_HOME?= /var/db/boinc BOINC_CLIENT_USER?= boinc .include .if ${PORT_OPTIONS:MMANAGER} WX_CONF_ARGS= absolute SUB_LIST+= OPTION_MANAGER="true" .else SUB_LIST+= OPTION_MANAGER="" CONFIGURE_ARGS+= --disable-manager .endif .if ${PORT_OPTIONS:MCLIENT} SUB_LIST+= OPTION_NO_GUI_RPC=${PORT_OPTIONS:MNO_GUI_RPC:S/^NO_GUI_RPC$/--no_gui_rpc/} \ OPTION_NO_NET_INFO=${PORT_OPTIONS:MNO_NET_INFO:S/^NO_NET_INFO$/--suppress_net_info/} .endif .if ${PORT_OPTIONS:MUSER} SUB_LIST+= OPTION_USER="true" .else SUB_LIST+= OPTION_USER="" .endif post-patch: @${REINPLACE_CMD} -e 's|client/scripts||' \ ${WRKSRC}/Makefile.am # avoid build conflict with archivers/libzip @${MV} ${WRKSRC}/zip/unzip/zip.h \ ${WRKSRC}/zip/unzip/boinczip.h @${MV} ${WRKSRC}/zip/zip/zip.h \ ${WRKSRC}/zip/zip/boinczip.h @${REINPLACE_CMD} -e 's|zip/zip.h|zip/boinczip.h|' \ ${WRKSRC}/zip/boinc_zip.cpp @${REINPLACE_CMD} -e 's|"zip.h"|"boinczip.h"|' \ ${WRKSRC}/zip/unzip/crc32.c \ ${WRKSRC}/zip/unzip/ttyio.c \ ${WRKSRC}/zip/zip/deflate.c \ ${WRKSRC}/zip/zip/trees.c \ ${WRKSRC}/zip/zip/unix/z_unix.c \ ${WRKSRC}/zip/zip/util.c \ ${WRKSRC}/zip/zip/z_fileio.c \ ${WRKSRC}/zip/zip/z_globals.c \ ${WRKSRC}/zip/zip/zip.c \ ${WRKSRC}/zip/zip/zipfile.c \ ${WRKSRC}/zip/zip/zipup.c post-patch-X11-off: @${REINPLACE_CMD} -e 's|enable_xss="yes"|enable_xss="no"|' \ ${WRKSRC}/configure.ac post-install: .for name in config.h project_specific_defines.h api/reduce.h lib/keyword.h \ lib/opencl_boinc.h lib/shmem.h lib/std_fixes.h lib/str_replace.h ${INSTALL_DATA} ${WRKSRC}/${name} \ ${STAGEDIR}${PREFIX}/include/boinc .endfor post-install-MANAGER-on: ${MKDIR} ${STAGEDIR}${PREFIX}/share/boinc .for name in 16 32 48 ${INSTALL_DATA} ${WRKSRC}/packages/generic/sea/boincmgr.${name}x${name}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps .endfor .if ${PORT_OPTIONS:MSKINS} (cd ${WRKSRC}/clientgui && \ ${COPYTREE_SHARE} skins ${STAGEDIR}${PREFIX}/share/boinc/ \ ) .else ${MKDIR} ${STAGEDIR}${PREFIX}/share/boinc/skins (cd ${WRKSRC}/clientgui/skins && \ ${COPYTREE_SHARE} Default ${STAGEDIR}${PREFIX}/share/boinc/skins/ \ ) .endif post-install-X11-on: .for name in api/boinc_gl.h api/graphics_api.h api/graphics_data.h api/ttfont.h ${INSTALL_DATA} ${WRKSRC}/${name} \ ${STAGEDIR}${PREFIX}/include/boinc .endfor ${MKDIR} ${STAGEDIR}${PREFIX}/share/boinc/ttf (cd ${WRKSRC}/api/ttf/liberation-fonts-ttf-2.00.0 && \ ${COPYTREE_SHARE} \*.ttf ${STAGEDIR}${PREFIX}/share/boinc/ttf/ \ ) .include