ports/93612: Minor enhancement to math/spooles
Pedro F. Giffuni
giffunip at asme.org
Mon Feb 20 22:30:05 UTC 2006
>Number: 93612
>Category: ports
>Synopsis: Minor enhancement to math/spooles
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 20 22:30:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Pedro F. Giffuni
>Release: 6.0-Release
>Organization:
>Environment:
FreeBSD etoile.cable.net.co 6.0-RELEASE FreeBSD 6.0-RELEASE #12: Sat Feb 11 13:45:47 COT 2006 root at etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION amd64
>Description:
When building the multithreaded part of the library the port was not sending CFLAGS. While here I also added -fPIC on amd64 so we can link spooles with the shared atlas libraries on CalculiX.
patch-MT+makefile and patch-MPI+makefile are not really necessary but I inlcuded them anyways to make the mnual building/testing easier.
>How-To-Repeat:
Shared libraries of this port would be nice.
>Fix:
patch follows:
diff -ruN spooles.orig/Makefile spooles/Makefile
--- spooles.orig/Makefile Mon Feb 20 16:26:35 2006
+++ spooles/Makefile Mon Feb 20 16:46:33 2006
@@ -47,6 +47,12 @@
CONFLICTS= spooles-mpich-2*
.endif
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CFLAGS+= -fPIC
+.endif
+
.SILENT:
pre-everything::
@@ -63,9 +69,9 @@
post-build:
.if defined(WITH_MPI)
- @(cd ${WRKSRC}/MPI/src; ${GMAKE} -f makeGlobalLib)
+ @(cd ${WRKSRC}/MPI/src; ${SETENV} ${MAKE_ENV} ${GMAKE} -f makeGlobalLib)
.else
- @(cd ${WRKSRC}/MT/src; ${GMAKE} -f makeGlobalLib)
+ @(cd ${WRKSRC}/MT/src; ${SETENV} ${MAKE_ENV} ${GMAKE} -f makeGlobalLib)
.endif
do-install:
@@ -97,4 +103,4 @@
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/ReferenceManual.ps.gz ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN spooles.orig/files/patch-MPI+makefile spooles/files/patch-MPI+makefile
--- spooles.orig/files/patch-MPI+makefile Wed Dec 31 19:00:00 1969
+++ spooles/files/patch-MPI+makefile Mon Feb 20 16:42:31 2006
@@ -0,0 +1,13 @@
+--- MPI/makefile.orig Mon Feb 20 16:41:10 2006
++++ MPI/makefile Mon Feb 20 16:42:02 2006
+@@ -1,8 +1,8 @@
+ all_drivers :
+- cd drivers ; make drivers
++ cd drivers ; ${MAKE} drivers
+
+ lib :
+- cd src ; make spoolesMPI.a
++ cd src ; ${MAKE} spoolesMPI.a
+
+ clean :
+ cd src ; make clean
diff -ruN spooles.orig/files/patch-MT+makefile spooles/files/patch-MT+makefile
--- spooles.orig/files/patch-MT+makefile Wed Dec 31 19:00:00 1969
+++ spooles/files/patch-MT+makefile Mon Feb 20 16:43:14 2006
@@ -0,0 +1,13 @@
+--- MT/makefile.orig Mon Feb 20 16:39:12 2006
++++ MT/makefile Mon Feb 20 16:43:07 2006
+@@ -1,8 +1,8 @@
+ all_drivers :
+- cd drivers ; make drivers
++ cd drivers ; ${MAKE} drivers
+
+ lib :
+- cd src ; make spoolesMT.a
++ cd src ; ${MAKE} spoolesMT.a
+
+ clean :
+ cd src ; make clean
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list