aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2005-05-29 04:31:14 +0800
committerlioux <lioux@FreeBSD.org>2005-05-29 04:31:14 +0800
commitb04d6df2c7e935f9d1eee6d4a6bbed59e32afc90 (patch)
tree78bbf7a3536ee40b2990d6f55f4984ddb07d994c /math
parent68b0755ff6ba8581ae82facd1fa4b769b688b29b (diff)
downloadfreebsd-ports-gnome-b04d6df2c7e935f9d1eee6d4a6bbed59e32afc90.tar.gz
freebsd-ports-gnome-b04d6df2c7e935f9d1eee6d4a6bbed59e32afc90.tar.zst
freebsd-ports-gnome-b04d6df2c7e935f9d1eee6d4a6bbed59e32afc90.zip
Switch to static binary distribution instead of building from source:
current sources .obj coff-i386 format cannot be changed into .o elf32-i386 by any of our native tools. Only the devel/mingw32-binutils port can handle coff-i386 but it cannot generate .elf32-i386. Even using a middle way format (coff-i386 -> srec -> elf32-i386) does not help: the .o still do not link correctly.
Diffstat (limited to 'math')
-rw-r--r--math/mprime/Makefile37
-rw-r--r--math/mprime/distinfo6
2 files changed, 6 insertions, 37 deletions
diff --git a/math/mprime/Makefile b/math/mprime/Makefile
index c98b2f8a95b4..a40e183830cc 100644
--- a/math/mprime/Makefile
+++ b/math/mprime/Makefile
@@ -8,54 +8,25 @@
PORTNAME= mprime
PORTVERSION= 0.0.${SOURCE_VERSION}
CATEGORIES= math benchmarks net
-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=
+MASTER_SITES= ftp://mersenne.org/gimps/
+DISTNAME= sprime${PORTVERSION:S/^0.0.//:S/.//}-freebsd
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}/source/linux
-MAKEFILE= makebsd
-ALL_TARGET= clean mprime
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
# source code version
SOURCE_VERSION= 23.5
-# document date version
-TEXT_DATE= 2004022600
-
-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| ||' \
- ${WRKSRC}/makebsd
# prepare wrapper
@${SED} \
-e 's|%%PREFIX%%|${PREFIX}|' ${FILESDIR}/wrapper.sh > \
${WRKDIR}/wrapper.sh
-do-configure:
- @${REINPLACE_CMD} -E \
- -e 's|^(CC).*$$|\1=${CC}|' \
- -e 's|^(CFLAGS)[[:space:]]*=|\1+=|' \
- -e 's|^(CFLAGS.*)-m486|\1|' \
- -e 's|^(CFLAGS.*)-O2|\1|' \
- ${WRKSRC}/makebsd
-
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/mprime ${PREFIX}/bin/mprime-real
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mprime
diff --git a/math/mprime/distinfo b/math/mprime/distinfo
index cf80de39d72e..5f9bfb48c733 100644
--- a/math/mprime/distinfo
+++ b/math/mprime/distinfo
@@ -1,4 +1,2 @@
-MD5 (mprime/source23.zip) = eb5867e5360a41dd74ea1d4b54ba912a
-SIZE (mprime/source23.zip) = 2505867
-MD5 (mprime/prime95-text-2004022600-23.5.tar.bz2) = 040bcd8f9ddf6b726a20753ed9a68d72
-SIZE (mprime/prime95-text-2004022600-23.5.tar.bz2) = 24434
+MD5 (sprime235-freebsd.tar.gz) = 42af9006e4b940c5294d89db4cb8f395
+SIZE (sprime235-freebsd.tar.gz) = 494718