pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import cint-5.16.19 as wip/cint.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Sep 27 07:33:28 2016 +0200
Changeset:	90d43cd9e20f9acd450f2cdcb7960d560cb2a919

Added Files:
	cint/DESCR
	cint/Makefile
	cint/PLIST
	cint/distinfo
	cint/files/cint.sh
	cint/patches/patch-Makefile
	cint/patches/patch-configure
	cint/patches/patch-inc_G____ci.h
	cint/patches/patch-src_Makefile.base
	cint/patches/patch-src_Method.cxx
	cint/patches/patch-src_bc__reader.h
	cint/patches/patch-src_gcc3strm.cxx
	cint/patches/patch-src_v6__macro.cxx
	cint/patches/patch-src_v6__newlink.cxx
	cint/patches/patch-src_v6__parse.cxx
	cint/patches/patch-src_v6__pcode.cxx
	cint/patches/patch-tool_INSTALLBIN
	cint/patches/patch-tool_makecint.cxx

Log Message:
Import cint-5.16.19 as wip/cint.

Cint is a C/C++ interpreter. About 95% of ANSI C and 90% of C++ features are
covered. (Data abstraction,  class inheritance, virtual function, function and
operator overloading, default parameter, template,  etc...) Cint has source
code debugger which has sufficient capability to debug complicated C++ program.

This is officially the last release - CERN switched to cling (LLVM-based).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=90d43cd9e20f9acd450f2cdcb7960d560cb2a919

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 cint/DESCR                             |   6 +
 cint/Makefile                          |  66 +++++++
 cint/PLIST                             | 325 +++++++++++++++++++++++++++++++++
 cint/distinfo                          |  19 ++
 cint/files/cint.sh                     |   7 +
 cint/patches/patch-Makefile            |  18 ++
 cint/patches/patch-configure           |  72 ++++++++
 cint/patches/patch-inc_G____ci.h       |   9 +
 cint/patches/patch-src_Makefile.base   |  27 +++
 cint/patches/patch-src_Method.cxx      |  13 ++
 cint/patches/patch-src_bc__reader.h    |  13 ++
 cint/patches/patch-src_gcc3strm.cxx    |  26 +++
 cint/patches/patch-src_v6__macro.cxx   |  24 +++
 cint/patches/patch-src_v6__newlink.cxx |  40 ++++
 cint/patches/patch-src_v6__parse.cxx   |  13 ++
 cint/patches/patch-src_v6__pcode.cxx   |  14 ++
 cint/patches/patch-tool_INSTALLBIN     |  37 ++++
 cint/patches/patch-tool_makecint.cxx   |  14 ++
 18 files changed, 743 insertions(+)

