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