mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
a3a0715f38
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig while here Reviewed by: zeising
186 lines
4.8 KiB
Makefile
186 lines
4.8 KiB
Makefile
# New ports collection makefile for: boinc
|
|
# Date created: 01 October 2004
|
|
# Whom: J.R. Oldroyd <fbsd@opal.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= boinc-client
|
|
PORTVERSION= 7.0.28
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= pav
|
|
|
|
MAINTAINER= pav@FreeBSD.org
|
|
COMMENT= Berkeley Open Infrastructure for Network Computing client
|
|
|
|
USE_XZ= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
USE_DOS2UNIX= yes
|
|
DOS2UNIX_REGEX= .*\.(cpp|h)
|
|
|
|
BOINC_CLIENT_USER?= boinc
|
|
BOINC_CLIENT_GROUP?= nobody
|
|
BOINC_CLIENT_HOME?= /var/db/boinc
|
|
|
|
PLIST_SUB= BOINC_CLIENT_HOME="${BOINC_CLIENT_HOME}" \
|
|
BOINC_CLIENT_USER="${BOINC_CLIENT_USER}"
|
|
|
|
SUB_FILES= pkg-install
|
|
SUB_LIST= BOINC_CLIENT_HOME="${BOINC_CLIENT_HOME}" \
|
|
BOINC_CLIENT_USER="${BOINC_CLIENT_USER}" \
|
|
BOINC_CLIENT_GROUP="${BOINC_CLIENT_GROUP}" \
|
|
PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
|
|
|
|
USE_RC_SUBR= boinc-client
|
|
|
|
CONFIGURE_ARGS= --disable-server
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
NO_OPTIONS_SORT= yes
|
|
OPTIONS_DEFINE= CLIENT MANAGER X11 LINUX USER SKINS OPTIMIZE
|
|
OPTIONS_DEFAULT= CLIENT MANAGER X11 USER
|
|
CLIENT_DESC= Build BOINC client
|
|
MANAGER_DESC= Build BOINC manager GUI
|
|
X11_DESC= Build graphics API
|
|
LINUX_DESC= Accept Linux science applications
|
|
USER_DESC= Create/check BOINC client user
|
|
SKINS_DESC= Install more skins for BOINC manager
|
|
OPTIMIZE_DESC= Enable compiler optimization flags
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(BOINC_USER) || defined(BOINC_GROUP) || defined(BOINC_HOME)
|
|
pre-extract:
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "===> The following variables were renamed:"
|
|
@${ECHO_MSG} "===> BOINC_USER BOINC_GROUP BOINC_HOME"
|
|
@${ECHO_MSG} "===> Use new names of similar variables."
|
|
@${ECHO_MSG}
|
|
@exit 1
|
|
.endif
|
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
|
BROKEN= Does not install on ia64, powerpc, or sparc64
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMANAGER}
|
|
. if empty(PORT_OPTIONS:MCLIENT)
|
|
PORT_OPTIONS+= CLIENT
|
|
. endif
|
|
. if empty(PORT_OPTIONS:MX11)
|
|
PORT_OPTIONS+= X11
|
|
. endif
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
USE_GL= glut
|
|
USE_XORG+= xmu xi
|
|
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
|
|
PLIST_SUB+= X11=""
|
|
.else
|
|
PLIST_SUB+= X11="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMANAGER}
|
|
USE_XORG+= x11
|
|
USE_WX= 2.8+
|
|
USES+= iconv
|
|
WX_CONF_ARGS= absolute
|
|
LIB_DEPENDS+= notify:${PORTSDIR}/devel/libnotify \
|
|
sqlite3:${PORTSDIR}/databases/sqlite3
|
|
CONFIGURE_ARGS+=--with-sqlite3-prefix=${LOCALBASE}
|
|
. if ${OSVERSION} < 900506 || (${OSVERSION} >= 1000000 && ${OSVERSION} < 1000002)
|
|
CPPFLAGS+= -DNO_PER_THREAD_LOCALE
|
|
. endif
|
|
PLIST_SUB+= BOINC_MANAGER=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-manager --with-wx-config=false --without-x
|
|
PLIST_SUB+= BOINC_MANAGER="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
|
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
|
|
PLIST_SUB+= BOINC_CLIENT=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-client
|
|
PLIST_SUB+= BOINC_CLIENT="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS} && ${PORT_OPTIONS:MMANAGER}
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLINUX}
|
|
CONFIGURE_ARGS+=--with-boinc-alt-platform=i686-pc-linux-gnu
|
|
USE_LINUX= yes
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSKINS}
|
|
PLIST_SUB+= SKINS=""
|
|
.else
|
|
PLIST_SUB+= SKINS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MUSER}
|
|
PLIST_SUB+= USER=""
|
|
.else
|
|
PLIST_SUB+= USER="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZE}
|
|
CONFIGURE_ARGS+=--enable-optimize
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|client/scripts||' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|-lcrypto -ldl|-lcrypto|' ${WRKSRC}/configure
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
@${REINPLACE_CMD} -e 's|$$$$mydir/$$$$ldir|&/LC_MESSAGES|' ${WRKSRC}/locale/Makefile.in
|
|
.else
|
|
@${REINPLACE_CMD} -e 's| locale||' ${WRKSRC}/Makefile.in
|
|
.endif
|
|
.if empty(PORT_OPTIONS:MX11)
|
|
@${REINPLACE_CMD} -e 's|@BUILD_GRAPHICS_API_TRUE@|#&|' ${WRKSRC}/api/Makefile.in
|
|
.endif
|
|
|
|
pre-install:
|
|
.if ${PORT_OPTIONS:MUSER}
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MMANAGER}
|
|
${MKDIR} ${PREFIX}/share/boinc
|
|
${MKDIR} ${LOCALBASE}/share/pixmaps
|
|
. for name in 16 32 48
|
|
${INSTALL_DATA} ${WRKSRC}/clientgui/res/boincmgr.${name}x${name}.png ${LOCALBASE}/share/pixmaps
|
|
. endfor
|
|
. if ${PORT_OPTIONS:MSKINS}
|
|
${CP} -R ${WRKSRC}/clientgui/skins ${PREFIX}/share/boinc
|
|
. else
|
|
${MKDIR} ${PREFIX}/share/boinc/skins
|
|
${CP} -R ${WRKSRC}/clientgui/skins/Default ${PREFIX}/share/boinc/skins
|
|
. endif
|
|
.endif
|
|
. for name in config.h api/reduce.h lib/shmem.h lib/std_fixes.h
|
|
${INSTALL_DATA} ${WRKSRC}/${name} ${PREFIX}/include/boinc
|
|
. endfor
|
|
.if ${PORT_OPTIONS:MX11}
|
|
. for name in api/boinc_gl.h api/graphics_api.h api/graphics_data.h \
|
|
api/txf_util.h
|
|
${INSTALL_DATA} ${WRKSRC}/${name} ${PREFIX}/include/boinc
|
|
. endfor
|
|
. if empty(PORT_OPTIONS:MMANAGER)
|
|
${MKDIR} ${PREFIX}/share/boinc
|
|
. endif
|
|
${CP} -R ${WRKSRC}/api/txf ${PREFIX}/share/boinc
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|