Date: Sat, 19 Feb 2005 18:29:55 +0100 (CET) From: Johan van Selst <johans@stack.nl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/77739: math/it++: update to 3.8.0 and unbreak Message-ID: <20050219172955.D5968171DF@mud.stack.nl> Resent-Message-ID: <200502191730.j1JHUH9U040418@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 77739 >Category: ports >Synopsis: math/it++: update to 3.8.0 and unbreak >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Feb 19 17:30:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Johan van Selst >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD mud.stack.nl 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Jan 31 22:31:14 CET 2005 root@mud.stack.nl:/usr/obj/usr/src/sys/mud i386 >Description: Stable version is now 3.8.0 (Oct 2004). This compiles out of the box on FreeBSD-STABLE. For older systems set USE_GCC=3.3+ and supply a patchfile to actually use the new g++ And while we are at it, also fix compilation on amd64 (and probably ia64) architectures >How-To-Repeat: >Fix: This update introduces two new files: files/patch-configure files/patch-include_base_machdep.h diff -uNr it++/Makefile it++/Makefile --- it++/Makefile Sat Sep 18 19:49:01 2004 +++ it++/Makefile Sat Feb 19 18:18:33 2005 @@ -7,8 +7,7 @@ # PORTNAME= it++ -PORTVERSION= 3.7.1 -PORTREVISION= 1 +PORTVERSION= 3.8.0 CATEGORIES= math MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= itpp @@ -23,17 +22,10 @@ HAS_CONFIGURE= yes CONFIGURE_ARGS= opt USE_GMAKE= yes +USE_GCC= 3.3+ .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - -.if ${ARCH} == "amd64" || ${ARCH} == "ia64" -BROKEN= "Does not compile on amd64 or ia64" -.endif - post-patch: @${REINPLACE_CMD} -e "s|sparc|__sparc__|" \ -e "s|alpha|__alpha__|" ${WRKSRC}/include/base/machdep.h @@ -43,5 +35,6 @@ ${INSTALL_SCRIPT} ${WRKSRC}/bin/it-config ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/lib/libit++.a ${PREFIX}/lib ${CP} -R ${WRKSRC}/include ${PREFIX}/include/it++ + ${FIND} ${PREFIX}/include/it++ -name \*.orig -delete .include <bsd.port.post.mk> diff -uNr it++/distinfo it++/distinfo --- it++/distinfo Thu Jan 29 17:10:06 2004 +++ it++/distinfo Sat Feb 19 15:52:14 2005 @@ -1,2 +1,2 @@ -MD5 (it++3.7.1.tar.gz) = 8e5b242af6ad323ec4abca9b8e7c4322 -SIZE (it++3.7.1.tar.gz) = 606748 +MD5 (it++3.8.0.tar.gz) = 0003d5db4c010e1d833f7f1f1a5b26c8 +SIZE (it++3.8.0.tar.gz) = 447140 diff -uNr it++/files/patch-configure it++/files/patch-configure --- it++/files/patch-configure Thu Jan 1 01:00:00 1970 +++ it++/files/patch-configure Sat Feb 19 17:37:42 2005 @@ -0,0 +1,11 @@ +--- configure.orig Sat Feb 19 17:35:18 2005 ++++ configure Sat Feb 19 17:35:04 2005 +@@ -328,7 +328,7 @@ HAVE_LAPACK = $lapack + HAVE_FFTW = $fftw + OS = $os + IT_DIR = $it_dir +-CXX = $compiler ++#CXX = $compiler + + PROF_FLAGS = -pg \$(OPTIMIZED_FLAGS) + DEBUG_FLAGS = -g -DASSERT_LEVEL=2 diff -uNr it++/files/patch-include_base_machdep.h it++/files/patch-include_base_machdep.h --- it++/files/patch-include_base_machdep.h Thu Jan 1 01:00:00 1970 +++ it++/files/patch-include_base_machdep.h Sat Feb 19 18:03:04 2005 @@ -0,0 +1,22 @@ +--- include/base/machdep.h.orig Sat Feb 19 17:57:11 2005 ++++ include/base/machdep.h Sat Feb 19 17:57:22 2005 +@@ -24,6 +24,7 @@ + #ifndef __machdep_h + #define __machdep_h + ++#include <machine/endian.h> + #include "itconfig.h" + + namespace itpp { +@@ -71,9 +72,9 @@ namespace itpp { + inline void little_endian(it_s8 x, it_s8 &y) { y = x; } + inline void little_endian(it_u8 x, it_u8 &y) { y = x; } + +-#if defined(sparc) ++#if _BYTE_ORDER == _LITTLE_ENDIAN + #define __LITTLE_ENDIAN__ +-#elif defined(i386) || defined(_M_IX86) || defined(alpha) || defined(vms) ++#elif _BYTE_ORDER == _BIG_ENDIAN + #define __BIG_ENDIAN__ + #endif + diff -uNr it++/pkg-plist it++/pkg-plist --- it++/pkg-plist Sun Jan 4 16:14:59 2004 +++ it++/pkg-plist Sat Feb 19 17:17:47 2005 @@ -4,15 +4,26 @@ include/it++/base/binary.h include/it++/base/binfile.h include/it++/base/cblas.h +include/it++/base/cfix.h +include/it++/base/cfixed.h include/it++/base/cholesky.h include/it++/base/circular_buffer.h include/it++/base/converters.h include/it++/base/det.h include/it++/base/eigen.h include/it++/base/elmatfunc.h +include/it++/base/factory.h +include/it++/base/fastica.h include/it++/base/fastmath.h include/it++/base/filter.h +include/it++/base/fix.h +include/it++/base/fix_base.h +include/it++/base/fix_factory.h +include/it++/base/fix_functions.h +include/it++/base/fix_operators.h +include/it++/base/fixed.h include/it++/base/help_functions.h +include/it++/base/integration.h include/it++/base/inv.h include/it++/base/itassert.h include/it++/base/itfile.h @@ -25,13 +36,17 @@ include/it++/base/matfunc.h include/it++/base/operators.h include/it++/base/parser.h +include/it++/base/plot_pdf.h +include/it++/base/qr.h include/it++/base/random.h include/it++/base/scalfunc.h include/it++/base/sigfun.h include/it++/base/smat.h +include/it++/base/sort.h include/it++/base/source.h include/it++/base/specmat.h include/it++/base/stack.h +include/it++/base/stat.h include/it++/base/svd.h include/it++/base/svec.h include/it++/base/timing.h @@ -62,10 +77,12 @@ include/it++/itmex.h include/it++/itsrccode.h include/it++/matlab/matlab_engine.h -include/it++/srccode/audiodev.h include/it++/srccode/audiofile.h +include/it++/srccode/gmm.h include/it++/srccode/lpcfunc.h +include/it++/srccode/pnm.h include/it++/srccode/vq.h +include/it++/srccode/vqtrain.h lib/libit++.a @dirrm include/it++/srccode @dirrm include/it++/matlab >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050219172955.D5968171DF>