Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

15
misc/root/DESCR Normal file
View File

@@ -0,0 +1,15 @@
The ROOT system provides a set of OO frameworks with all the functionality
needed to handle and analyse large amounts of data in a very efficient way.
Having the data defined as a set of objects, specialised storage methods are
used to get direct access to the separate attributes of the selected objects,
without having to touch the bulk of the data. Included are histograming methods
in 1, 2 and 3 dimensions, curve fitting, function evaluation, minimisation,
graphics and visualization classes to allow the easy setup of an analysis
system that can query and process the data interactively or in batch mode.
Thanks to the builtin CINT C++ interpreter the command language, the scripting,
or macro, language and the programming language are all C++. The interpreter
allows for fast prototyping of the macros since it removes the time consuming
compile/link cycle. It also provides a good environment to learn C++. If more
performance is needed the interactively developed macros can be compiled using
a C++ compiler.

66
misc/root/Makefile Normal file
View File

@@ -0,0 +1,66 @@
# $NetBSD: Makefile,v 1.52 2013/06/06 12:54:49 wiz Exp $
DISTNAME= root_v5.26.00b.source
PKGNAME= root-5.26
PKGREVISION= 12
CATEGORIES= misc
MASTER_SITES= ftp://root.cern.ch/root/
MAINTAINER= drochner@NetBSD.org
HOMEPAGE= http://root.cern.ch/
COMMENT= OO framework for data analysis and visualisation
WRKSRC= ${WRKDIR}/root
USE_TOOLS+= gmake
USE_LANGUAGES= c c++ #fortran f2c lacks LOC()
.include "../../lang/gcc3-f77/buildlink3.mk"
CHECK_PORTABILITY_SKIP= build/win/*.sh cint/tool/INSTALLBIN
BUILD_TARGET=
.if (${MACHINE_ARCH} == "arm")
BROKEN= Compilation stops due to internal compiler error
.endif
INSTALLATION_DIRS= bin
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= ${LOWER_OPSYS}
CONFIGURE_ARGS+= --prefix=${PREFIX} --mandir=${PREFIX}/${PKGMANDIR}/man1
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
CONFIGURE_ARGS+= --enable-soversion
CONFIGURE_ARGS+= --disable-builtin-pcre
CONFIGURE_ARGS+= --disable-builtin-freetype
# clarens needs xmlrpc-c, the pkgsrc version is incompatible
CONFIGURE_ARGS+= --disable-clarens
CONFIGURE_ARGS+= --with-x11-libdir=${BUILDLINK_PREFIX.libX11}/lib
CONFIGURE_ARGS+= --with-xpm-libdir=${BUILDLINK_PREFIX.libXpm}/lib
# option, requires libxml2
CONFIGURE_ARGS+= --disable-xml
#.include "../../textproc/libxml2/buildlink3.mk"
# might be optional
#CONFIGURE_ARGS+= --disable-asimage
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/giflib.buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../math/gsl/buildlink3.mk"
post-extract:
${CP} ${FILESDIR}/Makefile.netbsd ${WRKSRC}/config
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

4458
misc/root/PLIST Normal file

File diff suppressed because it is too large Load Diff

32
misc/root/distinfo Normal file
View File

@@ -0,0 +1,32 @@
$NetBSD: distinfo,v 1.9 2011/12/23 01:17:54 joerg Exp $
SHA1 (root_v5.26.00b.source.tar.gz) = 70db6f9cf6acc29bcf0060a4c2e1f9e24c26702a
RMD160 (root_v5.26.00b.source.tar.gz) = 057ce1151a534f00a445ec69392e7a7a3bd55ca8
Size (root_v5.26.00b.source.tar.gz) = 29302078 bytes
SHA1 (patch-aa) = 5be58e4472cee7f9d2768fa4f7a7fcde0ad92eaa
SHA1 (patch-ab) = 92294d3f78d981ffba8f4fcd786d5e6f3cffd851
SHA1 (patch-ac) = 25964f21e1d2a5a4df4ebc92e8cc350d1e947e2f
SHA1 (patch-ad) = d4c9f431e15789e9da8eff5cd5d081a894cbde72
SHA1 (patch-ae) = 863e99cc06deade4e466974e969c12aeadc114be
SHA1 (patch-af) = 612159fc61e6f2faa44896da9703e805122ba19b
SHA1 (patch-ag) = 27444cf42cd9536dbaaa8c543ede91a8c8564428
SHA1 (patch-ah) = 6f8e4757e51f2db0f9e5bcca167c1d32e9c20de0
SHA1 (patch-ai) = 8b8cc76a1cd1115bd567895b4214d48cef5ab2dd
SHA1 (patch-aj) = 1a162338c75483a21904a07bea1b74e8992132a2
SHA1 (patch-ak) = e88d68f70b8022c70d9c8789200fa2a8e3af883f
SHA1 (patch-al) = 9f6ba7bceb504f4f3dd47609f73b1467c622be0d
SHA1 (patch-am) = 05756cbd57e04c0f7ca1f606245749dc3ec58ddc
SHA1 (patch-an) = 28a17f5772de4408a1d6d6e4389266ae61e6612c
SHA1 (patch-ba) = 1e434d27ecbfc21edc17780b5e9ac5ecd73e7794
SHA1 (patch-bb) = e2bfafb02ff14d6dc6206b0e7fb45788d88292a8
SHA1 (patch-bc) = 7f9c01f74f33bfc6552a5470bfea2f2589603918
SHA1 (patch-bd) = 1a31f5b30d606e91efa74db5136176f2ef8ef6be
SHA1 (patch-be) = c1955c4193206fba0fd1f91a115808a830f7ef50
SHA1 (patch-bf) = d20fed4aa19b0655ac415fdb979fddd5ea495be9
SHA1 (patch-bg) = 6e40fdba8f5cd7ba2dab7237696c7779d9820ee2
SHA1 (patch-bh) = 70591be468ba459aa1ab7f5159a3399566a784ea
SHA1 (patch-bi) = 338133d5a00d67f6d2fab4ee55ca8b3f9c78ddf5
SHA1 (patch-bj) = 07b5423a35c3998639cd5ac09596e5e40ce700f0
SHA1 (patch-ca) = 016b52171f894a800f667c7e588a51a8031907bb
SHA1 (patch-graf2d_asimage_src_libAfterImage_export.c) = a206c421c5d05c4a38dba0fc686e75459a713e70
SHA1 (patch-graf2d_asimage_src_libAfterImage_import.c) = b5e33f2b3ce858bfdc64eaed59ea7606173a2169

View File

@@ -0,0 +1,49 @@
# -*- mode: makefile -*-
#
# Makefile of ROOT for NetBSD (derived from freebsd5)
PLATFORM = fbsd
DEBUGFLAGS = -g
OPTFLAGS = -O
ifeq (debug,$(findstring debug,$(ROOTBUILD)))
OPT = $(DEBUGFLAGS)
NOOPT =
else
OPT = $(OPTFLAGS)
NOOPT =
endif
# Compiler:
CXX = g++
CC = gcc
CXXFLAGS = -pipe -W -Wall -fPIC -I${X11BASE}/include $(EXTRA_CXXFLAGS)
CFLAGS = -pipe -W -Wall -fPIC -I${X11BASE}/include $(EXTRA_CFLAGS)
CINTCXXFLAGS = -pipe -W -Wall -fPIC -DG__REGEXP $(EXTRA_CXXFLAGS) \
-DG__UNIX -DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL
CINTCFLAGS = -pipe -W -Wall -fPIC -DG__REGEXP -DG__UNIX -DG__SHAREDLIB \
-DG__ROOT -DG__REDIRECTIO -DG__OSFDLL $(EXTRA_CFLAGS)
COMPILER = gnu
# Linker:
LD = g++
LDFLAGS = $(OPT) $(EXTRA_LDFLAGS) -Wl,-R$(DESTDIR)$(LIBDIR)
SOFLAGS = -shared -Wl,-x -Wl,-soname,
SOEXT = so
# System libraries:
SYSLIBS = -lstdc++ -lm $(OSTHREADLIBDIR) $(OSTHREADLIB)
XLIBS = $(XPMLIBDIR) $(XPMLIB) $(X11LIBDIR) -lX11 -lstdc++ -Wl,-R$(X11BASE)/lib
CILIBS = -lm -ltermcap -lstdc++
CRYPTLIBS = -lcrypt
# Fortran:
F77 = f77
F77FLAGS = $(OPT)
F77LIBS = -lg2c
# Extras
# Override default in Makefile.config
INSTALL := cp -pR
INSTALLDATA := cp -pR

View File

@@ -0,0 +1,81 @@
$NetBSD: patch-aa,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- core/unix/src/TUnixSystem.cxx.orig 2010-02-11 13:20:16.000000000 +0000
+++ core/unix/src/TUnixSystem.cxx
@@ -60,7 +60,7 @@
#if defined(R__AIX) || defined(R__LINUX) || defined(R__ALPHA) || \
defined(R__SGI) || defined(R__HIUX) || defined(R__FBSD) || \
defined(R__OBSD) || defined(R__LYNXOS) || defined(R__MACOSX) || \
- defined(R__HURD)
+ defined(R__HURD) || defined(__NetBSD__)
# include <sys/ioctl.h>
#endif
#if defined(R__AIX) || defined(R__SOLARIS)
@@ -86,8 +86,12 @@
# include <sys/param.h>
# include <sys/mount.h>
#else
+#ifdef __NetBSD__
+#include <sys/statvfs.h>
+#else
# include <sys/statfs.h>
#endif
+#endif
#include <utime.h>
#include <syslog.h>
@@ -182,7 +186,7 @@
#elif defined(R__GLIBC) || defined(R__FBSD) || \
(defined(R__SUNGCC3) && defined(__arch64__)) || \
defined(R__OBSD) || defined(MAC_OS_X_VERSION_10_4) || \
- (defined(R__AIX) && defined(_AIX43))
+ (defined(R__AIX) && defined(_AIX43)) || defined(__NetBSD__)
# define USE_SOCKLEN_T
#endif
@@ -543,6 +547,7 @@ void TUnixSystem::SetProgname(const char
//______________________________________________________________________________
void TUnixSystem::SetDisplay()
{
+#if 0
// Set DISPLAY environment variable based on utmp entry. Only for UNIX.
if (!Getenv("DISPLAY")) {
@@ -583,6 +588,7 @@ void TUnixSystem::SetDisplay()
free(gUtmpContents);
}
}
+#endif
}
//______________________________________________________________________________
@@ -3822,7 +3828,11 @@ int TUnixSystem::UnixFSstat(const char *
// The function returns 0 in case of success and 1 if the file system could
// not be stat'ed.
+#ifdef __NetBSD__
+ struct statvfs statfsbuf;
+#else
struct statfs statfsbuf;
+#endif
#if defined(R__SGI) || (defined(R__SOLARIS) && !defined(R__LINUX))
if (statfs(path, &statfsbuf, sizeof(struct statfs), 0) == 0) {
*id = statfsbuf.f_fstyp;
@@ -3830,6 +3840,9 @@ int TUnixSystem::UnixFSstat(const char *
*blocks = statfsbuf.f_blocks;
*bfree = statfsbuf.f_bfree;
#else
+#ifdef __NetBSD__
+ if (statvfs((char*)path, &statfsbuf) == 0) {
+#else
if (statfs((char*)path, &statfsbuf) == 0) {
#ifdef R__OBSD
// Convert BSD filesystem names to Linux filesystem type numbers
@@ -3856,6 +3869,7 @@ int TUnixSystem::UnixFSstat(const char *
#else
*id = statfsbuf.f_type;
#endif
+#endif
*bsize = statfsbuf.f_bsize;
*blocks = statfsbuf.f_blocks;
*bfree = statfsbuf.f_bavail;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- net/auth/src/TAuthenticate.cxx.orig 2006-05-26 17:05:03.000000000 +0200
+++ net/auth/src/TAuthenticate.cxx
@@ -47,7 +47,7 @@
#include <sys/types.h>
#include <time.h>
#if !defined(R__WIN32) && !defined(R__MACOSX) && !defined(R__FBSD) && \
- !defined(R__OBSD)
+ !defined(R__OBSD) && !defined(__NetBSD__)
#include <crypt.h>
#endif
#ifdef WIN32

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- core/base/inc/RConfig.h.orig 2006-05-26 17:38:48.000000000 +0200
+++ core/base/inc/RConfig.h
@@ -272,7 +272,7 @@
# define NEED_SNPRINTF
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined (__NetBSD__)
# define R__FBSD
# define R__UNIX
# define R__BYTESWAP

View File

@@ -0,0 +1,23 @@
$NetBSD: patch-ad,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- io/io/src/TMapFile.cxx.orig 2006-05-26 17:50:02.000000000 +0200
+++ io/io/src/TMapFile.cxx
@@ -104,7 +104,7 @@
#include <sys/sem.h>
#if defined(R__HPUX) || (defined (R__ALPHA) && !defined(R__FBSD)) || \
defined (R__SOLARIS) || defined(R__AIX) || defined(R__HIUX) || \
- __GLIBC_MINOR__ > 0
+ __GLIBC_MINOR__ > 0 || defined(__NetBSD__)
union semun {
int val; // value for SETVAL
struct semid_ds *buf; // buffer for IPC_STAT & IPC_SET
@@ -760,8 +760,7 @@ void TMapFile::CreateSemaphore(int pid)
#ifdef HAVE_SEMOP
#ifndef WIN32
// create semaphore to synchronize access (should use read/write lock)
- fSemaphore = semget(IPC_PRIVATE, 1, SEM_R|SEM_A|(SEM_R>>3)|(SEM_A>>3)|
- (SEM_R>>6)|(SEM_A>>6));
+ fSemaphore = semget(IPC_PRIVATE, 1, 0);
// set semaphore to 1
if (fSemaphore != -1) {

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- montecarlo/eg/inc/cfortran.h.orig 2010-02-11 13:20:42.000000000 +0000
+++ montecarlo/eg/inc/cfortran.h
@@ -150,7 +150,7 @@ only C calling FORTRAN subroutines will
#if !(defined(NAGf90Fortran)||defined(f2cFortran)||defined(hpuxFortran)||defined(apolloFortran)||defined(sunFortran)||defined(IBMR2Fortran)||defined(CRAYFortran))
#if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
/* If no Fortran compiler is given, we choose one for the machines we know. */
-#if defined(lynx) || defined(VAXUltrix)
+#if defined(lynx) || defined(VAXUltrix) || defined(__NetBSD__)
#define f2cFortran /* Lynx: Only support f2c at the moment.
VAXUltrix: f77 behaves like f2c.
Support f2c or f77 with gcc, vcc with f2c.

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-af,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- net/rpdutils/src/rpdutils.cxx.orig 2006-05-26 19:20:46.000000000 +0200
+++ net/rpdutils/src/rpdutils.cxx
@@ -70,7 +70,7 @@ extern "C" int ruserok(const char *, int
extern "C" int fstatfs(int file_descriptor, struct statfs *buffer);
#elif defined(linux) || defined(__hpux)
#include <sys/vfs.h>
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
#include <sys/param.h>
#include <sys/mount.h>
#else

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ag,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- rootx/src/rootx.cxx.orig 2010-02-11 13:20:47.000000000 +0000
+++ rootx/src/rootx.cxx
@@ -48,7 +48,7 @@
#if (defined(__alpha) && !defined(__linux)) || defined(_AIX) || \
defined(__FreeBSD__) || defined(__Lynx__) || defined(__OpenBSD__) || \
- (defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_5))
+ (defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_5)) || defined(__NetBSD__)
#define UTMP_NO_ADDR
#endif

