1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00
freebsd-ports/math/mprime/Makefile
Mario Sergio Fujikawa Ferreira fc31dd7209 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.
2005-05-28 20:31:14 +00:00

42 lines
1.0 KiB
Makefile

# 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 net
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
NO_BUILD= yes
NO_WRKSUBDIR= yes
# source code version
SOURCE_VERSION= 23.5
post-patch:
# 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>