View | Details | Raw Unified | Return to bug 283070
Collapse All | Expand All

(-)./Makefile (-20 / +10 lines)
Lines 1-5 Link Here
1
PORTNAME=	mprime
1
PORTNAME=	mprime
2
PORTVERSION=	30.19b14
2
PORTVERSION=	30.19b21
3
CATEGORIES=	math benchmarks net
3
CATEGORIES=	math benchmarks net
4
MASTER_SITES=	https://www.mersenne.org/download/software/v${PORTVERSION:R}/${PORTVERSION:R}.19/
4
MASTER_SITES=	https://www.mersenne.org/download/software/v${PORTVERSION:R}/${PORTVERSION:R}.19/
5
DISTNAME=	p95v${PORTVERSION:R}${PORTVERSION:E}.source
5
DISTNAME=	p95v${PORTVERSION:R}${PORTVERSION:E}.source
Lines 13-24 LICENSE_NAME= EULA Link Here
13
LICENSE_FILE=	${FILESDIR}/LICENSE
13
LICENSE_FILE=	${FILESDIR}/LICENSE
14
LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
14
LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
15
15
16
BROKEN_i386=    /gwnum/polymult.a missed in /linux/makebsd
16
BROKEN_i386=	compilation fails: ${DUMMY}/gwnum/polymult.a missed in ${DUMMY}/linux/makebsd
17
ONLY_FOR_ARCHS=	amd64 i386
17
ONLY_FOR_ARCHS=	amd64
18
18
19
BUILD_DEPENDS=	${LOCALBASE}/include/boost/circular_buffer.hpp:devel/boost-libs
19
BUILD_DEPENDS=	${LOCALBASE}/include/boost/circular_buffer.hpp:devel/boost-libs
20
LIB_DEPENDS=	libcurl.so:ftp/curl					\
20
LIB_DEPENDS=	libcurl.so:ftp/curl \
21
		libhwloc.so.15:devel/hwloc2				\
21
		libhwloc.so:devel/hwloc2 \
22
		libgmp.so:math/gmp
22
		libgmp.so:math/gmp
23
23
24
USES=		localbase zip
24
USES=		localbase zip
Lines 31-48 SUB_FILES= pkg-message wrapper.sh Link Here
31
NO_WRKSUBDIR=	yes
31
NO_WRKSUBDIR=	yes
32
PATCH_WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
32
PATCH_WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
33
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
33
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
34
34
WRKSRC_SUBDIR=	${ARCH:S,i386,linux,:S,amd64,linux64,}
35
PKGMESSAGE=	${WRKSRC}/pkg-message
35
PKGMESSAGE=	${WRKSRC}/pkg-message
36
PLIST_FILES+=	bin/mprime bin/mprime-real
36
PLIST_FILES+=	bin/mprime bin/mprime-real
37
37
38
.include <bsd.port.pre.mk>
39
40
.if ${ARCH} == "amd64"
41
WRKSRC_SUBDIR=	linux64
42
.else
43
WRKSRC_SUBDIR=	linux
44
.endif
45
46
post-patch:
38
post-patch:
47
	@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
39
	@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
48
		-e "s|CC = .*||g" \
40
		-e "s|CC = .*||g" \
Lines 56-69 post-patch: Link Here
56
		${PATCH_WRKSRC}/linux/makebsd
48
		${PATCH_WRKSRC}/linux/makebsd
57
49
58
pre-build:
50
pre-build:
59
.if ${ARCH} == "amd64"
51
	@${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${PATCH_WRKSRC}/gwnum \
60
	@${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${PATCH_WRKSRC}/gwnum ${MAKE_FLAGS} makebsd64 ${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g}
52
		${MAKE_FLAGS} ${ARCH:S,i386,makemsys,:S,amd64,makebsd64,} \
61
.elif ${ARCH} == "i386"
53
		${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g}
62
	@${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${PATCH_WRKSRC}/gwnum ${MAKE_FLAGS} makemsys ${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g}
63
.endif
64
54
65
do-install:
55
do-install:
66
	${INSTALL_PROGRAM} ${WRKSRC}/mprime ${STAGEDIR}${PREFIX}/bin/mprime-real
56
	${INSTALL_PROGRAM} ${WRKSRC}/mprime ${STAGEDIR}${PREFIX}/bin/mprime-real
67
	${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/mprime
57
	${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/mprime
68
58
69
.include <bsd.port.post.mk>
59
.include <bsd.port.mk>
(-)./distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1714771984
1
TIMESTAMP = 1732753270
2
SHA256 (p95v3019b14.source.zip) = 49fd8e44d8755a4c05915085b0b15c3589f232cfd539028bbab2c01ffc8ad548
2
SHA256 (p95v3019b21.source.zip) = bdc843a547a6f91dc67004a3efbcd99858af7db075ecd77b7188b23e5ac2ce2a
3
SIZE (p95v3019b14.source.zip) = 40668660
3
SIZE (p95v3019b21.source.zip) = 39550852

Return to bug 283070