mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
c296805691
Put back original creator and whitespace Fix patching Greatly simplify the Makefile Make it LOCALBASE safe Reported by: danfe Pointyhat to: swills
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mprime
|
|
PORTVERSION= 28.10
|
|
CATEGORIES= math benchmarks net
|
|
MASTER_SITES= http://www.mersenne.org/ftp_root/gimps/ \
|
|
ftp://mersenne.org/gimps/
|
|
DISTNAME= p95v${PORTVERSION:R}${PORTVERSION:E}.source
|
|
|
|
MAINTAINER= rozhuk.im@gmail.com
|
|
COMMENT= Great Internet Mersenne Prime Search
|
|
|
|
LICENSE= EULA
|
|
LICENSE_NAME= EULA
|
|
LICENSE_FILE= ${FILESDIR}/LICENSE
|
|
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl
|
|
|
|
USES= zip
|
|
NO_WRKSUBDIR= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
MAKEFILE= makebsd
|
|
ALL_TARGET= mprime
|
|
|
|
SUB_FILES= wrapper.sh
|
|
|
|
PLIST_FILES+= bin/mprime bin/mprime-real
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
WRKSRC_SUBDIR= linux64
|
|
.else
|
|
WRKSRC_SUBDIR= linux
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
|
${PATCH_WRKSRC}/linux64/makebsd \
|
|
${PATCH_WRKSRC}/linux/makebsd
|
|
|
|
pre-build:
|
|
.if ${ARCH} == "amd64"
|
|
@${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${PATCH_WRKSRC}/gwnum -f makebsd64
|
|
.elif ${ARCH} == "i386"
|
|
@${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${PATCH_WRKSRC}/gwnum -f makemsys
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mprime ${STAGEDIR}${PREFIX}/bin/mprime-real
|
|
${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/mprime
|
|
|
|
.include <bsd.port.post.mk>
|