Subject: pkg/11810: a package for STLPort-4.0
To: None <gnats-bugs@gnats.netbsd.org>
From: None <p99dreyf@criens.u-psud.fr>
List: netbsd-bugs
Date: 12/24/2000 09:11:21
>Number:         11810
>Category:       pkg
>Synopsis:       a package for STLPort-4.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 24 09:11:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Emmanuel Dreyfus
>Release:        NetBSD-1.5/i386
>Organization:
None
>Environment:
NetBSD pimousse 1.5 NetBSD 1.5 (OLFHEN4) #0: Thu Dec 14 23:55:15 CET 2000     root@pimousse:/usr/src/sys/arch/i386/compile/OLFHEN4 i386
>Description:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       stlport/
#       stlport//Makefile
#       stlport//files
#       stlport//files/md5
#       stlport//files/patch-sum
#       stlport//pkg
#       stlport//pkg/DESCR
#       stlport//pkg/COMMENT
#       stlport//pkg/PLIST
#       stlport//patches
#       stlport//patches/patch-aa
#       stlport//patches/patch-ab
#       stlport//patches/patch-ac
#       stlport//patches/patch-ad
#       stlport//patches/patch-ae
#       stlport//patches/patch-af
#
echo c - stlport/
mkdir -p stlport/ > /dev/null 2>&1
echo x - stlport//Makefile
sed 's/^X//' >stlport//Makefile << 'END-of-stlport//Makefile'
X# New ports collection makefile for:   icu
X# Date created:        21 December 2000
X# Whom:                Emmanuel Dreyfus
X#
X# $NetBSD$
X#
X
XDISTNAME=      STLport-4.0
XCATEGORIES=    devel
XMASTER_SITES=  http://www.stlport.com/archive/
X
XMAINTAINER=            p99dreyf@criens.u-psud.fr
XHOMEPAGE=       http://www.stlport.org
X
XDEPENDS=        gcc>=2.95.2:../../lang/gcc
X
XWRKSRC=         ${WRKDIR}/STLport-4.0/src/
X
XUSE_GMAKE=      YES
XGCCBIN=                ${PREFIX}/gcc-${DEPENDS:C/\:.*//:C/gcc>=//}/bin
XMAKE_ENV+=     "CC=${GCCBIN}/gcc"
XMAKE_ENV+=     "CPP=${GCCBIN}/cpp"
XMAKE_ENV+=     "CXX=${GCCBIN}/c++"
XMAKEFILE=       gcc-netbsd.mak
XINSTALLS_SHLIB= YES
X
Xdo-install:
X       ${MKDIR} ${PREFIX}/include/stlport
X       ${INSTALL} -m444 -c ${WRKSRC}/../stlport/*.h ${PREFIX}/include/stlport
X       ${INSTALL} -m444 -cs ${WRKSRC}/../lib/* ${PREFIX}/lib
X
X.include "../../mk/bsd.pkg.mk"
END-of-stlport//Makefile
echo c - stlport//files
mkdir -p stlport//files > /dev/null 2>&1
echo x - stlport//files/md5
sed 's/^X//' >stlport//files/md5 << 'END-of-stlport//files/md5'
X$NetBSD$
X
XMD5 (STLport-4.0.tar.gz) = 9f46fa470328f55c550b829abbf8611b
END-of-stlport//files/md5
echo x - stlport//files/patch-sum
sed 's/^X//' >stlport//files/patch-sum << 'END-of-stlport//files/patch-sum'
X$NetBSD$
X
XMD5 (patch-aa) = 7066c3814cedff6d5c725ff424f3b8c0
XMD5 (patch-ab) = 254d615c288cc029f4690c7cc28491e8
XMD5 (patch-ac) = 4e147da19524ce0d4d4ed522c21ef1ea
XMD5 (patch-ad) = 661bd2f0ab69036cc0f1ee05c3f938f0
XMD5 (patch-ae) = c57ff74b85b89db54459f4edca512cdc
XMD5 (patch-af) = f13aa566d8728c1b03215f198a405758
END-of-stlport//files/patch-sum
echo c - stlport//pkg
mkdir -p stlport//pkg > /dev/null 2>&1
echo x - stlport//pkg/DESCR
sed 's/^X//' >stlport//pkg/DESCR << 'END-of-stlport//pkg/DESCR'
XSTLPort features a complete ANSI C++ standard library. Main features are:
X+ Includes <complex> and SGI iostreams. 
X+ Can be configured to use either SGI or native iostreams. 
X+ Debug mode containers are implemented in terms of wrappers around non-debug 
X  ones. That provides for more clean and efficient implementation. In Debug 
X  Mode, different namespace _STLD:: is being used, so no link-time clashes 
X  between debug and non-debug versions are possible. 
END-of-stlport//pkg/DESCR
echo x - stlport//pkg/COMMENT
sed 's/^X//' >stlport//pkg/COMMENT << 'END-of-stlport//pkg/COMMENT'
XComplete C++ standard library
END-of-stlport//pkg/COMMENT
echo x - stlport//pkg/PLIST
sed 's/^X//' >stlport//pkg/PLIST << 'END-of-stlport//pkg/PLIST'
X@comment $NetBSD$
Xinclude/stlport/cstring.h
Xinclude/stlport/ctype.h
Xinclude/stlport/exception.h
Xinclude/stlport/fstream.h
Xinclude/stlport/iomanip.h
Xinclude/stlport/ios.h
Xinclude/stlport/iostream.h
Xinclude/stlport/istream.h
Xinclude/stlport/locale.h
Xinclude/stlport/math.h
Xinclude/stlport/mem.h
Xinclude/stlport/mmemory.h
Xinclude/stlport/new.h
Xinclude/stlport/ostream.h
Xinclude/stlport/setjmp.h
Xinclude/stlport/signal.h
Xinclude/stlport/stdarg.h
Xinclude/stlport/stddef.h
Xinclude/stlport/stdio.h
Xinclude/stlport/stdlib.h
Xinclude/stlport/stl_user_config.h
Xinclude/stlport/streambuf.h
Xinclude/stlport/string.h
Xinclude/stlport/strstream.h
Xinclude/stlport/time.h
Xinclude/stlport/typeinfo.h
Xinclude/stlport/wchar.h
Xinclude/stlport/wctype.h
Xlib/libstlport_gcc.a
Xlib/libstlport_gcc.so
Xlib/libstlport_gcc_debug.a
Xlib/libstlport_gcc_debug.so
Xlib/libstlport_gcc_stldebug.a
Xlib/libstlport_gcc_stldebug.so
X@dirrm include/stlport
END-of-stlport//pkg/PLIST
echo c - stlport//patches
mkdir -p stlport//patches > /dev/null 2>&1
echo x - stlport//patches/patch-aa
sed 's/^X//' >stlport//patches/patch-aa << 'END-of-stlport//patches/patch-aa'
X$NetBSD$
X+++ gcc-netbsd.mak     Sun Dec 24 16:43:34 2000
X@@ -0,0 +1,59 @@
X+#
X+# Note : this makefile is for gcc-2.95 and later !
X+#
X+
X+#
X+# compiler
X+#
X+#CC = gcc     #defined in NetBSD pkgsrc Makefile.
X+#CXX = c++
X+
X+#
X+# Basename for libraries
X+#
X+LIB_BASENAME = libstlport_gcc
X+
X+#
X+# guts for common stuff
X+#
X+#
X+LINK=ar cr
X+# 2.95 flag
X+DYN_LINK=gcc -shared -o
X+
X+OBJEXT=o
X+DYNEXT=so
X+STEXT=a
X+RM=rm -rf
X+PATH_SEP=/
X+MKDIR=mkdir -p
X+COMP=GCC$(ARCH)
X+
X+all: all_dynamic all_static
X+
X+include common_macros.mak
X+
X+WARNING_FLAGS= -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftem
plate-depth-32
X+
X+CXXFLAGS_COMMON = -I/usr/pkg/include -I${STLPORT_DIR} ${WARNING_FLAGS}
X+
X+CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) -O2
X+CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) -O2 -fPIC
X+
X+CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -g
X+CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -g -fPIC
X+
X+CXXFLAGS_STLDEBUG_static = $(CXXFLAGS_DEBUG_static) -D__STL_DEBUG
X+CXXFLAGS_STLDEBUG_dynamic = $(CXXFLAGS_DEBUG_dynamic) -D__STL_DEBUG -fPIC
X+
X+include common_percent_rules.mak
X+include common_rules.mak
X+
X+
X+#install: all
X+#     cp -p $(LIB_TARGET) ${D_LIB_TARGET} ../lib
X+
X+#%.s: %.cpp
X+#     $(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
X+
X+
END-of-stlport//patches/patch-aa
echo x - stlport//patches/patch-ab
sed 's/^X//' >stlport//patches/patch-ab << 'END-of-stlport//patches/patch-ab'
X$NetBSD$
X+++ ../stlport/stl/c_locale.h  Sun Dec 24 15:04:22 2000
X@@ -279,8 +279,19 @@
X # define _Locale_SPACE _CTYPE_S
X # define _Locale_PRINT _CTYPE_R
X # define _Locale_ALPHA _CTYPE_A
X 
X+# elif defined (__NetBSD__)
X+
X+# define _Locale_CNTRL _C
X+# define _Locale_UPPER _U
X+# define _Locale_LOWER _L
X+# define _Locale_DIGIT _N
X+# define _Locale_XDIGIT (_N|_X)
X+# define _Locale_PUNCT _P
X+# define _Locale_SPACE _S
X+# define _Locale_PRINT (_P|_U|_L|_N|_B)
X+# define _Locale_ALPHA (_U|_L)
X 
X # elif defined(__STL_USE_GLIBC) /* linux, using the gnu compiler */
X 
X /* This section uses macros defined in the gnu libc ctype.h header */
END-of-stlport//patches/patch-ab
echo x - stlport//patches/patch-ac
sed 's/^X//' >stlport//patches/patch-ac << 'END-of-stlport//patches/patch-ac'
X$NetBSD$
X+++ ../stlport/stl/_stdio_file.h       Sun Dec 24 15:07:36 2000
X@@ -115,9 +115,9 @@
X }
X 
X # define __STL_FILE_I_O_IDENTICAL 1
X 
X-#elif defined (__CYGWIN__) || defined(__FreeBSD__)
X+#elif defined (__CYGWIN__) || defined(__FreeBSD__) || defined (__NetBSD__)
X 
X inline int   _FILE_fd(const FILE& __f) { return __f._file; }
X inline char* _FILE_I_begin(const FILE& __f) { return (char*) __f._bf._base; }
X inline char* _FILE_I_next(const FILE& __f) { return (char*) __f._p; }  
END-of-stlport//patches/patch-ac
echo x - stlport//patches/patch-ad
sed 's/^X//' >stlport//patches/patch-ad << 'END-of-stlport//patches/patch-ad'
X$NetBSD$
X+++ num_put_float.cpp  Sun Dec 24 15:19:09 2000
X@@ -42,15 +42,17 @@
X # include <stl/_config.h>
X 
X # ifdef __STL_UNIX
X 
X+#ifndef __NetBSD__
X # include <values.h>
X+#endif
X 
X # if defined (__sun) 
X #  include <floatingpoint.h>
X # endif
X 
X-# if !defined(__STL_USE_GLIBC) && !defined(__FreeBSD__)   // dwa 1/10/00 - nan
.h not supplied with gcc
X+# if !defined(__STL_USE_GLIBC) && !defined(__FreeBSD__) && !defined(__NetBSD__
)   // dwa 1/10/00 - nan.h not supplied with gcc
X // DEC & Solaris need this
X #  include <nan.h>
X # endif
X 
X@@ -94,9 +96,9 @@
X   inline bool _Stl_is_neg_nan(double x)    { return isnan(x) && ( copysign(1.,
 x) < 0 ); }
