# New ports collection makefile for: boinc-milkyway # Date created: 8 August 2008 # Whom: Pav Lucistnik # # $FreeBSD$ # PORTNAME= boinc-milkyway PORTVERSION= 0.18d PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= astro MASTER_SITES= http://milkyway.cs.rpi.edu/milkyway/download/code_release/ DISTNAME= mw_v${PORTVERSION}.tar MAINTAINER= pav@FreeBSD.org COMMENT= Modelling the evolution of the Milkyway Galaxy EXTRACT_SUFX= # BUILD_DEPENDS+= ${LOCALBASE}/include/boinc/version.h:${PORTSDIR}/net/boinc-client RUN_DEPENDS+= boinc_client:${PORTSDIR}/net/boinc-client ONLY_FOR_ARCHS= i386 amd64 WRKSRC= ${WRKDIR}/milkyway/bin MAKEFILE= make.linux USE_GMAKE= yes ALL_TARGET= app_x86_64 # these must match settings in ${PORTSDIR}/net/boinc-client/Makefile BOINC_USER?= boinc BOINC_GROUP?= nobody BOINC_HOME?= /var/db/boinc MILKYWAY_SITE= milkyway.cs.rpi.edu_milkyway MILKYWAY_URL= milkyway.cs.rpi.edu/milkyway MILKYWAY_BINARY=milkyway_${PORTVERSION:S/d//}_${ARCH}-portbuild-freebsd SUB_FILES= pkg-message app_info.xml SUB_LIST= MILKYWAY_VERSION=${PORTVERSION:S/0.//} MILKYWAY_BINARY="${MILKYWAY_BINARY}" PLIST_SUB= MILKYWAY_BINARY="${MILKYWAY_BINARY}" MILKYWAY_SITE=${MILKYWAY_SITE} \ BOINC_HOME=${BOINC_HOME} .include post-patch: @${REINPLACE_CMD} -e 's|/software/boinc-6.3.14-0/pkg/include/boinc|${LOCALBASE}/include/boinc|' ${WRKSRC}/${MAKEFILE} @${REINPLACE_CMD} -e 's|/projects/wcl/software/boinc|${LOCALBASE}/lib|' ${WRKSRC}/${MAKEFILE} @${REINPLACE_CMD} -e 's|/api$$|| ; /^BOINC_LIB_/s|/lib$$||' ${WRKSRC}/${MAKEFILE} @${REINPLACE_CMD} -e 's|/usr/local/lib|${LOCALBASE}/lib|' ${WRKSRC}/${MAKEFILE} .if ${OSVERSION} < 700042 @${REINPLACE_CMD} -e 's|-ftree-vectorize ||' ${WRKSRC}/${MAKEFILE} .endif do-install: ${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects ${INSTALL} -d -o ${BOINC_USER} -g ${BOINC_GROUP} ${BOINC_HOME}/projects/${MILKYWAY_SITE} ${INSTALL_DATA} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKDIR}/app_info.xml ${BOINC_HOME}/projects/${MILKYWAY_SITE} ${INSTALL_PROGRAM} -o ${BOINC_USER} -g ${BOINC_GROUP} ${WRKSRC}/milkyway_${PORTVERSION:S/d//}_x86_64-pc-linux-gnu ${BOINC_HOME}/projects/${MILKYWAY_SITE}/${MILKYWAY_BINARY} post-install: @${CAT} ${PKGMESSAGE} .include