Lines 5-33
Link Here
|
5 |
# |
5 |
# |
6 |
|
6 |
|
7 |
PORTNAME= boinc-setiathome-enhanced |
7 |
PORTNAME= boinc-setiathome-enhanced |
8 |
PORTVERSION= 5.12 |
8 |
PORTVERSION= 5.13 |
9 |
CATEGORIES= astro |
9 |
CATEGORIES= astro |
10 |
MASTER_SITES= http://www.lb.shuttle.de/apastron/boinc/ |
10 |
MASTER_SITES= http://home.tiscali.nl/rladan/distfiles/ |
11 |
DISTNAME= seti${PORTVERSION}freebsd-i386 |
|
|
12 |
|
11 |
|
13 |
MAINTAINER= r.c.ladan@gmail.com |
12 |
MAINTAINER= r.c.ladan@gmail.com |
14 |
COMMENT= Setiathome Enhanced for BOINC |
13 |
COMMENT= Setiathome Enhanced for BOINC |
15 |
|
14 |
|
16 |
USE_BZIP2= yes |
15 |
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3 \ |
|
|
16 |
${LOCALBASE}/include/BOINC/std_fixes.h:${PORTSDIR}/net/boinc-client |
17 |
# statically linked : |
18 |
LIB_DEPENDS= fftw3f:${PORTSDIR}/math/fftw3-float |
19 |
RUN_DEPENDS= boinc_client:${PORTSDIR}/net/boinc-client |
20 |
|
21 |
CFLAGS+= -I${LOCALBASE}/include -funroll-loops -ffast-math -O3 |
22 |
CXXFLAGS+= ${CFLAGS} |
23 |
GNU_CONFIGURE= yes |
24 |
CONFIGURE_ENV= CFLAGS="${CFLAGS}" \ |
25 |
CXXFLAGS="${CXXFLAGS}" \ |
26 |
BOINCDIR="${LOCALBASE}" |
27 |
CONFIGURE_ARGS= --disable-server \ |
28 |
--disable-graphics \ |
29 |
--enable-fast-math |
17 |
|
30 |
|
18 |
.include <bsd.port.pre.mk> |
31 |
.include <bsd.port.pre.mk> |
19 |
|
32 |
|
20 |
ONLY_FOR_ARCHS= i386 amd64 |
33 |
.if ${MACHINE_CPU:Msse3} |
21 |
|
34 |
CONFIGURE_ARGS+= --enable-sse3 |
22 |
.if ${OSVERSION} >= 600000 |
35 |
.elif ${MACHINE_CPU:Msse2} |
23 |
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x |
36 |
CONFIGURE_ARGS+= --enable-sse2 |
24 |
#also depends on libm.so.3, libstdc++.so.4, libpthread.so.1 |
37 |
.elif ${MACHINE_CPU:Msse} |
|
|
38 |
CONFIGURE_ARGS+= --enable-sse |
25 |
.endif |
39 |
.endif |
26 |
|
40 |
|
27 |
RUN_DEPENDS+= boinc_client:${PORTSDIR}/net/boinc-client |
41 |
.if ${MACHINE_CPU:Mmmx} |
|
|
42 |
CONFIGURE_ARGS+= --enable-mmx |
43 |
.endif |
28 |
|
44 |
|
29 |
NO_BUILD= yes |
45 |
.ifdef ${MACHINE_CPU:M3dnow} |
30 |
NO_WRKSUBDIR= yes |
46 |
CONFIGURE_ARGS+= --enable-3dnow |
|
|
47 |
.endif |
31 |
|
48 |
|
32 |
# these must match settings in ${PORTSDIR}/net/boinc-client/Makefile |
49 |
# these must match settings in ${PORTSDIR}/net/boinc-client/Makefile |
33 |
BOINC_USER?= boinc |
50 |
BOINC_USER?= boinc |
Lines 35-63
Link Here
|
35 |
BOINC_HOME?= /var/db/boinc |
52 |
BOINC_HOME?= /var/db/boinc |
36 |
|
53 |
|
37 |
SETI_SITE= setiathome.berkeley.edu |
54 |
SETI_SITE= setiathome.berkeley.edu |
38 |
SETI_BINARY= setiathome-${PORTVERSION}.i386-unknown-freebsd |
55 |
SETI_BINARY= setiathome-${PORTVERSION}.${ARCH}-portbld-freebsd |
39 |
|
|
|
40 |
.if ${ARCH} == amd64 && ${OSVERSION} >= 600000 |
41 |
AMD64= "" |
42 |
.else |
43 |
AMD64= "@comment " |
44 |
.endif |
45 |
|
56 |
|
46 |
SUB_FILES= pkg-message |
57 |
SUB_FILES= app_info.xml |
47 |
SUB_LIST= AMD64=${AMD64} |
58 |
SUB_LIST= STRIPPED_PORTVERSION=${PORTVERSION:S/.//} \ |
|
|
59 |
SETI_BINARY="${SETI_BINARY}" |
48 |
|
60 |
|
49 |
PLIST_SUB= SETI_BINARY="${SETI_BINARY}" SETI_SITE=${SETI_SITE} \ |
61 |
PLIST_SUB= SETI_BINARY="${SETI_BINARY}" SETI_SITE=${SETI_SITE} \ |
50 |
BOINC_HOME=${BOINC_HOME} |
62 |
BOINC_HOME=${BOINC_HOME} |
51 |
|
63 |
|
|
|
64 |
PORTDOCS= AUTHORS COPYING COPYRIGHT README checkin_notes |
52 |
do-install: |
65 |
do-install: |
53 |
${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects |
66 |
${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects |
54 |
${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects/${SETI_SITE}$ |
67 |
${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects/${SETI_SITE} |
55 |
${INSTALL_PROGRAM} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKDIR}/${SETI_BINARY} ${BOINC_HOME}/projects/${SETI_SITE}/ |
68 |
${INSTALL_PROGRAM} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKSRC}/client/${SETI_BINARY} ${BOINC_HOME}/projects/${SETI_SITE}/ |
56 |
${INSTALL_DATA} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKDIR}/app_info.xml ${BOINC_HOME}/projects/${SETI_SITE}/ |
69 |
${INSTALL_DATA} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKDIR}/app_info.xml ${BOINC_HOME}/projects/${SETI_SITE}/ |
57 |
.if !defined(NOPORTDOCS) |
70 |
.ifndef NOPORTDOCS |
58 |
@${MKDIR} ${DOCSDIR} |
71 |
@${MKDIR} ${DOCSDIR} |
59 |
.for file in AUTHORS CHANGES COPYING COPYRIGHT README |
72 |
.for file in ${PORTDOCS} |
60 |
${INSTALL_DATA} ${WRKDIR}/${file} ${DOCSDIR}/${file} |
73 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}/${file} |
61 |
.endfor |
74 |
.endfor |
62 |
.endif |
75 |
.endif |
63 |
|
76 |
|