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.
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2005-05-28 20:31:14 +00:00
parent efa1484142
commit fc31dd7209
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136352
2 changed files with 6 additions and 37 deletions

View file

@ -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

View file

@ -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