X # endif
X   inline bool _Stl_is_inf(double x)        { return isinf(x); }
X   inline bool _Stl_is_neg_inf(double x)    { return isinf(x) < 0; }
X-#elif defined(__unix) && !defined(__FreeBSD__) /* (__sgi) || defined (__sun) I
RIX , Solaris, others ? */
X+#elif defined(__unix) && !defined(__FreeBSD__) && !defined(__NetBSD__) /* (__s
gi) || defined (__sun) IRIX , Solaris, others ? */
X   inline bool _Stl_is_nan_or_inf(double x) { return IsNANorINF(x); }
X   inline bool _Stl_is_inf(double x)        { return IsNANorINF(x) && IsINF(x);
 }
X   inline bool _Stl_is_neg_inf(double x)    { return (IsINF(x)) && (x < 0.0); }
X   inline bool _Stl_is_neg_nan(double x)    { return IsNegNAN(x); }
X@@ -123,9 +125,9 @@
X   bool _Stl_is_nan_or_inf(double x) { return isnan(x) || !isfinite(x); }
X   bool _Stl_is_inf(double x)        { return !isfinite(x); }
X   bool _Stl_is_neg_inf(double x)    { return !isfinite(x) && signbit(x); }
X   bool _Stl_is_neg_nan(double x)    { return isnan(x) && signbit(x); }
X-#elif defined (__FreeBSD__)
X+#elif defined (__FreeBSD__) || defined (__NetBSD__)
X  inline bool _Stl_is_nan_or_inf(double x) { return !finite(x); }
X  inline bool _Stl_is_inf(double x)        {
X    return _Stl_is_nan_or_inf(x) && ! isnan(x);
X   }
X@@ -192,9 +194,9 @@
X    inline char* _Stl_qfcvtR(long double x, int n, int* pt, int* sign, char* bu
f)
X      { return _ldfcvt(*(long_double*)&x, n, pt, sign); }
X #  endif
X 
X-#elif defined (__unix)  && !defined(__FreeBSD__)/* defined(__sgi) IRIX */
X+#elif defined (__unix)  && !defined(__FreeBSD__) && !defined(__NetBSD__) /* de
fined(__sgi) IRIX */
X   inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf)
X     { return ecvt_r(x, n, pt, sign, buf); }
X   inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf)
X     { return fcvt_r(x, n, pt, sign, buf); }
X@@ -202,9 +204,9 @@
X     { return qecvt_r(x, n, pt, sign, buf); }
X   inline char* _Stl_qfcvtR(long double x, int n, int* pt, int* sign, char* buf
)
X     { return qfcvt_r(x, n, pt, sign, buf); }
X 
X-#elif defined (__FreeBSD__)
X+#elif defined (__FreeBSD__) || defined (__NetBSD__)
X 
X /*
X  * Copyright (c) 1995-1997 The Apache Group.  All rights reserved.
X  *
END-of-stlport//patches/patch-ad
echo x - stlport//patches/patch-ae
sed 's/^X//' >stlport//patches/patch-ae << 'END-of-stlport//patches/patch-ae'
X$NetBSD$
X+++ ../stlport/new     Sun Dec 24 17:01:50 2000
X@@ -41,21 +41,25 @@
X # include <cstdlib>
X using __STL_VENDOR_CSTD::malloc;
X #endif
X 
X-# if !defined (__STL_NO_NEW_NEW_HEADER)
X+#ifdef __NetBSD__
X+#include <g++/new>
X+#else
X+# if !defined (__STL_NO_NEW_NEW_HEADER) 
X #  if ( defined (__GNUC__) && (__GNUC_MINOR__ >= 8 )) || ( defined (__MVS__) &
& ! defined (__GNUC__))
X #    include __STL_NATIVE_C_HEADER(new)
X #   else
X #    include __STL_NATIVE_HEADER(new)
X #   endif
X #  else
X-#  if ( defined (__MVS__) && ! defined (__GNUC__))
X+#  if ( defined (__MVS__) && ! defined (__GNUC__)) 
X #    include __STL_NATIVE_C_HEADER(new.h)
X #  else
X #    include __STL_NATIVE_HEADER(new.h)
X #  endif
X # endif
X+#endif
X 
X # ifndef __STL_NO_BAD_ALLOC
X #  ifdef __STL_USE_OWN_NAMESPACE
X     __STL_BEGIN_NAMESPACE
END-of-stlport//patches/patch-ae
echo x - stlport//patches/patch-af
sed 's/^X//' >stlport//patches/patch-af << 'END-of-stlport//patches/patch-af'
X$NetBSD$
X+++ ../stlport/exception       Sun Dec 24 17:03:28 2000
X@@ -41,13 +41,17 @@
X # if defined ( _UNCAUGHT_EXCEPTION )
X #  undef __STL_INCOMPLETE_EXCEPTION_HEADER
X # endif
X 
X+#ifdef __NetBSD__
X+#include <g++/exception>
X+#else
X #  if defined (__GNUC__) && (__GNUC_MINOR__ >= 8 )
X #    include <../include/exception>
X #  else
X #    include __STL_NATIVE_HEADER(exception)
X #  endif
X+#endif
X // dwa 02/04/00 - here I'm assuming that __ICL uses the same library headers a
s vc6.
X // the header <yvals.h> which ships with vc6 and is included by its native <ex
ception>
X // actually turns on warnings, so we have to turn them back off.
X #    if defined (__STL_MSVC) || defined (__ICL)
END-of-stlport//patches/patch-af
exit
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: