New port mprime version 0.0.22.12: mersenne.org distributed Great
Internet Mersenne Prime Search
This commit is contained in:
parent
82a33958ed
commit
9b75aa7332
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79865
7 changed files with 125 additions and 0 deletions
|
@ -71,6 +71,7 @@
|
|||
SUBDIR += matrix
|
||||
SUBDIR += maxima
|
||||
SUBDIR += metis
|
||||
SUBDIR += mprime
|
||||
SUBDIR += mtl
|
||||
SUBDIR += mtrxmath
|
||||
SUBDIR += mupad
|
||||
|
|
66
math/mprime/Makefile
Normal file
66
math/mprime/Makefile
Normal file
|
@ -0,0 +1,66 @@
|
|||
# New ports collection makefile for: mprime aka prime95
|
||||
# Date created: Tue Apr 29 03:11:28 UTC 2003
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mprime
|
||||
PORTVERSION= 0.0.${SOURCE_VERSION}
|
||||
CATEGORIES= math benchmarks
|
||||
MASTER_SITES= ftp://mersenne.org/gimps/ \
|
||||
${MASTER_SITE_LOCAL:S/$/:local/}
|
||||
MASTER_SITE_SUBDIR= lioux/:local
|
||||
DISTFILES= source${PORTVERSION:S/^0.0.//:R}.zip \
|
||||
prime95-text-${TEXT_DATE}-${SOURCE_VERSION}.tar.bz2:local
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
EXTRACT_ONLY=
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
COMMENT= mersenne.org distributed Great Internet Mersenne Prime Search
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
USE_REINPLACE= yes
|
||||
USE_ZIP= yes
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
WRKSRC= ${WRKDIR}/linux
|
||||
MAKEFILE= makebsd
|
||||
ALL_TARGET= clean mprime
|
||||
|
||||
# source code version
|
||||
SOURCE_VERSION= 22.12
|
||||
# document date version
|
||||
TEXT_DATE= 2003042900
|
||||
|
||||
post-extract:
|
||||
@cd ${WRKDIR} && ${LOCALBASE}/bin/unzip -qq \
|
||||
${DISTDIR}/${DIST_SUBDIR}/source${PORTVERSION:S/^0.0.//:R}.zip
|
||||
@cd ${WRKDIR} && ${TAR} -xjf \
|
||||
${DISTDIR}/${DIST_SUBDIR}/prime95-text-${TEXT_DATE}-${SOURCE_VERSION}.tar.bz2
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|
||' \
|
||||
-e 's|^(CC).*$$|\1=${CC}|' \
|
||||
-e 's|^(CFLAGS)[[:space:]]*=|\1+=|' \
|
||||
-e 's|^(CFLAGS.*)-m486|\1|' \
|
||||
-e 's|^(CFLAGS.*)-O2|\1|' \
|
||||
${WRKSRC}/makebsd
|
||||
# prepare wrapper
|
||||
@${SED} \
|
||||
-e 's|%%PREFIX%%|${PREFIX}|' ${FILESDIR}/wrapper.sh > \
|
||||
${WRKDIR}/wrapper.sh
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/mprime ${PREFIX}/bin/mprime-real
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mprime
|
||||
.ifndef(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX}
|
||||
@${INSTALL_DATA} ${WRKDIR}/*.txt ${DOCSDIR}${PKGNAMESUFFIX}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${SED} -e 's|/usr/local/|${PREFIX}/|' ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
2
math/mprime/distinfo
Normal file
2
math/mprime/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
MD5 (mprime/source22.zip) = 4ac3d4fcb6219b4a25968bb17def217e
|
||||
MD5 (mprime/prime95-text-2003042900-22.12.tar.bz2) = 8488a53735577fe0a2b181fe76724ec4
|
23
math/mprime/files/wrapper.sh
Normal file
23
math/mprime/files/wrapper.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
PREFIX="%%PREFIX%%"
|
||||
PROGRAM="${0}"
|
||||
DIRNAME=${HOME}/.mprime
|
||||
|
||||
if [ ! -d ${DIRNAME} ]
|
||||
then
|
||||
mkdir -p ${DIRNAME}
|
||||
fi
|
||||
|
||||
if [ ! -h ${DIRNAME}/${PROGRAM##*/} ]
|
||||
then
|
||||
ln -sf ${PREFIX}/bin/${PROGRAM##*/}-real ${DIRNAME}/${PROGRAM##*/}
|
||||
fi
|
||||
|
||||
echo " ${*} " | grep " \-createdironly " ||
|
||||
{
|
||||
cd ${DIRNAME} &&
|
||||
echo Running under ${DIRNAME} &&
|
||||
exec ./${PROGRAM##*/} "${@}" ||
|
||||
echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again
|
||||
}
|
15
math/mprime/pkg-descr
Normal file
15
math/mprime/pkg-descr
Normal file
|
@ -0,0 +1,15 @@
|
|||
[ excerpt from developer's www site ]
|
||||
|
||||
This is the mersenne.org's client.
|
||||
|
||||
Welcome to the Great Internet Mersenne Prime Search!
|
||||
|
||||
To use this program you must agree to the prize rules at
|
||||
http://www.mersenne.org/prize.htm
|
||||
|
||||
In case you ever forget, the URL is http://www.mersenne.org/prime.htm.
|
||||
The author's email address is woltman@alum.mit.edu. For networking
|
||||
questions, contact Scott Kurowski's technical support team at
|
||||
primenet@entropia.com.
|
||||
|
||||
WWW: http://www.mersenne.org/
|
10
math/mprime/pkg-message
Normal file
10
math/mprime/pkg-message
Normal file
|
@ -0,0 +1,10 @@
|
|||
ATTENTIONATTENTION:
|
||||
|
||||
Please, make sure that you read
|
||||
/usr/local/share/doc/mprime/license.txt
|
||||
and agree to the licensing terms before running this application.
|
||||
|
||||
Furthermore, read
|
||||
/usr/local/share/doc/mprime/readme.txt
|
||||
It contains important information about both configuring and running
|
||||
mprime. You will have problems running it if you do not read it.
|
8
math/mprime/pkg-plist
Normal file
8
math/mprime/pkg-plist
Normal file
|
@ -0,0 +1,8 @@
|
|||
bin/mprime
|
||||
bin/mprime-real
|
||||
%%PORTDOCS%%%%DOCSDIR%%/license.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/stress.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/undoc.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in a new issue