View File

@@ -0,0 +1,47 @@
$NetBSD: patch-ah,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- net/rootd/src/rootd.cxx.orig 2006-05-26 19:22:55.000000000 +0200
+++ net/rootd/src/rootd.cxx
@@ -242,7 +242,7 @@ extern "C" int fstatfs(int file_descript
extern "C" int fstatfs(int file_descriptor, struct statfs *buffer);
#elif defined(linux) || defined(__hpux) || defined(cygwingcc)
#include <sys/vfs.h>
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
#include <sys/param.h>
#include <sys/mount.h>
#else
@@ -251,7 +251,7 @@ extern "C" int fstatfs(int file_descript
#if defined(linux) || defined(__hpux) || defined(_AIX) || defined(__alpha) || \
defined(__sun) || defined(__sgi) || defined(__FreeBSD__) || \
- defined(__APPLE__) || defined(cygwingcc) || defined(__OpenBSD__)
+ defined(__APPLE__) || defined(cygwingcc) || defined(__OpenBSD__) || defined(__NetBSD__)
#define HAVE_MMAP
#endif
@@ -293,7 +293,7 @@ static int fcntl_lockf(int fd, int op, o
#if defined(linux) || defined(__sun) || defined(__sgi) || \
defined(_AIX) || defined(__FreeBSD__) || defined(__APPLE__) || \
- defined(__MACH__) || defined(cygwingcc) || defined(__OpenBSD__)
+ defined(__MACH__) || defined(cygwingcc) || defined(__OpenBSD__) || defined(__NetBSD__)
#include <grp.h>
#include <sys/types.h>
#include <signal.h>
@@ -1369,6 +1369,7 @@ void RootdPutFile(const char *msg)
}
}
+#if 0
// check file system space
if (strcmp(gFile, "/dev/null")) {
struct statfs statfsbuf;
@@ -1386,6 +1387,7 @@ void RootdPutFile(const char *msg)
}
}
}
+#endif
// seek to restartat position
if (restartat) {

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ai,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- net/rpdutils/src/daemon.cxx.orig 2006-05-26 19:23:53.000000000 +0200
+++ net/rpdutils/src/daemon.cxx
@@ -212,7 +212,7 @@ out:
#elif defined(__sun)
sigignore(SIGCHLD);
#else
- signal(SIGCLD, SIG_IGN);
+ signal(SIGCHLD, SIG_IGN);
#endif
#endif
}

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-aj,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- config/ARCHS.orig 2010-02-11 13:20:59.000000000 +0000
+++ config/ARCHS
@@ -27,6 +27,7 @@ macosx for MacOS X >= 10.4
macosxicc for MacOS X >= 10.4 with Intel icc (Intel only)
macosx64 for MacOS X >= 10.5 with gcc 4.0 64 bit mode
macosxxlc for MacOS X >= 10.4 with IBM xl compilers (PPC only)
+netbsd for NetBSD
openbsd for OpenBSD >= 3.7 with gcc
sgicc for SGI IRIX 6.x with CC
sgicc64 for SGI IRIX 6.x with CC 64 bits

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ak,v 1.3 2010/02/26 10:56:38 drochner Exp $
--- core/clib/src/Getline.c.orig 2006-05-26 22:33:35.000000000 +0200
+++ core/clib/src/Getline.c
@@ -331,7 +331,7 @@ static void search_forw(int s);
#endif /* WIN32 */
#if defined(_AIX) || defined(__Lynx__) || defined(__APPLE__) || \
- defined(__OpenBSD__)
+ defined(__OpenBSD__) || defined(__NetBSD__)
#define unix
#endif

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-al,v 1.2 2006/05/27 12:38:27 drochner Exp $
--- config/root-config.in.orig 2006-05-26 22:50:42.000000000 +0200
+++ config/root-config.in
@@ -276,6 +276,12 @@ freebsd5)
auxcflags=
auxlibs="-lm -lstdc++"
;;
+netbsd)
+ # NetBSD with libc
+ auxcflags=
+ auxlibs="-lm -lstdc++"
+ rootlibs="${rootlibs} -Wl,-R${libdir}"
+ ;;
openbsd)
# OpenBSD with libc
auxcflags=

