Date: Sat, 4 Dec 2004 09:38:10 +0100 From: Roland Smith <rsmith@xs4all.nl> To: freebsd-amd64@freebsd.org Subject: Re: OT Re: AMD64- Solutions Message-ID: <20041204083810.GA27700@slackbox.xs4all.nl> In-Reply-To: <20041203182029.GD27940@dragon.nuxi.com> References: <conljc$1pep$1@FreeBSD.csie.NCTU.edu.tw> <20041203011408.163FE106C28@FreeBSD.csie.NCTU.edu.tw> <20041203045849.GA15850@troutmask.apl.washington.edu> <41AFF4BF.7070503@iki.fi> <20041203060256.GA16165@troutmask.apl.washington.edu> <20041203182029.GD27940@dragon.nuxi.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iD8DBQFBsXdyEnfvsMMhpyURAtwyAJ9C4tDGRCfoAb/1mmt4Ao1mE7ualQCeK2dl
GQKdjI19Z2hj12LfUyUxeHo=
=NzYF
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041204083810.GA27700>
