FreeBSD Bugzilla – Attachment 182977 Details for
Bug 219597
math/pari: Added USES=readline, fixed X11 detection, added threading options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
pari.patch (text/plain), 3.15 KB, created by
Yuri Victorovich
on 2017-05-27 22:01:27 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2017-05-27 22:01:27 UTC
Size:
3.15 KB
patch
obsolete
>Index: math/pari/Makefile >=================================================================== >--- math/pari/Makefile (revision 441874) >+++ math/pari/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= pari > PORTVERSION= 2.9.2 >+PORTREVISION= 1 > PORTEPOCH= 2 > CATEGORIES= math > MASTER_SITES= http://pari.math.u-bordeaux.fr/pub/pari/unix/ \ >@@ -21,14 +22,20 @@ > CONFIGURE_SCRIPT= Configure > CONFIGURE_ARGS= --mandir=${MANPREFIX}/man/man1 \ > --prefix=${PREFIX} \ >- --with-gmp=${LOCALBASE} >+ --with-readline > HAS_CONFIGURE= yes > USE_LDCONFIG= yes > USE_PERL5= build >-USES= perl5 >+USES= perl5 readline > > OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS X11 >-OPTIONS_DEFAULT= OPTIMIZED_CFLAGS X11 >+OPTIONS_RADIO= THREADS >+OPTIONS_RADIO_THREADS= PTHREADS MPI >+OPTIONS_DEFAULT= OPTIMIZED_CFLAGS X11 PTHREADS >+THREADS_DESC= Thread engine >+PTHREADS_DESC= Enable pthread thread engine >+MPI_DESC= Enable MPI thread engine >+MPI_BUILD_ENV= CC=mpicc > .ifndef WITH_DEBUG > OPTIMIZED_CFLAGS_CFLAGS= -O3 -fno-strict-aliasing -fomit-frame-pointer > .endif >@@ -35,6 +42,14 @@ > X11_CONFIGURE_ON= --graphic=X11 > X11_CONFIGURE_OFF= --graphic=none > X11_USE= xorg=x11 >+MPI_RUN_DEPENDS= ${LOCALBASE}/bin/mpirun:net/mpich2 >+MPI_BUILD_DEPENDS= ${LOCALBASE}/bin/mpicc:net/mpich2 >+MPI_LIB_DEPENDS= libgmp.so:math/gmp >+PTHREADS_LIB_DEPENDS= libgmp.so:math/gmp >+PTHREADS_CONFIGURE_ON= --mt=pthread --with-gmp=${LOCALBASE} >+MPI_CONFIGURE_ON= --mt=mpi --with-gmp=${LOCALBASE} >+MPI_CONFIGURE_ENV_ON= CC=${LOCALBASE}/bin/mpicc >+OPTIONS_SUB= yes > > PLIST_SUB= GP_VERSION=${GP_VERSION} PORTVERSION=${PORTVERSION} > PORTDATA= * >@@ -46,8 +61,18 @@ > post-patch: > @${REINPLACE_CMD} -e '/^CFLAGS=/s/\$$cflags//' \ > ${WRKSRC}/config/get_cc >+ @${REINPLACE_CMD} -e 's|-lX11|-L${LOCALBASE}/lib -lX11|' \ >+ ${WRKSRC}/config/get_X11 >+ @${REINPLACE_CMD} -e 's|-lreadline|-L${LOCALBASE}/lib -lreadline|' \ >+ ${WRKSRC}/config/get_readline > > post-install: >- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpari-gmp.so.* >+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpari-gmp*.so.* > >+do-test-PTHREADS-on: >+ @cd ${WRKSRC} && ${MAKE_CMD} test-parallel >+ >+do-test-MPI-on: >+ @cd ${WRKSRC} && ${MAKE_CMD} test-parallel RUNTEST="mpirun -np 3" >+ > .include <bsd.port.mk> >Index: math/pari/distinfo >=================================================================== >--- math/pari/distinfo (revision 441874) >+++ math/pari/distinfo (working copy) >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1491984081 >+TIMESTAMP = 1495916881 > SHA256 (pari-2.9.2.tar.gz) = 9aa24cbbcf4e0b09dcc21cf9b09f2eb08e38ee16ab13651be7274c9b3e46207e > SIZE (pari-2.9.2.tar.gz) = 3842811 >Index: math/pari/pkg-plist >=================================================================== >--- math/pari/pkg-plist (revision 441874) >+++ math/pari/pkg-plist (working copy) >@@ -19,8 +19,12 @@ > include/pari/paristio.h > include/pari/parisys.h > include/pari/paritune.h >-lib/libpari-gmp.so.%%PORTVERSION%% >-lib/libpari-gmp.so.5 >+%%PTHREADS%%lib/libpari-gmp-tls.so.%%PORTVERSION%% >+%%PTHREADS%%lib/libpari-gmp-tls.so.5 >+%%MPI%%lib/libpari-gmp-tls.so.%%PORTVERSION%% >+%%MPI%%lib/libpari-gmp-tls.so.5 >+%%NOTHREADS%%lib/libpari-gmp.so.%%PORTVERSION%% >+%%NOTHREADS%%lib/libpari-gmp.so.5 > lib/libpari.so > lib/pari/pari.cfg > man/man1/gp-%%GP_VERSION%%.1.gz
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
yuri
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 219597
:
182969
|
182974
|
182975
|
182977
|
183037