View File

@@ -0,0 +1,85 @@
$NetBSD: patch-am,v 1.5 2011/12/15 18:51:43 dholland Exp $
--- configure.orig 2010-02-11 13:21:10.000000000 +0000
+++ configure
@@ -1680,7 +1680,7 @@ if test ! "x$platform" = "xwin32"; then
check_library "libX11" "yes" "$x11libdir" \
/usr/lib /usr/X11R6/lib /usr/lib/X11 /usr/openwin/lib \
/usr/local/lib /usr/local/lib/X11 /usr/local/X11R6/lib \
- /usr/X11/lib /usr/lib/X11R5
+ /usr/X11/lib /usr/lib/X11R5 ${X11BASE}/lib
x11libdir=$found_dir
if test "x$found_lib" = "x" ; then
@@ -1691,7 +1691,7 @@ if test ! "x$platform" = "xwin32"; then
check_header "X11/Xlib.h" "" \
/usr/include /usr/X11R6/include /usr/include/X11 /usr/openwin/include \
/usr/local/include /usr/local/include/X11 /usr/local/X11R6/include \
- /usr/X11/include /usr/include/X11R5
+ /usr/X11/include /usr/include/X11R5 ${X11BASE}/include
if test "x$found_dir" = "x" ; then
result "`basename $0`: X11 headers (package x11-devel) MUST be installed"
@@ -1701,7 +1701,7 @@ if test ! "x$platform" = "xwin32"; then
check_header "X11/Xft/Xft.h" "" \
/usr/include /usr/X11R6/include /usr/include/X11 /usr/openwin/include \
/usr/local/include /usr/local/include/X11 /usr/local/X11R6/include \
- /usr/X11/include /usr/include/X11R5
+ /usr/X11/include /usr/include/X11R5 ${X11BASE}/include
if test "x$found_dir" = "x" ; then
result "`basename $0`: Xft headers (libxft-devel) MUST be installed"
@@ -1711,7 +1711,7 @@ if test ! "x$platform" = "xwin32"; then
check_header "X11/extensions/shape.h" "" \
/usr/include /usr/X11R6/include /usr/include/X11 /usr/openwin/include \
/usr/local/include /usr/local/include/X11 /usr/local/X11R6/include \
- /usr/X11/include /usr/include/X11R5
+ /usr/X11/include /usr/include/X11R5 ${X11BASE}/include
if test "x$found_dir" = "x" ; then
result "`basename $0`: X11/extensions/shape.h header (xorg-x11-proto-devel) MUST be installed"
@@ -1721,7 +1721,7 @@ if test ! "x$platform" = "xwin32"; then
check_library "libXpm" "$enable_shared" "$xpmlibdir" \
$XPM $XPM/lib /usr/local/lib /usr/lib /usr/lib/X11 \
/usr/local/lib/X11 /usr/X11R6/lib /usr/local/X11R6/lib \
- /usr/X11/lib
+ /usr/X11/lib ${X11BASE}/lib
xpmlib=$found_lib
xpmlibdir=$found_dir
@@ -1733,7 +1733,7 @@ if test ! "x$platform" = "xwin32"; then
check_library "libXft" "$enable_shared" "" \
/usr/local/lib /usr/lib /usr/lib/X11 \
/usr/local/lib/X11 /usr/X11R6/lib /usr/local/X11R6/lib \
- /usr/X11/lib
+ /usr/X11/lib ${X11BASE}/lib
if test "x$found_lib" = "x" ; then
result "`basename $0`: libXft (libxft-devel) MUST be installed"
@@ -1743,7 +1743,7 @@ if test ! "x$platform" = "xwin32"; then
check_library "libXext" "$enable_shared" "" \
/usr/local/lib /usr/lib /usr/lib/X11 \
/usr/local/lib/X11 /usr/X11R6/lib /usr/local/X11R6/lib \
- /usr/X11/lib
+ /usr/X11/lib ${X11BASE}/lib
if test "x$found_lib" = "x" ; then
result "`basename $0`: libXext (libXext-devel) MUST be installed"
@@ -2040,7 +2040,7 @@ if test ! "x$enable_opengl" = "xno" && t
/usr/local/X11R6/include /usr/local/include \
/usr/include/Mesa /usr/local/include/Mesa /usr/Mesa/include \
/usr/local/Mesa/include /usr/Mesa /usr/local/Mesa /opt/Mesa \
- /opt/Mesa/include /opt/graphics/OpenGL/include"
+ /opt/Mesa/include /opt/graphics/OpenGL/include ${LOCALBASE}/include"
check_header "GL/gl.h" "$openglincdir" $openglincdirs
openglinc=$found_hdr
openglincdir=$found_dir
@@ -2049,7 +2049,7 @@ if test ! "x$enable_opengl" = "xno" && t
/usr/X11R6/lib /usr/local/lib/X11 /usr/local/X11R6/lib \
/usr/X11/lib /usr/lib/Mesa /usr/local/lib/Mesa /usr/Mesa/lib \
/usr/local/Mesa/lib /usr/Mesa /usr/local/Mesa /opt/Mesa \
- /opt/Mesa/lib /opt/graphics/OpenGL/lib"
+ /opt/Mesa/lib /opt/graphics/OpenGL/lib ${X11BASE}/lib ${LOCALBASE}/lib"
keep=$opengllibdir
check_library "libGL libMesaGL" "$enable_shared" \

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-an,v 1.2 2010/02/26 10:56:38 drochner Exp $
--- graf3d/gl/Module.mk.orig 2010-02-11 13:20:45.000000000 +0000
+++ graf3d/gl/Module.mk
@@ -38,8 +38,8 @@ GLH1 := $(MODDIRI)/gl2ps.h $(MOD
GLH2 := $(filter-out $(GLH1), $(GLH))
ifneq ($(OPENGLLIB),)
-GLLIBS := $(OPENGLLIBDIR) $(OPENGLULIB) $(OPENGLLIB) \
- $(X11LIBDIR) -lX11 -lm
+GLLIBS := $(OPENGLLIBDIR) $(OPENGLULIB) $(OPENGLLIB) -Wl,-R${LOCALBASE}/lib \
+ $(X11LIBDIR) -lX11 -lm -Wl,-R${X11BASE}/lib
endif
ifeq ($(ARCH),win32)
GLLIBS := opengl32.lib glu32.lib

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ba,v 1.1 2010/02/26 10:56:38 drochner Exp $
--- core/editline/src/rlcurses.h.orig 2010-02-25 15:12:02.000000000 +0000
+++ core/editline/src/rlcurses.h
@@ -30,6 +30,7 @@ extern "C" {
// conflicts with the system one:
# ifndef _TERMCAP_H
# include <termcap.h>
+# include <term.h>
# endif
int setupterm(const char* term, int fd, int* perrcode);
}

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-bb,v 1.1 2010/02/26 10:56:38 drochner Exp $
--- core/editline/src/readline.cxx.orig 2010-02-25 15:13:11.000000000 +0000
+++ core/editline/src/readline.cxx
@@ -54,9 +54,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
-#ifndef __FreeBSD__
-#include <alloca.h>
-#endif // __FreeBSD__
#include "histedit.h"
// #include "readline/readline.h"
#include "editline.h"

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bc,v 1.1 2010/02/26 10:56:38 drochner Exp $
--- cint/cint/lib/posix/posix.h.orig 2010-02-11 13:20:33.000000000 +0000
+++ cint/cint/lib/posix/posix.h
@@ -283,7 +283,7 @@ extern int setpgrp(pid_t _pid,pid_t _pgr
#endif
#elif (defined(G__SUN) || defined(__sun)) && !defined(__x86_64)
extern long setpgrp(void);
-#elif defined(G__FBSD)||defined(__FreeBSD__)||defined(G__OBSD)||defined(__OpenBSD__)||((defined(G__alpha)||defined(__alpha))&&(defined(G__GNUC) || defined(G__LINUX) || defined(__linux__)))||((defined(G__alpha)||defined(__alpha))&&defined(G__GNUC))
+#elif defined(G__FBSD)||defined(__FreeBSD__)||defined(G__OBSD)||defined(__OpenBSD__)||((defined(G__alpha)||defined(__alpha))&&(defined(G__GNUC) || defined(G__LINUX) || defined(__linux__)))||((defined(G__alpha)||defined(__alpha))&&defined(G__GNUC)) || defined(__NetBSD__) || defined(G__NBSD)
extern int setpgrp(pid_t _pid, pid_t _pgrp);
#elif defined(G__KCC) || defined(__KCC)
extern pid_t setpgrp(void);

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-bd,v 1.1 2010/02/26 10:56:38 drochner Exp $
--- cint/cint/src/init.cxx.orig 2010-02-25 15:46:10.000000000 +0000
+++ cint/cint/src/init.cxx
@@ -2094,6 +2094,9 @@ void G__platformMacro()
#ifdef __FreeBSD__ /* FreeBSD */
G__DEFINE_MACRO_N(__FreeBSD__, "G__FBSD");
#endif
+#ifdef __NetBSD__
+ G__DEFINE_MACRO_N(__NetBSD__, "G__NBSD");
+#endif
#ifdef __OpenBSD__ /* OpenBSD */
G__DEFINE_MACRO_N(__OpenBSD__, "G__OBSD");
#endif

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-be,v 1.1 2010/02/26 10:56:38 drochner Exp $
--- cint/cint/src/DataMbr.cxx.orig 2010-02-25 16:10:17.000000000 +0000
+++ cint/cint/src/DataMbr.cxx
@@ -234,6 +234,8 @@ int Cint::G__DataMemberInfo::MaxIndex(in
else {
// -- For first dimension divide number of elements by stride.
// Note: This may be zero, if this is not an array!
+ if (!var->varlabel[index][0])
+ return -1;
return var->varlabel[index][1] /* num of elements*/ / var->varlabel[index][0] /* stride */;
}
}

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bf,v 1.1 2010/02/26 10:56:39 drochner Exp $
--- montecarlo/vmc/inc/TMCProcess.h.orig 2010-02-25 16:51:41.000000000 +0000
+++ montecarlo/vmc/inc/TMCProcess.h
@@ -81,7 +81,7 @@ enum TMCProcess
kPNoProcess // unknown process
};
-static const char * const TMCProcessName[kMaxMCProcess] = {
+static const char * const TMCProcessName[45] = {
"Primary particle emission",
"Multiple scattering",
"Energy loss",

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bg,v 1.1 2010/02/26 10:56:39 drochner Exp $
--- graf3d/ftgl/src/FTVectoriser.cxx.orig 2010-02-25 17:26:18.000000000 +0000
+++ graf3d/ftgl/src/FTVectoriser.cxx
@@ -7,7 +7,7 @@
#if defined(__APPLE_CC__) && __APPLE_CC__ > 4000 && __APPLE_CC__ < 5450 && !defined(__INTEL_COMPILER)
typedef GLvoid (*GLUTesselatorFunction)(...);
-#elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__) || defined (__APPLE__)
+#elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__) || defined (__APPLE__) || defined(__NetBSD__)
typedef GLvoid (*GLUTesselatorFunction)();
#elif defined ( WIN32)
typedef GLvoid (CALLBACK *GLUTesselatorFunction)( );

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bh,v 1.1 2010/02/26 10:56:39 drochner Exp $
--- graf3d/gl/src/TGLPadUtils.cxx.orig 2010-02-25 17:28:38.000000000 +0000
+++ graf3d/gl/src/TGLPadUtils.cxx
@@ -531,7 +531,7 @@ Small RAII class for GLU tesselator.
extern "C" {
#if defined(__APPLE_CC__) && __APPLE_CC__ > 4000 && __APPLE_CC__ < 5450 && !defined(__INTEL_COMPILER)
typedef GLvoid (*tess_t)(...);
-#elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__) || defined (__APPLE__)
+#elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__) || defined (__APPLE__) || defined(__NetBSD__)
typedef GLvoid (*tess_t)();
#elif defined ( WIN32)
typedef GLvoid (CALLBACK *tess_t)( );

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bi,v 1.1 2010/02/26 10:56:39 drochner Exp $
--- graf3d/gl/src/TGLUtil.cxx.orig 2010-02-25 17:30:18.000000000 +0000
+++ graf3d/gl/src/TGLUtil.cxx
@@ -1354,7 +1354,7 @@ Float_t TGLUtil::fgLineWidthScale = 1.0f
extern "C" {
#if defined(__APPLE_CC__) && __APPLE_CC__ > 4000 && __APPLE_CC__ < 5450 && !defined(__INTEL_COMPILER)
typedef GLvoid (*tessfuncptr_t)(...);
-#elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__) || defined (__APPLE__)
+#elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__) || defined (__APPLE__) || defined(__NetBSD__)
typedef GLvoid (*tessfuncptr_t)();
#elif defined ( WIN32)
typedef GLvoid (CALLBACK *tessfuncptr_t)( );

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bj,v 1.1 2010/02/26 10:56:39 drochner Exp $
--- misc/minicern/src/cernlib.c.orig 2010-02-25 18:17:20.000000000 +0000
+++ misc/minicern/src/cernlib.c
@@ -185,7 +185,7 @@ int cfstati_(char *fname, int *info, int
info[4] = (int) buf.st_uid;
info[5] = (int) buf.st_gid;
info[6] = (int) buf.st_size;
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
info[7] = (int) buf.st_atimespec.tv_sec;
info[8] = (int) buf.st_mtimespec.tv_sec;
info[9] = (int) buf.st_ctimespec.tv_sec;

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ca,v 1.1 2010/02/26 10:56:39 drochner Exp $
--- config/Makefile.netbsd.orig 2010-02-25 20:17:41.000000000 +0000
+++ config/Makefile.netbsd
@@ -38,9 +38,9 @@ CILIBS = -lm -ltermcap -lstdc++
CRYPTLIBS = -lcrypt
# Fortran:
-F77 = f77
+F77 = /usr/pkg/gcc3/bin/g77
F77FLAGS = $(OPT)
-F77LIBS = -lg2c
+F77LIBS = -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -lg2c
# Extras

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-graf2d_asimage_src_libAfterImage_export.c,v 1.1 2011/12/23 01:17:54 joerg Exp $
--- graf2d/asimage/src/libAfterImage/export.c.orig 2011-12-22 22:02:37.000000000 +0000
+++ graf2d/asimage/src/libAfterImage/export.c
@@ -491,7 +491,7 @@ ASImage2png_int ( ASImage *im, void *dat
png_ptr = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL );
if ( png_ptr != NULL )
if( (info_ptr = png_create_info_struct(png_ptr)) != NULL )
- if( setjmp(png_ptr->jmpbuf) )
+ if( setjmp(png_jmpbuf(png_ptr)) )
{
png_destroy_info_struct(png_ptr, (png_infopp) &info_ptr);
info_ptr = NULL ;

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-graf2d_asimage_src_libAfterImage_import.c,v 1.1 2011/12/23 01:17:54 joerg Exp $
--- graf2d/asimage/src/libAfterImage/import.c.orig 2011-12-22 22:05:04.000000000 +0000
+++ graf2d/asimage/src/libAfterImage/import.c
@@ -1251,7 +1251,7 @@ png2ASImage_int( void *data, png_rw_ptr
* the normal method of doing things with libpng). REQUIRED unless you
* set up your own error handlers in the png_create_read_struct() earlier.
*/
- if ( !setjmp (png_ptr->jmpbuf))
+ if ( !setjmp (png_jmpbuf(png_ptr)))
{
ASFlagType rgb_flags = ASStorage_RLEDiffCompress|ASStorage_32Bit ;
@@ -1468,7 +1468,7 @@ typedef struct ASImPNGReadBuffer
static void asim_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
{
- ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_ptr->io_ptr;
+ ASImPNGReadBuffer *buf = png_get_io_ptr(png_ptr);
memcpy(data, buf->buffer, length);
buf->buffer += length;
}