OT Re: AMD64- Solutions
Roland Smith
rsmith at xs4all.nl
Sat Dec 4 00:37:58 PST 2004
On Fri, Dec 03, 2004 at 10:20:29AM -0800, David O'Brien wrote:
> On Thu, Dec 02, 2004 at 10:02:56PM -0800, Steve Kargl wrote:
> > If you already have matlab code in house, then check out octave.
> > You can find it in ports/math/octave. I have been able to run
> > most matlab codes given to me by others with little or no changes.
>
> Have you used octave on AMD64 by chance? The port is
> BROKEN="Does not build on amd64 (Shared libraries must be compiled with -fPIC)"
> Do you have a local patch by chance?
I've used the patch to the makefile included below to build it from
ports.
------------------------ octave-mak.patch ------------------------
--- Makefile.orig Fri Dec 3 20:36:40 2004
+++ Makefile Sat Dec 4 09:05:08 2004
@@ -23,10 +23,6 @@
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64"
-BROKEN= "Does not build on amd64 (Shared libraries must be compiled with -fPIC)"
-.endif
-
.if ${PORTOBJFORMAT} == "elf"
GNU_HOST= ${ARCH}-portbld-freebsd${OSREL}
.else
@@ -38,11 +34,15 @@
BLAS_LIBS= "-L${LOCALBASE}/lib -lf77blas -lcblas -latlas"
USE_GMAKE= yes
GNU_CONFIGURE= yes
-USE_REINPLACE= yes
-CONFIGURE_ARGS= --host=${GNU_HOST} \
- --with-fftw --with-blas=${BLAS_LIBS} --with-lapack=-lalapack \
- --enable-shared
+CONIGURE_ARGS= --host=${GNU_HOST} \
+ --with-fftw --with-blas=${BLAS_LIBS} --with-lapack=-lalapack
+.if ${ARCH} == "amd64"
+CONFIGURE_ARGS+= --disable-shared
+.else
+CONFIGURE_ARGS+= --enable-shared
+.endif
+
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
@@ -62,12 +62,6 @@
@${RM} -f ${WRKSRC}/doc/interpreter/octave.info*
@${RM} -f ${WRKSRC}/doc/liboctave/liboctave.info*
post-install:
- ${RM} ${PREFIX}/bin/octave
- @${CP} ${FILESDIR}/octave ${WRKDIR}
- @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g ; \
- s,%%OCTAVE_VERSION%%,${OCTAVE_VERSION},g' \
- ${WRKDIR}/octave
- ${INSTALL_SCRIPT} ${WRKDIR}/octave ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/liboctave/liboctave.info ${PREFIX}/info
install-info --entry='* Octave: (octave). Interactive language for numerical computations.' $(PREFIX)/info/octave.info $(PREFIX)/info/dir
install-info --entry='* LibOctave: (liboctave). C++ class library for Octave.' $(PREFIX)/info/liboctave.info $(PREFIX)/info/dir
------------------------ octave-mak.patch ------------------------
--
R.F. Smith /"\ ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in email
http://www.xs4all.nl/~rsmith/ X No Word docs in email
/ \ Respect for open standards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20041204/6e997f3b/attachment.bin
More information about the freebsd-amd64
mailing list