diffs:
diff --git a/cint/DESCR b/cint/DESCR
new file mode 100644
index 0000000..0653ce0
--- /dev/null
+++ b/cint/DESCR
@@ -0,0 +1,6 @@
+Cint is a C/C++ interpreter. About 95% of ANSI C and 90% of C++ features are
+covered. (Data abstraction,  class inheritance, virtual function, function and
+operator overloading, default parameter, template,  etc...) Cint has source
+code debugger which has sufficient capability to debug complicated C++ program.
+
+This is officially the last release - CERN switched to cling (LLVM-based).
diff --git a/cint/Makefile b/cint/Makefile
new file mode 100644
index 0000000..f13a0ff
--- /dev/null
+++ b/cint/Makefile
@@ -0,0 +1,66 @@
+# $NetBSD: Makefile,v 1.31 2015/12/11 23:32:53 joerg Exp $
+
+DISTNAME=		cint-5.16.19-source
+PKGNAME=		${DISTNAME:S/-source//}
+CATEGORIES=		lang
+MASTER_SITES=		https://root.cern.ch/download/
+
+MAINTAINER=		drochner%NetBSD.org@localhost
+HOMEPAGE=		http://www.hanno.jp/gotom/Cint.html
+COMMENT=		C/C++ interpreter
+
+USE_TOOLS+=		bash gmake pax
+USE_LANGUAGES=		c c++
+
+CONFIG_SHELL=		${BASH}
+
+WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}
+
+CONFIGURE_ARGS+=	--arch=netbsd
+# For some reason I cannot get BUILDLINK path for .readline
+CONFIGURE_ARGS+=	--readline=${PREFIX}/lib/libreadline.so
+
+USE_LANGUAGES=		c c++
+
+HAS_CONFIGURE=			yes
+BUILDLINK_TRANSFORM.NetBSD+=	rm:-ldl
+# It does not work
+CPPFLAGS+=			-Wno-write-strings
+# For some reason I cannot get BUILDLINK path for .readline
+LDFLAGS+=			${COMPILER_RPATH_FLAG}${PREFIX}/lib
+
+BUILD_TARGET=			# empty string required
+
+INSTALLATION_DIRS+=	bin cint cint/lib share/doc/cint
+INSTALLATION_DIRS+=	${PKGMANDIR}/man1 ${PKGMANDIR}/man2 ${PKGMANDIR}/man3
+
+post-extract:
+	${FIND} ${WRKSRC} -depth -type d -name CVS -exec ${RM} -rf {} \;
+	${FIND} ${WRKSRC} -type f -name .cvsignore -exec ${RM} -f {} \;
+
+# We do not want these files to be installed
+pre-install:
+	${RM} -f ${WRKSRC}/include/Makeit
+	${RM} -f ${WRKSRC}/include/make*
+
+do-install:
+.for _file_ in cint makecint # inc/G__ci.h
+	${INSTALL_PROGRAM} ${WRKSRC}/${_file_} ${DESTDIR}${PREFIX}/cint/
+.endfor
+	${SED} "s;XXXPREFIXXXX;${PREFIX};g" <${FILESDIR}/cint.sh \
+		>${DESTDIR}${PREFIX}/bin/cint
+	${RUN} cd ${DESTDIR}${PREFIX}/bin && ${LN} -s cint makecint
+	${CHMOD} +x ${DESTDIR}${PREFIX}/bin/cint
+	${RUN} cd ${WRKSRC} && ${PAX} -rw include stl ${DESTDIR}${PREFIX}/cint
+	${RUN} cd ${WRKSRC}/lib && ${PAX} -rw prec_stl ${DESTDIR}${PREFIX}/cint/lib
+.for _file_ in bytecode.txt cint.txt cintapi.txt extlib.txt ifdef.txt limitati.txt limitnum.txt makecint.txt message.txt ref.txt
+	${INSTALL_DATA} ${WRKSRC}/doc/${_file_} \
+		${DESTDIR}${PREFIX}/share/doc/cint
+.endfor
+.for _file_ in cint.1 makecint.1 garbage.2 security.2 unique.2 array.h.3 fft.h.3 statistics.h.3
+	${INSTALL_MAN} ${WRKSRC}/doc/man${_file_:E}/${_file_} \
+		${DESTDIR}${PREFIX}/${PKGMANDIR}/man${_file_:E}
+.endfor
+
+.include "../../mk/readline.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cint/PLIST b/cint/PLIST
new file mode 100644
index 0000000..42b3054
--- /dev/null
+++ b/cint/PLIST
@@ -0,0 +1,325 @@
+@comment $NetBSD: PLIST,v 1.6 2009/06/14 18:03:29 joerg Exp $
+bin/cint
+bin/makecint
+cint/G__ci.h
+cint/MAKEINFO
+cint/cint
+cint/include/Common.h
+cint/include/GL/gl.h
+cint/include/GL/glu.h
+cint/include/GL/glut.h
+cint/include/GL/xmesa.h
+cint/include/README.txt
+cint/include/ReadF.C
+cint/include/ReadF.cxx
+cint/include/ReadF.dll
+cint/include/ReadF.h
+cint/include/RegE.C
+cint/include/RegE.cxx
+cint/include/RegE.dll
+cint/include/RegE.h
+cint/include/X11/Xlib.h
+cint/include/X11/Xutil.h
+cint/include/X11/keysym.h
+cint/include/X11/xos.h
+cint/include/_complex
+cint/include/_complex.h
+cint/include/_exception
+cint/include/_exception.h
+cint/include/_iostream
+cint/include/_stdexcept
+cint/include/_stdexcept.h
+cint/include/api.h
+cint/include/array.c
+cint/include/array.dll
+cint/include/array.h
+cint/include/arrayiostream.h
+cint/include/assert.h
+cint/include/bool
+cint/include/bool.h
+cint/include/boolean.h
+cint/include/carray.c
+cint/include/carray.dll
+cint/include/carray.h
+cint/include/cassert
+cint/include/cctype
+cint/include/cerrno
+cint/include/cfloat
+cint/include/cintsock.dll
+cint/include/ciso646
+cint/include/climits
+cint/include/clocale
+cint/include/cmath
+cint/include/complex
+cint/include/complex.h
+cint/include/constants.h
+cint/include/csetjmp
+cint/include/csignal
+cint/include/cstdarg
+cint/include/cstddef
+cint/include/cstdio
+cint/include/cstdlib
+cint/include/cstring
+cint/include/ctime
+cint/include/ctype.h
+cint/include/cwchar
+cint/include/cwctype
+cint/include/darray.cxx
+cint/include/darray.h
+cint/include/done
+cint/include/errno.h
+cint/include/ertti.h
+cint/include/exception
+cint/include/exception.h
+cint/include/fcntl.h
+cint/include/fft.c
+cint/include/fft.dll
+cint/include/fft.h
+cint/include/float.h
+cint/include/fstream
+cint/include/fstream.h
+cint/include/graphbuf.h
+cint/include/iomanip
+cint/include/iomanip.h
+cint/include/iosenum.cxx
+cint/include/iosenum.h
+cint/include/iosenum.h.bk
+cint/include/iosenum.win32
+cint/include/iosfwd
+cint/include/iosfwd.h
+cint/include/iostream
+cint/include/iostream.h
+cint/include/istream
+cint/include/limits
+cint/include/limits.h
+cint/include/locale
+cint/include/locale.h
+cint/include/long.dll
+cint/include/lsm.c
+cint/include/lsm.dll
+cint/include/lsm.h
+cint/include/math.h
+cint/include/matrix.cxx
+cint/include/matrix.dll
+cint/include/matrix.h
+cint/include/matrixstream.h
+cint/include/matrixstream.hi
+cint/include/mkincld
+cint/include/mkincld.c
+cint/include/new
+cint/include/new.h
+cint/include/ostream
+cint/include/platform.h
+${PLIST.threads}cint/include/pthread.dll
+cint/include/pthread.h
+cint/include/readfile.h
+cint/include/regex.h
+cint/include/regexp.h
+cint/include/setjmp.h
+cint/include/signal.h
+cint/include/socket.h
+cint/include/spice.h
+cint/include/sstream
+cint/include/statistics.c
+cint/include/statistics.dll
+cint/include/statistics.h
+cint/include/stdarg.h
+cint/include/stdcxxfunc.dll
+cint/include/stddef.h
+cint/include/stdexcept
+cint/include/stdfunc.dll
+cint/include/stdio.h
+cint/include/stdiostream.h
+cint/include/stdlib.h
+cint/include/stream.h
+cint/include/streambuf
+cint/include/string.h
+cint/include/striostream.h
+cint/include/strstream
+cint/include/strstream.h
+cint/include/sys/cdefs.h
+cint/include/sys/file.h
+cint/include/sys/ipc.dll
+cint/include/sys/ipc.h
+cint/include/sys/msg.h
+cint/include/sys/sem.h
+cint/include/sys/shm.h
+cint/include/sys/stat.h
+cint/include/sys/types.h
+cint/include/systypes.h
+cint/include/termios.h
+cint/include/time.h
+cint/include/timespec.h
+cint/include/typeinfo
+cint/include/typeinfo.h
+cint/include/unistd.h
+cint/include/windows.h
+cint/include/winsock.h
+cint/include/xgraph.c
+cint/include/xgraph.dll
+cint/include/xygraphbuf.h
+cint/lib/prec_stl/README.txt
+cint/lib/prec_stl/algorithm
+cint/lib/prec_stl/bitset
+cint/lib/prec_stl/climits
+cint/lib/prec_stl/complex
+cint/lib/prec_stl/deque
+cint/lib/prec_stl/exception
+cint/lib/prec_stl/functional
+cint/lib/prec_stl/iterator
+cint/lib/prec_stl/limits
+cint/lib/prec_stl/list
+cint/lib/prec_stl/map
+cint/lib/prec_stl/memory
+cint/lib/prec_stl/multimap
+cint/lib/prec_stl/multiset
+cint/lib/prec_stl/numeric
+cint/lib/prec_stl/queue
+cint/lib/prec_stl/set
+cint/lib/prec_stl/stack
+cint/lib/prec_stl/stdexcept
+cint/lib/prec_stl/string
+cint/lib/prec_stl/utility
+cint/lib/prec_stl/valarray
+cint/lib/prec_stl/vector
+cint/makecint
+cint/stl/G__postprocess.h
+cint/stl/README.txt
+cint/stl/_algorithm
+cint/stl/_autocontainer
+cint/stl/_bitset
+cint/stl/_climits
+cint/stl/_climits.h
+cint/stl/_deque
+cint/stl/_deque.h
+cint/stl/_functional
+cint/stl/_iterator
+cint/stl/_iterator.h
+cint/stl/_list
+cint/stl/_list.h
+cint/stl/_map
+cint/stl/_map.h
+cint/stl/_memory
+cint/stl/_memory.h
+cint/stl/_multimap
+cint/stl/_multimap.h
+cint/stl/_multiset
+cint/stl/_multiset.h
+cint/stl/_pair.h
+cint/stl/_set
+cint/stl/_set.h
+cint/stl/_stack
+cint/stl/_stack.h
+cint/stl/_string
+cint/stl/_utility
+cint/stl/_utility.h
+cint/stl/_vector
+cint/stl/_vector.h
+cint/stl/algo.h
+cint/stl/algobase.h
+cint/stl/algorithm
+cint/stl/bitset
+cint/stl/bool
+cint/stl/bstring.h
+cint/stl/bvector.h
+cint/stl/complex.dll
+cint/stl/defalloc.h
+cint/stl/deque
+cint/stl/deque.dll
+cint/stl/deque.h
+cint/stl/exception.dll
+cint/stl/faralloc.h
+cint/stl/fdeque.h
+cint/stl/flist.h
+cint/stl/fmap.h
+cint/stl/fmultmap.h
+cint/stl/fmultset.h
+cint/stl/fset.h
+cint/stl/function.h
+cint/stl/functional
+cint/stl/hdeque.h
+cint/stl/heap.h
+cint/stl/hlist.h
+cint/stl/hmap.h
+cint/stl/hmultmap.h
+cint/stl/hmultset.h
+cint/stl/hset.h
+cint/stl/hugalloc.h
+cint/stl/hvector.h
+cint/stl/iterator
+cint/stl/iterator.h
+cint/stl/lbvector.h
+cint/stl/ldeque.h
+cint/stl/limits
+cint/stl/list
+cint/stl/list.dll
+cint/stl/list.h
+cint/stl/llist.h
+cint/stl/lmap.h
+cint/stl/lmultmap.h
+cint/stl/lmultset.h
+cint/stl/lngalloc.h
+cint/stl/lset.h
+cint/stl/map
+cint/stl/map.dll
+cint/stl/map.h
+cint/stl/map2.dll
+cint/stl/memory
+cint/stl/multimap
+cint/stl/multimap.dll
+cint/stl/multimap.h
+cint/stl/multimap2.dll
+cint/stl/multiset
+cint/stl/multiset.dll
+cint/stl/multiset.h
+cint/stl/neralloc.h
+cint/stl/nmap.h
+cint/stl/nmultmap.h
+cint/stl/nmultset.h
+cint/stl/nset.h
+cint/stl/numeric
+cint/stl/pair
+cint/stl/pair.h
+cint/stl/projectn.h
+cint/stl/queue
+cint/stl/queue.dll
+cint/stl/random.cpp
+cint/stl/set
+cint/stl/set.dll
+cint/stl/set.h
+cint/stl/stack
+cint/stl/stack.dll
+cint/stl/stack.h
+cint/stl/stdexcept.dll
+cint/stl/string
+cint/stl/string.dll
+cint/stl/tempbuf.cpp
+cint/stl/tempbuf.h
+cint/stl/teststl
+cint/stl/teststl.c
+cint/stl/tree.h
+cint/stl/utility
+cint/stl/utility.h
+cint/stl/valarray
+cint/stl/vector
+cint/stl/vector.dll
+cint/stl/vector.h
+cint/stl/vectorbool.dll
+share/doc/cint/bytecode.txt
+share/doc/cint/cint.txt
+share/doc/cint/cintapi.txt
+share/doc/cint/extlib.txt
+share/doc/cint/ifdef.txt
+share/doc/cint/limitati.txt
+share/doc/cint/limitnum.txt
+share/doc/cint/makecint.txt
+share/doc/cint/message.txt
+share/doc/cint/ref.txt
+man/man1/cint.1
+man/man1/makecint.1
+man/man2/garbage.2
+man/man2/security.2
+man/man2/unique.2
+man/man3/array.h.3
+man/man3/fft.h.3
+man/man3/statistics.h.3
diff --git a/cint/distinfo b/cint/distinfo
new file mode 100644
index 0000000..27342cf
--- /dev/null
+++ b/cint/distinfo
@@ -0,0 +1,19 @@
+$NetBSD: distinfo,v 1.9 2015/12/29 23:34:44 dholland Exp $
+
+SHA1 (cint-5.16.19-source.tar.gz) = 22307e50b4414f4e6e70d791d3ccfe2cc2163f59
+RMD160 (cint-5.16.19-source.tar.gz) = ff7deb0cdf5534fb8849eaf5febf9e57117066ff
+SHA512 (cint-5.16.19-source.tar.gz) = ae96247dc62f7ab27d514b302cd836a9bed07ed24adc664224c063a70e1305a335e01031e0dd18646d3d7215593590a8d5100c4236aba08064bbcf0ece531c02
+Size (cint-5.16.19-source.tar.gz) = 1975329 bytes
+SHA1 (patch-Makefile) = 3322e2617ec973957437eee9c790ee340bf8bdb4
+SHA1 (patch-configure) = e2bd11db2087739ae0c9cd0f24c3f78275d41d50
+SHA1 (patch-inc_G____ci.h) = 1540777297e13378b9ac671e3afb14454ed83acb
+SHA1 (patch-src_Makefile.base) = 95b488ffc6ac156fa7bca8394c5c88964c978cd9
+SHA1 (patch-src_Method.cxx) = 2ea318a6c5e59773f6effb7e39c1c3bb075d800b
+SHA1 (patch-src_bc__reader.h) = 8b2e3b72b15ef51e6535402f6b0b239f959976c3
+SHA1 (patch-src_gcc3strm.cxx) = 0a40e104b236bc0548c5d8c536c94de0f0d347b6
+SHA1 (patch-src_v6__macro.cxx) = 5b7aa2c48e8546bc39e5dfb1d71c037f5079d99b
+SHA1 (patch-src_v6__newlink.cxx) = 9f8208efa77b131788cf2a29b342799c81af99a7
+SHA1 (patch-src_v6__parse.cxx) = 7967db48f2205213e1ab618b604fa5fc91fd4458
+SHA1 (patch-src_v6__pcode.cxx) = 7828f23bffa8d9a9d869a5389c190920ec3dd9cd
+SHA1 (patch-tool_INSTALLBIN) = 74a9eff4a4651b887347a35c4c4d8c24bc142d49
+SHA1 (patch-tool_makecint.cxx) = cfbce2bfb8dabbb098d148809012b40f1393a564
diff --git a/cint/files/cint.sh b/cint/files/cint.sh
new file mode 100755
index 0000000..1549eb9
--- /dev/null
+++ b/cint/files/cint.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# $NetBSD: cint.sh,v 1.1.1.1 1999/11/17 14:48:18 drochner Exp $
+
+CINTSYSDIR=XXXPREFIXXXX/cint
+export CINTSYSDIR
+exec XXXPREFIXXXX/cint/`basename $0` $*
diff --git a/cint/patches/patch-Makefile b/cint/patches/patch-Makefile
new file mode 100644
index 0000000..cfc7d5f
--- /dev/null
+++ b/cint/patches/patch-Makefile
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- Makefile.orig	2006-11-24 08:41:26.000000000 +0000
++++ Makefile
+@@ -38,11 +38,11 @@ include/iosenum.h : cint$(G__CFG_EXEEXT)
+ 		touch include/iosenum.h; \
+ 	else \
+ 		(echo Generating iosenum.h. This might take a while...; \
+-		cd include;$(G__CFG_RM) stdfunc$(G__CFG_SOEXT); cd ..\
++		cd include;$(G__CFG_RM) stdfunc$(G__CFG_SOEXT); cd ..; \
+ 		unset VS_UNICODE_OUTPUT; \
+ 		LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:. \
+ 		DYLD_LIBRARY_PATH=$$DYLD_LIBRARY_PATH:. \
+-		./cint$(G__CFG_EXEEXT) $(G__CFG_INCP)inc iosenum.cxx); \
++		./cint$(G__CFG_EXEEXT) $(G__CFG_INCP)inc include/iosenum.cxx); \
+ 	fi)
+ 	@echo > done
+ 
diff --git a/cint/patches/patch-configure b/cint/patches/patch-configure
new file mode 100644
index 0000000..271c46a
--- /dev/null
+++ b/cint/patches/patch-configure
@@ -0,0 +1,72 @@
+$NetBSD$
+
+--- configure.orig	2006-11-24 08:30:23.000000000 +0000
++++ configure
+@@ -6,21 +6,9 @@
+ #
+ ##############################################################
+ #
+-# This is a bash script, which works with any reasonable sh.
+-# Solaris sh is not, so we have to start bash, and call ourselves again.
+-
+-[ "x$1" != "x__have_the_proper_shell@" ] && ( \
+-uname -a | grep -i sunos > /dev/null \
+-  && (bash $0 __have_the_proper_shell@ "$*") \
+-  || (sh $0 __have_the_proper_shell@ "$*") \
+-)
+-
+-[ "x$1" != "x__have_the_proper_shell@" ] && exit
+-shift
+-
+ # configure settings to build CINT
+ 
+-ARCHS=(linux linuxicc macgcc djgpp cygwin mingw mwerks hpux aix msvc7 msvc8 solaris solarisgcc)
++ARCHS=(linux linuxicc macgcc djgpp cygwin mingw mwerks netbsd hpux aix msvc7 msvc8 solaris solarisgcc)
+ 
+ #############################################################
+ ###
+@@ -102,6 +90,27 @@ function config_linux {
+     config_GCC_defaults
+ }
+ 
++function config_netbsdx8664gcc {
++    config_GCC_defaults
++
++    EXTRA_LIB_DIR=/usr/lib64
++    CPP="gcc -E -C -m64"
++    CXXFLAGS="-m64  -fPIC ${CXXFLAGS}"
++    CFLAGS="-m64  -fPIC ${CFLAGS}"
++    LDFLAGS="-m64 ${LDFLAGS}"
++    DEFAULTLIBS="-lm -lterminfo"
++}
++
++function config_netbsd {
++    config_GCC_defaults
++
++    CPP="gcc -E -C"
++    CXXFLAGS="-fPIC ${CXXFLAGS}"
++    CFLAGS="-fPIC ${CFLAGS}"
++    LDFLAGS="${LDFLAGS}"
++    DEFAULTLIBS="-lm -lterminfo"
++}
++
+ function config_linuxx8664gcc {
+     config_GCC_defaults
+ 
+@@ -327,6 +336,7 @@ function guess_arch {
+ #        freebsd*:*:5*)         arch=freebsd5        ;;
+ #        freebsd*:*:4*)         arch=freebsd4        ;;
+ #        freebsd*:*:*)          arch=freebsd         ;;
++         netbsd:x86_64:*)       arch=netbsdx8664gcc  ;;
+ #        hp-ux:ia64:*)          arch=hpuxia64acc     ;;
+ #        hp-ux:*:*)             arch=hpuxacc         ;;
+ #        hurd*:*:*)             arch=hurddeb         ;;
+@@ -412,7 +422,7 @@ function processflag_cintex_libdir {
+     CINTEXLIBDIR=$1
+ }
+ 
+-function processflag_readlinelib {
++function processflag_readline {
+     READLINELIB=$1
+     BUILDREADLINE=
+ }
diff --git a/cint/patches/patch-inc_G____ci.h b/cint/patches/patch-inc_G____ci.h
new file mode 100644
index 0000000..1a4e74e
--- /dev/null
+++ b/cint/patches/patch-inc_G____ci.h
@@ -0,0 +1,9 @@
+$NetBSD$
+
+--- inc/G__ci.h.orig	2007-03-16 11:49:46.000000000 +0000
++++ inc/G__ci.h
+@@ -2470,4 +2470,3 @@ extern G__EXPORT G__uint64 G__expr_strto
+ 
+ 
+ #endif /* G__CI_H */
+-
diff --git a/cint/patches/patch-src_Makefile.base b/cint/patches/patch-src_Makefile.base
new file mode 100644
index 0000000..4268aae
--- /dev/null
+++ b/cint/patches/patch-src_Makefile.base
@@ -0,0 +1,27 @@
+$NetBSD$
+
+--- src/Makefile.base.orig	2006-11-23 14:13:03.000000000 +0000
++++ src/Makefile.base
+@@ -29,6 +29,8 @@ DLLREVH =       dllrev.h
+ 
+ HEADERS =       common.h global.h fproto.h memtest.h sunos.h ../inc/G__ci.h 
+ 
++SHLIB_OPT =     -fPIC
++
+ OBJECTS = 	$(PLATFORM) \
+ 		$(STDLIBS) \
+ 		$(APIO) \
+@@ -86,7 +88,7 @@ $(CINTLIB) : $(OBJECTS)
+ 
+ # Cint core as shared library on Linux
+ $(CINTSYSDIR)/libcint.so : $(OBJECTS)
+-	$(LD) $(LDDLLOPT) $(SHLIB_OPT) -o $@ $(OBJECTS)
++	$(LD) $(LDDLLOPT) $(SHLIB_OPT) -fPIC -o $@ $(OBJECTS)
+ 
+ # Cint core as shared library on HP-UX
+ $(CINTSYSDIR)/libcint.sl : $(OBJECTS)
+@@ -470,4 +472,3 @@ Shadow$(OBJPOST) : Api.h $(HEADERS)
+ ############################################################################
+ clean :
+ 	$(RM) $(OBJECTS) $(CINTLIB) core
+-
diff --git a/cint/patches/patch-src_Method.cxx b/cint/patches/patch-src_Method.cxx
new file mode 100644
index 0000000..b6fdaf5
--- /dev/null
+++ b/cint/patches/patch-src_Method.cxx
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- src/Method.cxx.orig	2007-03-15 17:59:30.000000000 +0000
++++ src/Method.cxx
+@@ -515,6 +515,8 @@ long Cint::G__MethodInfo::FilePosition()
+       return((long)ifunc->pentry[index]->pos.__pos);
+ #elif defined(G__NONSCALARFPOS_QNX)      
+       return((long)ifunc->pentry[index]->pos._Off);
++#elif defined(__NetBSD__)
++      return((long)ifunc->pentry[index]->pos._pos);
+ #else
+       return((long)ifunc->pentry[index]->pos);
+ #endif
diff --git a/cint/patches/patch-src_bc__reader.h b/cint/patches/patch-src_bc__reader.h
new file mode 100644
index 0000000..c17f6ce
--- /dev/null
+++ b/cint/patches/patch-src_bc__reader.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- src/bc_reader.h.orig	2007-03-15 17:59:30.000000000 +0000
++++ src/bc_reader.h
+@@ -66,6 +66,8 @@ class G__fstream {
+   #else
+      m_pos.__pos = pos; // this is for rest linux distribution
+   #endif
++#elif defined(__NetBSD__)
++  m_pos._pos = pos;
+ #else
+   m_pos = pos;
+ #endif
diff --git a/cint/patches/patch-src_gcc3strm.cxx b/cint/patches/patch-src_gcc3strm.cxx
new file mode 100644
index 0000000..6b27b2c
--- /dev/null
+++ b/cint/patches/patch-src_gcc3strm.cxx
@@ -0,0 +1,26 @@
+$NetBSD$
+
+--- src/gcc3strm.cxx.orig	2006-09-28 09:01:54.000000000 +0000
++++ src/gcc3strm.cxx
+@@ -308,13 +308,21 @@ static int G__G__stream_7_6_0(G__value* 
+ 
+ static int G__G__stream_7_7_0(G__value* result7, G__CONST char* funcname, struct G__param* libp, int hash)
+ {
++#if defined(__NetBSD__)
++//      G__letint(result7, 103, (long) ((fpos<mbstate_t>*) G__getstructoffset())->operator==(*(fpos<mbstate_t>*) libp->para[0].ref));
++#else
+       G__letint(result7, 103, (long) ((fpos<mbstate_t>*) G__getstructoffset())->operator==(*(fpos<mbstate_t>*) libp->para[0].ref));
++#endif
+    return(1 || funcname || hash || result7 || libp) ;
+ }
+ 
+ static int G__G__stream_7_8_0(G__value* result7, G__CONST char* funcname, struct G__param* libp, int hash)
+ {
++#if defined(__NetBSD__)
++//      G__letint(result7, 103, (long) ((fpos<mbstate_t>*) G__getstructoffset())->operator!=(*(fpos<mbstate_t>*) libp->para[0].ref));
++#else
+       G__letint(result7, 103, (long) ((fpos<mbstate_t>*) G__getstructoffset())->operator!=(*(fpos<mbstate_t>*) libp->para[0].ref));
++#endif
+    return(1 || funcname || hash || result7 || libp) ;
+ }
+ 
diff --git a/cint/patches/patch-src_v6__macro.cxx b/cint/patches/patch-src_v6__macro.cxx
new file mode 100644
index 0000000..4768ff9
--- /dev/null
+++ b/cint/patches/patch-src_v6__macro.cxx
@@ -0,0 +1,24 @@
+$NetBSD$
+
+--- src/v6_macro.cxx.orig	2006-11-23 13:34:01.000000000 +0000
++++ src/v6_macro.cxx
+@@ -465,6 +465,9 @@ G__value G__execfuncmacro(char *item,int
+ #elif defined(G__NONSCALARFPOS_QNX)
+     if(call_pos._Off == callfuncmacro->call_pos._Off &&
+        G__ifile.filenum == callfuncmacro->call_filenum) {
++#elif defined(__NetBSD__)
++    if(call_pos._pos == callfuncmacro->call_pos._pos &&
++       G__ifile.filenum == callfuncmacro->call_filenum) {
+ #else
+     if(call_pos == callfuncmacro->call_pos &&
+        G__ifile.filenum == callfuncmacro->call_filenum) {
+@@ -782,6 +785,9 @@ int G__execfuncmacro_noexec (char* macro
+ #elif defined(G__NONSCALARFPOS_QNX)
+     if(call_pos._Off == callfuncmacro->call_pos._Off &&
+        G__ifile.filenum == callfuncmacro->call_filenum)       
++#elif defined(__NetBSD__)
++    if(call_pos._pos == callfuncmacro->call_pos._pos &&
++       G__ifile.filenum == callfuncmacro->call_filenum)
+ #else
+     if(call_pos == callfuncmacro->call_pos &&
+        G__ifile.filenum == callfuncmacro->call_filenum)
diff --git a/cint/patches/patch-src_v6__newlink.cxx b/cint/patches/patch-src_v6__newlink.cxx
new file mode 100644
index 0000000..71f188b
--- /dev/null
+++ b/cint/patches/patch-src_v6__newlink.cxx
@@ -0,0 +1,40 @@
+$NetBSD$
+
+--- src/v6_newlink.cxx.orig	2007-03-15 17:59:30.000000000 +0000
++++ src/v6_newlink.cxx
+@@ -7014,7 +7014,7 @@ int G__parse_parameter_link(char* paras)
+     }
+     else {
+       if (type_name[0] == '\'') {
+-        type_name[std::strlen(type_name)-1] = '\0';
++        type_name[strlen(type_name)-1] = '\0';
+         typenum = G__defined_typename(type_name + 1);
+       }
+       else {
+@@ -7022,7 +7022,7 @@ int G__parse_parameter_link(char* paras)
+       }
+     }
+     ch = G__separate_parameter(paras, &os, c_reftype_const);
+-    reftype_const = std::atoi(c_reftype_const);
++    reftype_const = atoi(c_reftype_const);
+ #ifndef G__OLDIMPLEMENTATION1861
+     if (typenum != -1) {
+       reftype_const += G__newtype.isconst[typenum] * 10;
+@@ -7037,14 +7037,14 @@ int G__parse_parameter_link(char* paras)
+       para_default = (G__value*) -1;
+       // The parameter default text will be quoted if it
+       // contains spaces, we must remove the quotes.
+-      int len = std::strlen(c_default);
++      int len = strlen(c_default);
+       //assert(len > 2);
+       if (len > 1 && (c_default[0] == '\'' || c_default[0] == '\"')) {
+         c_default[len-1] = '\0';
+         // The source and destination overlap, do it carefully.
+         char buf[G__MAXNAME*2];
+-        std::strcpy(buf, ((char*) c_default) + 1);
+-        std::strcpy(c_default, buf);
++        strcpy(buf, ((char*) c_default) + 1);
++        strcpy(c_default, buf);
+       }
+     }
+     ch = G__separate_parameter(paras, &os, c_paraname);
diff --git a/cint/patches/patch-src_v6__parse.cxx b/cint/patches/patch-src_v6__parse.cxx
new file mode 100644
index 0000000..f7ce167
--- /dev/null
+++ b/cint/patches/patch-src_v6__parse.cxx
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- src/v6_parse.cxx.orig	2007-03-15 17:59:30.000000000 +0000
++++ src/v6_parse.cxx
+@@ -297,6 +297,8 @@ int G__ignore_catch()
+     G__asm_inst[G__asm_cp+3]=(long)fpos1.__pos;
+ #elif defined(G__NONSCALARFPOS_QNX)
+     G__asm_inst[G__asm_cp+3]=(long)fpos1._Off;
++#elif defined(__NetBSD__)
++    G__asm_inst[G__asm_cp+3]=(long)fpos1._pos;
+ #else
+     G__asm_inst[G__asm_cp+3]=(long)fpos1;
+ #endif
diff --git a/cint/patches/patch-src_v6__pcode.cxx b/cint/patches/patch-src_v6__pcode.cxx
new file mode 100644
index 0000000..301b139
--- /dev/null
+++ b/cint/patches/patch-src_v6__pcode.cxx
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- src/v6_pcode.cxx.orig	2007-02-16 23:46:45.000000000 +0000
++++ src/v6_pcode.cxx
+@@ -9204,6 +9204,9 @@ int G__dasm(FILE *fout,int isthrow)
+ #elif defined(G__NONSCALARFPOS_QNX)
+         fpos_t pos;
+         pos._Off = (off_t)G__asm_inst[pc+3];
++#elif defined(__NetBSD__)
++        fpos_t pos;
++        pos._pos = (off_t)G__asm_inst[pc+3];
+ #else
+         fpos_t pos = (fpos_t)G__asm_inst[pc+3];
+ #endif
diff --git a/cint/patches/patch-tool_INSTALLBIN b/cint/patches/patch-tool_INSTALLBIN
new file mode 100644
index 0000000..d02dbfd
--- /dev/null
+++ b/cint/patches/patch-tool_INSTALLBIN
@@ -0,0 +1,37 @@
+$NetBSD$
+
+--- tool/INSTALLBIN.orig	2006-06-17 08:10:02.000000000 +0000
++++ tool/INSTALLBIN
+@@ -69,12 +69,12 @@ fi
+ echo "Where do the files go to?  Summary:"
+ echo "Installing binary files to:              $BINDIR"
+ echo "           Cint system files to:         $LIBDIR"
+-if ! test "${MANDIR}x" == "x"; then
++if ! test "${MANDIR}x" = "x"; then
+   echo "           manual pages to:              $MANDIR"
+ else
+   echo "           manual pages are not installed"
+ fi
+-if ! test "${DOCDIR}x" == "x"; then
++if ! test "${DOCDIR}x" = "x"; then
+   echo "           additional documentation to:  $DOCDIR"
+ else
+   echo "           additional documentation is not installed"
+@@ -127,7 +127,7 @@ echo -e "\n  ... successfully installed 
+ #####################################################################
+ # Optionally copy man files
+ #####################################################################
+-if ! test "${MANDIR}x" == "x"; then
++if ! test "${MANDIR}x" = "x"; then
+   mkdir -p $MANDIR/man1
+   
+   # Copy manpages in section 1
+@@ -143,7 +143,7 @@ fi
+ #####################################################################
+ # Optionally copy additional text documentation
+ #####################################################################
+-if ! test "${DOCDIR}x" == "x"; then
++if ! test "${DOCDIR}x" = "x"; then
+   mkdir -p $DOCDIR
+   
+   # Copy text files in doc/
diff --git a/cint/patches/patch-tool_makecint.cxx b/cint/patches/patch-tool_makecint.cxx
new file mode 100644
index 0000000..89392d4
--- /dev/null
+++ b/cint/patches/patch-tool_makecint.cxx
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- tool/makecint.cxx.orig	2007-03-16 11:32:07.000000000 +0000
++++ tool/makecint.cxx
+@@ -30,7 +30,9 @@
+ #define EXIT_SUCCESS 0
+ #endif
+ 
++#include <cstdlib>
+ #include <string>
++#include <cstring>
+ #include <iostream>
+ #include <fstream>
+ #include <list>


Home | Main Index | Thread Index | Old Index