2005-06-10 20:00:54 +02:00
|
|
|
# New ports collection makefile for: boinc
|
|
|
|
# Date created: 01 October 2004
|
|
|
|
# Whom: J.R. Oldroyd <fbsd@opal.com>
|
2004-10-16 21:29:30 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= boinc-client
|
2008-08-06 10:29:56 +02:00
|
|
|
PORTVERSION= 6.2.14
|
2004-10-16 21:29:30 +02:00
|
|
|
CATEGORIES= net
|
2007-02-27 23:12:37 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
2005-04-28 19:29:57 +02:00
|
|
|
MASTER_SITE_SUBDIR= pav
|
2004-10-16 21:29:30 +02:00
|
|
|
|
2006-03-15 11:44:46 +01:00
|
|
|
MAINTAINER= pav@FreeBSD.org
|
2004-10-16 21:29:30 +02:00
|
|
|
COMMENT= Berkeley Open Infrastructure for Network Computing client
|
|
|
|
|
2006-03-15 11:44:46 +01:00
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
|
2005-04-12 00:33:38 +02:00
|
|
|
|
2006-03-15 11:44:46 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GNOME= gnometarget
|
2004-10-16 21:29:30 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-06-02 23:08:23 +02:00
|
|
|
|
2006-03-15 11:44:46 +01:00
|
|
|
BOINC_USER?= boinc
|
|
|
|
BOINC_GROUP?= nobody
|
|
|
|
BOINC_HOME?= /var/db/boinc
|
2005-06-02 23:08:23 +02:00
|
|
|
|
2006-03-15 11:44:46 +01:00
|
|
|
PLIST_SUB= BOINC_HOME="${BOINC_HOME}" BOINC_USER="${BOINC_USER}" BOINC_GROUP="${BOINC_GROUP}"
|
2004-10-16 21:29:30 +02:00
|
|
|
|
2006-03-15 11:44:46 +01:00
|
|
|
SUB_FILES= pkg-install
|
|
|
|
SUB_LIST= BOINC_HOME="${BOINC_HOME}" BOINC_USER="${BOINC_USER}" BOINC_GROUP="${BOINC_GROUP}"
|
2004-10-16 21:29:30 +02:00
|
|
|
|
2005-06-02 23:08:23 +02:00
|
|
|
USE_RC_SUBR= boinc.sh
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --disable-server
|
2006-11-26 17:21:44 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CXXFLAGS:= ${CXXFLAGS:N-O*:N-f*} -O3
|
|
|
|
CFLAGS:= ${CFLAGS:N-O*:N-f*} -O3
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" CXXFLAGSS="${CXXFLAGS}" CFLAGS="${CFLAGS}"
|
2006-03-15 11:44:46 +01:00
|
|
|
|
2008-03-07 11:32:51 +01:00
|
|
|
OPTIONS= X11 "Build Boinc Manager GUI" on \
|
|
|
|
ALT "Accept Linux science applications" off
|
2006-03-15 11:44:46 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-04-12 00:33:38 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2007-02-15 16:01:18 +01:00
|
|
|
USE_WX= 2.6+
|
2006-12-01 08:39:02 +01:00
|
|
|
WX_CONF_ARGS= absolute
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2004-10-16 21:29:30 +02:00
|
|
|
|
2007-01-12 10:12:57 +01:00
|
|
|
USE_ICONV= yes
|
|
|
|
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \
|
2006-03-15 11:44:46 +01:00
|
|
|
glut:${PORTSDIR}/graphics/libglut
|
2004-10-16 21:29:30 +02:00
|
|
|
|
2006-03-15 11:44:46 +01:00
|
|
|
PLIST_SUB+= BOINC_GUI=""
|
|
|
|
.else
|
2008-03-07 11:32:51 +01:00
|
|
|
CONFIGURE_ARGS+= --with-wx-config=false --without-x
|
2006-03-15 11:44:46 +01:00
|
|
|
PLIST_SUB+= BOINC_GUI="@comment "
|
|
|
|
.endif
|
2004-10-21 15:05:46 +02:00
|
|
|
|
2008-03-07 11:32:51 +01:00
|
|
|
.if defined(WITH_ALT)
|
|
|
|
CONFIGURE_ARGS+=--with-boinc-alt-platform=i686-pc-linux-gnu
|
|
|
|
USE_LINUX= yes
|
|
|
|
.endif
|
|
|
|
|
2006-03-15 11:44:46 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|gui_rpc_auth.cfg|${BOINC_HOME}/gui_rpc_auth.cfg|g' \
|
|
|
|
${WRKSRC}/client/file_names.h ${WRKSRC}/lib/boinc_cmd.C \
|
|
|
|
${WRKSRC}/clientgui/MainDocument.cpp
|
2007-12-29 19:08:17 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|../curl/ca-bundle.crt||' ${WRKSRC}/client/Makefile.in
|
2007-05-25 13:43:40 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|ca-bundle.crt|${LOCALBASE}/share/curl/curl-ca-bundle.crt|' ${WRKSRC}/client/http_curl.C
|
2007-02-15 16:01:18 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/clientgui/stdwx.h
|
|
|
|
|
|
|
|
# kill -O3 from clientgui build, it triggers some optimization bug and segfaults on runtime with -O3
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|-O3 ||' ${WRKSRC}/clientgui/Makefile
|
2005-06-02 23:08:23 +02:00
|
|
|
|
|
|
|
post-install:
|
2007-02-15 16:01:18 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/version.h ${PREFIX}/include/BOINC
|
2005-06-02 23:08:23 +02:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2004-10-16 21:29:30 +02:00
|
|
|
|
2004-10-21 15:05:46 +02:00
|
|
|
.include <bsd.port.post.mk>
|