2006-03-27 22:39:48 +02:00
|
|
|
# New ports collection makefile for: boinc-setiathome-enhanced
|
|
|
|
# Date created: 26 March 2006
|
|
|
|
# Whom: Rene Ladan <r.c.ladan@student.tue.nl>
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= boinc-setiathome-enhanced
|
2011-03-13 15:21:03 +01:00
|
|
|
PORTVERSION= 6.12
|
2012-04-23 23:00:55 +02:00
|
|
|
PORTREVISION= 3
|
2006-03-27 22:39:48 +02:00
|
|
|
CATEGORIES= astro
|
2008-01-31 14:12:30 +01:00
|
|
|
MASTER_SITES= ftp://rene-ladan.nl/pub/distfiles/
|
2011-03-13 15:21:03 +01:00
|
|
|
DISTNAME= setiathome-svn-1008
|
2006-03-27 22:39:48 +02:00
|
|
|
|
2009-09-15 23:37:57 +02:00
|
|
|
MAINTAINER= rene@FreeBSD.org
|
|
|
|
COMMENT= Setiathome Enhanced for BOINC
|
2006-03-27 22:39:48 +02:00
|
|
|
|
2010-06-13 22:03:15 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2011-03-13 17:08:48 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
|
2006-07-30 21:20:53 +02:00
|
|
|
RUN_DEPENDS= boinc_client:${PORTSDIR}/net/boinc-client
|
2009-09-15 23:37:57 +02:00
|
|
|
LIB_DEPENDS= fftw3f:${PORTSDIR}/math/fftw3-float
|
2008-12-28 19:20:18 +01:00
|
|
|
|
2011-03-13 15:21:03 +01:00
|
|
|
USE_XZ= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf:env automake:env
|
2009-09-15 23:37:57 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-08-23 12:58:59 +02:00
|
|
|
USE_GMAKE= yes
|
2008-12-28 19:20:18 +01:00
|
|
|
USE_GNOME= pkgconfig
|
2006-03-27 22:39:48 +02:00
|
|
|
|
2011-01-23 22:10:09 +01:00
|
|
|
CFLAGS+= -O2 -I${LOCALBASE}/include/boinc -I${LOCALBASE}/include \
|
|
|
|
-L${LOCALBASE}/lib
|
2008-12-28 19:20:18 +01:00
|
|
|
.if defined(CPUTYPE)
|
|
|
|
CFLAGS+= -march=${CPUTYPE}
|
|
|
|
.endif
|
2006-03-27 22:39:48 +02:00
|
|
|
|
|
|
|
# these must match settings in ${PORTSDIR}/net/boinc-client/Makefile
|
2012-05-16 15:46:30 +02:00
|
|
|
BOINC_CLIENT_USER?= boinc
|
|
|
|
BOINC_CLIENT_GROUP?= nobody
|
|
|
|
BOINC_CLIENT_HOME?= /var/db/boinc
|
2006-03-27 22:39:48 +02:00
|
|
|
|
2011-01-31 23:10:40 +01:00
|
|
|
OPTIONS= X11 "Build screensaver (requires net/boinc-client with X11)" off
|
2008-12-28 19:20:18 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-09-15 23:37:57 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
2010-02-05 12:46:55 +01:00
|
|
|
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2009-09-15 23:37:57 +02:00
|
|
|
xcb.2:${PORTSDIR}/x11/libxcb
|
|
|
|
USE_GL= gl glu glut
|
|
|
|
USE_XORG= ice sm x11 xau xext xi xdamage xdmcp xfixes xmu xt xxf86vm
|
2011-01-31 23:10:40 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libboinc_graphics2.a:${PORTSDIR}/net/boinc-client
|
2009-09-15 23:37:57 +02:00
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.else
|
2011-01-31 23:10:40 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/boinc/std_fixes.h:${PORTSDIR}/net/boinc-client
|
2009-09-15 23:37:57 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-graphics
|
|
|
|
PLIST_SUB+= X11="@comment "
|
2008-12-28 19:20:18 +01:00
|
|
|
.endif
|
|
|
|
|
2011-01-23 22:10:09 +01:00
|
|
|
.if ${ARCH} == i386 || ${ARCH} == amd64
|
|
|
|
# comment out if world is built with clang and port with gcc
|
|
|
|
CFLAGS+= -mtune=native
|
2009-03-18 05:34:03 +01:00
|
|
|
.endif
|
|
|
|
|
2011-12-06 00:56:02 +01:00
|
|
|
.if !empty(MACHINE_CPU:Maltivec)
|
|
|
|
CONFIGURE_ARGS+= --enable-altivec
|
|
|
|
.endif
|
|
|
|
|
2011-01-23 22:10:09 +01:00
|
|
|
CONFIGURE_ENV+= BOINCDIR="${NONEXISTENT}"
|
2009-09-15 23:37:57 +02:00
|
|
|
|
2011-01-23 22:10:09 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-static-client --disable-server \
|
2011-12-06 00:56:02 +01:00
|
|
|
--disable-tests \
|
2011-01-23 22:10:09 +01:00
|
|
|
--with-boinc-platform=${ARCH}-portbld-freebsd
|
2006-05-25 14:28:57 +02:00
|
|
|
|
2008-12-28 19:20:18 +01:00
|
|
|
SETI_SITE= setiathome.berkeley.edu
|
2009-09-15 23:37:57 +02:00
|
|
|
SETI_BINARY= setiathome-${PORTVERSION:S/.0/./}.${ARCH}-portbld-freebsd
|
2006-05-25 14:28:57 +02:00
|
|
|
|
2011-01-23 22:10:09 +01:00
|
|
|
SUB_FILES= pkg-deinstall pkg-install pkg-message
|
2009-09-15 23:37:57 +02:00
|
|
|
SUB_LIST= SETI_BINARY=${SETI_BINARY} \
|
|
|
|
SETI_SITE=${SETI_SITE} \
|
2011-01-23 22:10:09 +01:00
|
|
|
SETI_VERSION=${PORTVERSION:S/.//} \
|
2012-05-16 15:46:30 +02:00
|
|
|
BOINC_CLIENT_HOME=${BOINC_CLIENT_HOME}
|
2009-09-15 23:37:57 +02:00
|
|
|
PLIST_SUB+= SETI_BINARY=${SETI_BINARY} \
|
2008-12-28 19:20:18 +01:00
|
|
|
SETI_SITE=${SETI_SITE} \
|
2012-05-16 15:46:30 +02:00
|
|
|
BOINC_CLIENT_HOME=${BOINC_CLIENT_HOME} \
|
2010-06-20 16:08:14 +02:00
|
|
|
PREFIX=${PREFIX}
|
2006-03-27 22:39:48 +02:00
|
|
|
|
2011-03-13 15:21:03 +01:00
|
|
|
# str_replace.h is included in newer versions of net/boinc-client,
|
|
|
|
# but it is not needed on FreeBSD
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -E -e "s|#include \"str_replace.h\"||" \
|
|
|
|
${WRKSRC}/client/main.cpp \
|
|
|
|
${WRKSRC}/client/sah_gfx.cpp \
|
|
|
|
${WRKSRC}/client/seti.cpp \
|
|
|
|
${WRKSRC}/client/timecvt.cpp \
|
|
|
|
${WRKSRC}/db/xml_util.cpp
|
|
|
|
|
2009-09-15 23:37:57 +02:00
|
|
|
pre-configure:
|
2011-03-13 17:08:48 +01:00
|
|
|
(cd ${WRKSRC} ; ./_autosetup)
|
2008-12-28 19:20:18 +01:00
|
|
|
|
2006-03-27 22:39:48 +02:00
|
|
|
do-install:
|
2012-05-16 15:46:30 +02:00
|
|
|
${INSTALL} -d -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} ${BOINC_CLIENT_HOME}/projects
|
|
|
|
${INSTALL} -d -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} \
|
|
|
|
${BOINC_CLIENT_HOME}/projects/${SETI_SITE}
|
|
|
|
${INSTALL_PROGRAM} -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} \
|
|
|
|
${WRKSRC}/client/${SETI_BINARY} ${BOINC_CLIENT_HOME}/projects/${SETI_SITE}/
|
2009-09-15 23:37:57 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
2012-05-16 15:46:30 +02:00
|
|
|
${INSTALL_PROGRAM} -o ${BOINC_CLIENT_USER} -g ${BOINC_CLIENT_GROUP} \
|
|
|
|
${WRKSRC}/client/seti_graphics ${BOINC_CLIENT_HOME}/projects/${SETI_SITE}/
|
2009-09-15 23:37:57 +02:00
|
|
|
.endif
|
2006-03-27 22:39:48 +02:00
|
|
|
|
|
|
|
post-install:
|
2011-01-23 22:10:09 +01:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2006-03-27 22:39:48 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2008-02-01 07:37:16 +01:00
|
|
|
.include <bsd.port.post.mk>
|