freebsd-ports/astro/boinc-setiathome-enhanced/Makefile
Pav Lucistnik 4d154a2782 - Update to 5.13
- Compile from source

PR:		ports/101022
Submitted by:	Rene Ladan <r.c.ladan@gmail.com> (maintainer)
2006-07-30 19:20:53 +00:00

83 lines
2.6 KiB
Makefile

# 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
PORTVERSION= 5.13
CATEGORIES= astro
MASTER_SITES= http://home.tiscali.nl/rladan/distfiles/
MAINTAINER= r.c.ladan@gmail.com
COMMENT= Setiathome Enhanced for BOINC
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3 \
${LOCALBASE}/include/BOINC/std_fixes.h:${PORTSDIR}/net/boinc-client
# fftw3f is statically linked :
LIB_DEPENDS= fftw3f:${PORTSDIR}/math/fftw3-float
RUN_DEPENDS= boinc_client:${PORTSDIR}/net/boinc-client
# The compiler flags below are copied from m4/optimizations.m4,
# leaving out the -march flag which is set by /usr/share/mk/bsd.cpu.mk
.if ${MACHINE_CPU:Msse3}
CFLAGS+= -msse3 -mfpmath=sse
.elif ${MACHINE_CPU:Msse2}
CFLAGS+= -msse2 -mfpmath=sse
.elif ${MACHINE_CPU:Msse}
CFLAGS+= -msse -mfpmath=sse
.endif
.if ${MACHINE_CPU:Mmmx}
CFLAGS+= -mmmx -mfpmath=387
.endif
.ifdef ${MACHINE_CPU:M3dnow}
CFLAGS+= -m3dnow -mfpmath=387
.endif
# From http://www,lb.shuttle.de/apastron/boincDown.shtml :
# what about other 64 bit archs (especially S/390, see gcc.info.gz) ?
.ifdef ${MACHINE_CPU:Mamd64}
CFLAGS+= -m64
.endif
# no SPARC options (-mvis) available for autodection
CFLAGS+= -I${LOCALBASE}/include -funroll-loops -ffast-math -O3
CXXFLAGS+= ${CFLAGS}
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}" \
BOINCDIR="${LOCALBASE}"
CONFIGURE_ARGS= --disable-server \
--disable-graphics
# these must match settings in ${PORTSDIR}/net/boinc-client/Makefile
BOINC_USER?= boinc
BOINC_GROUP?= nobody
BOINC_HOME?= /var/db/boinc
SETI_SITE= setiathome.berkeley.edu
SETI_BINARY= setiathome-${PORTVERSION}.${ARCH}-portbld-freebsd
SUB_FILES= app_info.xml
SUB_LIST= STRIPPED_PORTVERSION=${PORTVERSION:S/.//} \
SETI_BINARY="${SETI_BINARY}"
PLIST_SUB= SETI_BINARY="${SETI_BINARY}" SETI_SITE=${SETI_SITE} \
BOINC_HOME=${BOINC_HOME}
PORTDOCS= AUTHORS COPYING COPYRIGHT README checkin_notes
do-install:
${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects
${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects/${SETI_SITE}
${INSTALL_PROGRAM} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKSRC}/client/${SETI_BINARY} ${BOINC_HOME}/projects/${SETI_SITE}/
${INSTALL_DATA} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKDIR}/app_info.xml ${BOINC_HOME}/projects/${SETI_SITE}/
.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}/${file}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>