diff options
author | tv <tv@pkgsrc.org> | 1998-04-09 13:58:51 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 1998-04-09 13:58:51 +0000 |
commit | 8ed3b798c5ad3745ecf7a6894717a7a0588d416e (patch) | |
tree | eb3fde049da00cd8b4ce40c4a8a7da222208276f /devel/libg++ | |
parent | 4bcdf725ecb3bcdc68e5b8b8f2851f53a50dcf48 (diff) | |
download | pkgsrc-8ed3b798c5ad3745ecf7a6894717a7a0588d416e.tar.gz |
Addition of libg++ pkg (only for 1.3-current users running egcs, and 1.4+
users)
Diffstat (limited to 'devel/libg++')
-rw-r--r-- | devel/libg++/Makefile | 42 | ||||
-rw-r--r-- | devel/libg++/files/Makefile | 83 | ||||
-rw-r--r-- | devel/libg++/files/md5 | 1 | ||||
-rw-r--r-- | devel/libg++/patches/patch-aa | 57 | ||||
-rw-r--r-- | devel/libg++/pkg/COMMENT | 1 | ||||
-rw-r--r-- | devel/libg++/pkg/DESCR | 9 | ||||
-rw-r--r-- | devel/libg++/pkg/PLIST.pre | 183 |
7 files changed, 376 insertions, 0 deletions
diff --git a/devel/libg++/Makefile b/devel/libg++/Makefile new file mode 100644 index 00000000000..74da55e3ffd --- /dev/null +++ b/devel/libg++/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: libg++ +# Version required: 2.8.1.1 +# Date created: 8 April 1998 +# Whom: tv@netbsd.org +# +# $NetBSD: Makefile,v 1.1 1998/04/09 13:58:51 tv Exp $ +# + +GXXVERSION= 2.8.1.1 # used by internal Makefile +DISTNAME= libg++-${GXXVERSION} +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GNU} + +MAINTAINER= tv@netbsd.org + +BUILD_DEPENDS= ${PREFIX}/bin/install-info:${PORTSDIR}/devel/gtexinfo +RUN_DEPENDS= ${PREFIX}/bin/install-info:${PORTSDIR}/devel/gtexinfo +LIB_DEPENDS= stdc++.1.: # only from NetBSD's source tree + +MAKE_ENV+= GXXVERSION="${GXXVERSION}" +PLIST_SRC= ${WRKSRC}/.PLIST + +MAN1= gperf.1 + +do-configure: + @${CP} ${FILESDIR}/Makefile ${WRKSRC} + +pre-install: + ${MKDIR} ${PREFIX}/include/g++/gen + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/genclass ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/gperf ${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/gperf.info ${WRKSRC}/libg++.info ${PREFIX}/info/ + @install-info ${PREFIX}/info/gperf.info ${PREFIX}/info/dir + @install-info ${PREFIX}/info/libg++.info ${PREFIX}/info/dir + ${INSTALL_DATA} ${WRKSRC}/libg++/gperf/gperf.1 ${PREFIX}/man/man1/ + @(${CAT} ${PKGDIR}/PLIST.pre; cd ${PREFIX}; \ + /bin/ls 2>/dev/null -1d lib/libg++*.a lib/libg++.so*) \ + >${PLIST_SRC} + +.include <bsd.port.mk> diff --git a/devel/libg++/files/Makefile b/devel/libg++/files/Makefile new file mode 100644 index 00000000000..1dcc244489b --- /dev/null +++ b/devel/libg++/files/Makefile @@ -0,0 +1,83 @@ +# $NetBSD: Makefile,v 1.1 1998/04/09 13:58:52 tv Exp $ +# Makefile for libg++ add-on for NetBSD. Requires libstdc++ shlib v1.x. + +LIB=g++ + +SHLIB_MAJOR=5 +SHLIB_MINOR=0 + +SRCS= ACG.cc AllocRing.cc Binomial.cc BitSet.cc BitString.cc \ + DLList.cc DiscUnif.cc Erlang.cc Fix.cc Fix16.cc Fix24.cc Geom.cc \ + GetOpt.cc HypGeom.cc Intdouble.cc Integer.cc LogNorm.cc MLCG.cc \ + NegExp.cc Normal.cc Obstack.cc Poisson.cc RNG.cc Random.cc \ + Rational.cc Regex.cc RndInt.cc SLList.cc SmplHist.cc SmplStat.cc \ + String.cc Uniform.cc Weibull.cc builtin.cc compare.cc error.cc \ + fmtq.cc gcd.cc hash.cc ioob.cc lg.cc pow.cc sqrt.cc +SRCS+= bitand.c bitany.c bitblt.c bitclear.c bitcopy.c bitcount.c \ + bitinvert.c bitlcomp.c bitset1.c bitxor.c timer.c +SRCS+= rx.c + +INCS= ACG.h AllocRing.h Binomial.h BitSet.h BitString.h Complex.h \ + DLList.h DiscUnif.h Erlang.h Fix.h Fix16.h Fix24.h \ + Geom.h GetOpt.h HypGeom.h Incremental.h Integer.h LogNorm.h MLCG.h \ + NegExp.h Normal.h Obstack.h Pix.h Poisson.h RNG.h Random.h \ + Rational.h Regex.h RndInt.h SLList.h SmplHist.h SmplStat.h \ + String.h Uniform.h Weibull.h bitdo1.h bitdo2.h bitprims.h bool.h \ + builtin.h compare.h generic.h getpagesize.h libc.h minmax.h \ + osfcn.h std.h strclass.h swap.h sysent.h typemacros.h +INCS+= gen/AVLMap.hP gen/AVLSet.hP gen/AVec.hP gen/BSTSet.hP gen/Bag.hP \ + gen/CHBag.hP gen/CHMap.hP gen/CHNode.hP gen/CHSet.hP \ + gen/DLDeque.hP gen/DLList.hP gen/Deque.hP gen/FPQueue.hP \ + gen/FPStack.hP gen/FPlex.hP gen/List.hP gen/MPlex.hP gen/Map.hP \ + gen/OSLBag.hP gen/OSLSet.hP gen/OXPBag.hP gen/OXPSet.hP \ + gen/PHPQ.hP gen/PQ.hP gen/PSList.hP gen/PVec.hP gen/Plex.hP \ + gen/Queue.hP gen/RAVLMap.hP gen/RPlex.hP gen/SLBag.hP \ + gen/SLList.hP gen/SLQueue.hP gen/SLSet.hP gen/SLStack.hP \ + gen/Set.hP gen/SkipBag.hP gen/SkipMap.hP gen/SkipSet.hP \ + gen/SplayBag.hP gen/SplayMap.hP gen/SplayNode.hP gen/SplayPQ.hP \ + gen/SplaySet.hP gen/Stack.hP gen/VHBag.hP gen/VHMap.hP \ + gen/VHSet.hP gen/VOHSet.hP gen/VQueue.hP gen/VStack.hP gen/Vec.hP \ + gen/XPBag.hP gen/XPDeque.hP gen/XPPQ.hP gen/XPQueue.hP \ + gen/XPSet.hP gen/XPStack.hP gen/XPlex.hP gen/defs.hP \ + gen/intSList.hP gen/intVec.hP +INCS+= gen/AVLMap.ccP gen/AVLSet.ccP gen/AVec.ccP gen/BSTSet.ccP \ + gen/Bag.ccP gen/CHBag.ccP gen/CHMap.ccP gen/CHNode.ccP \ + gen/CHSet.ccP gen/DLDeque.ccP gen/DLList.ccP gen/Deque.ccP \ + gen/FPQueue.ccP gen/FPStack.ccP gen/FPlex.ccP gen/List.ccP \ + gen/MPlex.ccP gen/Map.ccP gen/OSLBag.ccP gen/OSLSet.ccP \ + gen/OXPBag.ccP gen/OXPSet.ccP gen/PHPQ.ccP gen/PQ.ccP gen/Plex.ccP \ + gen/Queue.ccP gen/RAVLMap.ccP gen/RPlex.ccP gen/SLBag.ccP \ + gen/SLList.ccP gen/SLQueue.ccP gen/SLSet.ccP gen/SLStack.ccP \ + gen/Set.ccP gen/SkipBag.ccP gen/SkipMap.ccP gen/SkipSet.ccP \ + gen/SplayBag.ccP gen/SplayMap.ccP gen/SplayNode.ccP \ + gen/SplayPQ.ccP gen/SplaySet.ccP gen/Stack.ccP gen/VHBag.ccP \ + gen/VHMap.ccP gen/VHSet.ccP gen/VOHSet.ccP gen/VQueue.ccP \ + gen/VStack.ccP gen/Vec.ccP gen/XPBag.ccP gen/XPDeque.ccP \ + gen/XPPQ.ccP gen/XPQueue.ccP gen/XPSet.ccP gen/XPStack.ccP \ + gen/XPlex.ccP + +CPPFLAGS+= -Ilibg++/src -Ilibrx +NOLINT= + +BINDIR= ${PREFIX}/bin +INCSDIR= ${PREFIX}/include/g++ +LIBDIR= ${PREFIX}/lib + +genclass: libg++/genclass/genclass.sh + sed -e "s,<VERSION>,${GXXVERSION},;s,^PROTODIR.*,PROTODIR=${PREFIX}/include/g++/gen," ${.ALLSRC} >${.TARGET} + +libg++.info: libg++/libg++.texi + makeinfo --no-split -I libg++/texinfo -o libg++.info libg++/libg++.texi + +gperf: + @cd libg++/gperf/src && ${MAKE} -f Makefile.in CFLAGS="${CFLAGS} -I../../src" LIBS="-L../../.. -lg++" TARGETPROG="../../../gperf" + +gperf.info: libg++/gperf/gperf.texi + makeinfo --no-split -I libg++/texinfo -o gperf.info libg++/gperf/gperf.texi + +.PATH: libg++/src librx + +.include <bsd.lib.mk> + +all: genclass libg++.info gperf gperf.info +install: includes diff --git a/devel/libg++/files/md5 b/devel/libg++/files/md5 new file mode 100644 index 00000000000..4c86f4511e9 --- /dev/null +++ b/devel/libg++/files/md5 @@ -0,0 +1 @@ +MD5 (libg++-2.8.1.1.tar.gz) = 0fe759d725cb9ab65b0fc9e37a2939ff diff --git a/devel/libg++/patches/patch-aa b/devel/libg++/patches/patch-aa new file mode 100644 index 00000000000..670c9d8bbd4 --- /dev/null +++ b/devel/libg++/patches/patch-aa @@ -0,0 +1,57 @@ +*** libg++/src/ACG.cc.orig Sat Jun 24 17:40:39 1995 +--- libg++/src/ACG.cc Thu Apr 9 07:34:24 1998 +*************** +*** 172,178 **** + // + + static const _G_uint32_t LC_A = 66049; +! static const _G_uint32_t LC_C = 3907864577; + static inline _G_uint32_t LCG(_G_uint32_t x) + { + return( x * LC_A + LC_C ); +--- 172,178 ---- + // + + static const _G_uint32_t LC_A = 66049; +! static const _G_uint32_t LC_C = 3907864577U; + static inline _G_uint32_t LCG(_G_uint32_t x) + { + return( x * LC_A + LC_C ); +*** libg++/src/hash.cc.orig Sat Jun 24 12:45:40 1995 +--- libg++/src/hash.cc Thu Apr 9 07:34:51 1998 +*************** +*** 41,47 **** + unsigned int multiplicativehash(int x) + { + // uses a const close to golden ratio * pow(2,32) +! return ((unsigned)x) * 2654435767; + } + + +--- 41,47 ---- + unsigned int multiplicativehash(int x) + { + // uses a const close to golden ratio * pow(2,32) +! return ((unsigned)x) * 2654435767U; + } + + +*** libg++/src/timer.c.orig Sat Jun 24 12:45:41 1995 +--- libg++/src/timer.c Thu Apr 9 08:51:48 1998 +*************** +*** 29,35 **** + + #if 1 + +! #include <_G_config.h> + #include <sys/types.h> + #if _G_HAVE_SYS_RESOURCE + #include <sys/time.h> +--- 29,35 ---- + + #if 1 + +! #include <g++/_G_config.h> + #include <sys/types.h> + #if _G_HAVE_SYS_RESOURCE + #include <sys/time.h> diff --git a/devel/libg++/pkg/COMMENT b/devel/libg++/pkg/COMMENT new file mode 100644 index 00000000000..be3cc8470f0 --- /dev/null +++ b/devel/libg++/pkg/COMMENT @@ -0,0 +1 @@ +The GNU C++ Class Library diff --git a/devel/libg++/pkg/DESCR b/devel/libg++/pkg/DESCR new file mode 100644 index 00000000000..568f4714890 --- /dev/null +++ b/devel/libg++/pkg/DESCR @@ -0,0 +1,9 @@ +The GNU C++ Class Library is a set of C++ classes that ease implementation +of many common concepts left out of even the most recent C++ standards. +It includes regular expressions, dynamically linked lists, and more. This +library requires the libstdc++ available in NetBSD 1.4, and will not work +on earlier releases (earlier releases shipped with a libg++ appropriate +for that release). + +The libg++ package also includes gperf, a "perfect hash function +generator" program, which uses libg++ as its base class library. diff --git a/devel/libg++/pkg/PLIST.pre b/devel/libg++/pkg/PLIST.pre new file mode 100644 index 00000000000..79f137bed5e --- /dev/null +++ b/devel/libg++/pkg/PLIST.pre @@ -0,0 +1,183 @@ +@comment $NetBSD: PLIST.pre,v 1.1 1998/04/09 13:58:52 tv Exp $ +bin/genclass +bin/gperf +include/g++/gen/AVLMap.hP +include/g++/gen/AVLSet.hP +include/g++/gen/AVec.hP +include/g++/gen/BSTSet.hP +include/g++/gen/Bag.hP +include/g++/gen/CHBag.hP +include/g++/gen/CHMap.hP +include/g++/gen/CHNode.hP +include/g++/gen/CHSet.hP +include/g++/gen/DLDeque.hP +include/g++/gen/DLList.hP +include/g++/gen/Deque.hP +include/g++/gen/FPQueue.hP +include/g++/gen/FPStack.hP +include/g++/gen/FPlex.hP +include/g++/gen/List.hP +include/g++/gen/MPlex.hP +include/g++/gen/Map.hP +include/g++/gen/OSLBag.hP +include/g++/gen/OSLSet.hP +include/g++/gen/OXPBag.hP +include/g++/gen/OXPSet.hP +include/g++/gen/PHPQ.hP +include/g++/gen/PQ.hP +include/g++/gen/PSList.hP +include/g++/gen/PVec.hP +include/g++/gen/Plex.hP +include/g++/gen/Queue.hP +include/g++/gen/RAVLMap.hP +include/g++/gen/RPlex.hP +include/g++/gen/SLBag.hP +include/g++/gen/SLList.hP +include/g++/gen/SLQueue.hP +include/g++/gen/SLSet.hP +include/g++/gen/SLStack.hP +include/g++/gen/Set.hP +include/g++/gen/SkipBag.hP +include/g++/gen/SkipMap.hP +include/g++/gen/SkipSet.hP +include/g++/gen/SplayBag.hP +include/g++/gen/SplayMap.hP +include/g++/gen/SplayNode.hP +include/g++/gen/SplayPQ.hP +include/g++/gen/SplaySet.hP +include/g++/gen/Stack.hP +include/g++/gen/VHBag.hP +include/g++/gen/VHMap.hP +include/g++/gen/VHSet.hP +include/g++/gen/VOHSet.hP +include/g++/gen/VQueue.hP +include/g++/gen/VStack.hP +include/g++/gen/Vec.hP +include/g++/gen/XPBag.hP +include/g++/gen/XPDeque.hP +include/g++/gen/XPPQ.hP +include/g++/gen/XPQueue.hP +include/g++/gen/XPSet.hP +include/g++/gen/XPStack.hP +include/g++/gen/XPlex.hP +include/g++/gen/defs.hP +include/g++/gen/intSList.hP +include/g++/gen/intVec.hP +include/g++/gen/AVLMap.ccP +include/g++/gen/AVLSet.ccP +include/g++/gen/AVec.ccP +include/g++/gen/BSTSet.ccP +include/g++/gen/Bag.ccP +include/g++/gen/CHBag.ccP +include/g++/gen/CHMap.ccP +include/g++/gen/CHNode.ccP +include/g++/gen/CHSet.ccP +include/g++/gen/DLDeque.ccP +include/g++/gen/DLList.ccP +include/g++/gen/Deque.ccP +include/g++/gen/FPQueue.ccP +include/g++/gen/FPStack.ccP +include/g++/gen/FPlex.ccP +include/g++/gen/List.ccP +include/g++/gen/MPlex.ccP +include/g++/gen/Map.ccP +include/g++/gen/OSLBag.ccP +include/g++/gen/OSLSet.ccP +include/g++/gen/OXPBag.ccP +include/g++/gen/OXPSet.ccP +include/g++/gen/PHPQ.ccP +include/g++/gen/PQ.ccP +include/g++/gen/Plex.ccP +include/g++/gen/Queue.ccP +include/g++/gen/RAVLMap.ccP +include/g++/gen/RPlex.ccP +include/g++/gen/SLBag.ccP +include/g++/gen/SLList.ccP +include/g++/gen/SLQueue.ccP +include/g++/gen/SLSet.ccP +include/g++/gen/SLStack.ccP +include/g++/gen/Set.ccP +include/g++/gen/SkipBag.ccP +include/g++/gen/SkipMap.ccP +include/g++/gen/SkipSet.ccP +include/g++/gen/SplayBag.ccP +include/g++/gen/SplayMap.ccP +include/g++/gen/SplayNode.ccP +include/g++/gen/SplayPQ.ccP +include/g++/gen/SplaySet.ccP +include/g++/gen/Stack.ccP +include/g++/gen/VHBag.ccP +include/g++/gen/VHMap.ccP +include/g++/gen/VHSet.ccP +include/g++/gen/VOHSet.ccP +include/g++/gen/VQueue.ccP +include/g++/gen/VStack.ccP +include/g++/gen/Vec.ccP +include/g++/gen/XPBag.ccP +include/g++/gen/XPDeque.ccP +include/g++/gen/XPPQ.ccP +include/g++/gen/XPQueue.ccP +include/g++/gen/XPSet.ccP +include/g++/gen/XPStack.ccP +include/g++/gen/XPlex.ccP +include/g++/ACG.h +include/g++/AllocRing.h +include/g++/Binomial.h +include/g++/BitSet.h +include/g++/BitString.h +include/g++/Complex.h +include/g++/DLList.h +include/g++/DiscUnif.h +include/g++/Erlang.h +include/g++/Fix.h +include/g++/Fix16.h +include/g++/Fix24.h +include/g++/Geom.h +include/g++/GetOpt.h +include/g++/HypGeom.h +include/g++/Incremental.h +include/g++/Integer.h +include/g++/LogNorm.h +include/g++/MLCG.h +include/g++/NegExp.h +include/g++/Normal.h +include/g++/Obstack.h +include/g++/Pix.h +include/g++/Poisson.h +include/g++/RNG.h +include/g++/Random.h +include/g++/Rational.h +include/g++/Regex.h +include/g++/RndInt.h +include/g++/SLList.h +include/g++/SmplHist.h +include/g++/SmplStat.h +include/g++/String.h +include/g++/Uniform.h +include/g++/Weibull.h +include/g++/bitdo1.h +include/g++/bitdo2.h +include/g++/bitprims.h +include/g++/bool.h +include/g++/builtin.h +include/g++/compare.h +include/g++/generic.h +include/g++/getpagesize.h +include/g++/libc.h +include/g++/minmax.h +include/g++/osfcn.h +include/g++/std.h +include/g++/strclass.h +include/g++/swap.h +include/g++/sysent.h +include/g++/typemacros.h +@dirrm include/g++/gen +@dirrm include/g++ +@unexec %D/bin/install-info --delete %D/info/gperf.info %D/info/dir +@unexec %D/bin/install-info --delete %D/info/libg++.info %D/info/dir +info/gperf.info +info/libg++.info +@exec %D/bin/install-info %D/info/gperf.info %D/info/dir +@exec %D/bin/install-info %D/info/libg++.info %D/info/dir +@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir +man/man1/gperf.1.gz |