/[gentoo-x86]/sys-libs/db3/db-3.1.17.ebuild
Gentoo

Contents of /sys-libs/db3/db-3.1.17.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Nov 17 01:50:35 2000 UTC (19 years, 3 months ago) by drobbins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
lib updates

1 achim 1.1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License, v2 or later
3     # Author Your Name <your email>
4 drobbins 1.3 # $Header: /home/cvsroot/gentoo-x86/sys-libs/db3/db-3.1.17.ebuild,v 1.2 2000/11/17 00:30:36 achim Exp $
5 achim 1.1
6     #P=
7     A=${P}.tar.gz
8     S=${WORKDIR}/${P}/build_unix
9     DESCRIPTION="The Berkeley DB"
10     SRC_URI="http://www.sleepycat.com/update/${PV}/${A}"
11     HOMEPAGE="http://www.sleepycat.com"
12    
13 achim 1.2 DEPEND=">=sys-libs/glibc-2.2
14     !sys-libs/glibc-2.1.3
15     sys-libs/db1"
16 achim 1.1
17     src_compile() {
18    
19     cd ${S}
20     try ../dist/configure --prefix=/usr --host=${CHOST} --enable-cxx \
21     --enable-compat185 --enable-rpc --enable-shared --enable-shared \
22     --enable-dump185
23    
24     # Build the static libs
25    
26     echo
27     echo "Building static libs..."
28     make libdb=libdb-3.1.a libdb-3.1.a
29     make libcxx=libdb_cxx-3.1.a libdb_cxx-3.1.a
30    
31     # Now comes the trick
32     # Static link with old db-185 libraries.
33    
34     echo
35     echo "Building db_dump185..."
36    
37     /bin/sh ./libtool --mode=compile cc -c ${CFLAGS} -g -g \
38     -I/usr/include/db1 -I../dist/../include -D_REENTRANT \
39     ../dist/../db_dump185/db_dump185.c
40    
41     cc -s -static -o db_dump185 db_dump185.lo -L/usr/lib -ldb1
42    
43     # Now comes the rest
44    
45     try make libdb=libdb-3.1.a libcxx=libdb_cxx-3.1.a LDFLAGS="-s"
46    
47     }
48    
49     src_install () {
50    
51     cd ${S}
52     try make libdb=libdb-3.1.a libcxx=libcxx_3.1.a prefix=${D}/usr install
53     dolib libdb-3.1.a libdb_cxx-3.1.a
54     insinto /usr/lib
55     dolib libdb-3.1.la libdb_cxx-3.1.la
56     dodir /usr/doc/${P}/html
57     mv ${D}/usr/docs ${D}/usr/doc/${P}/html/
58     dodir /usr/include/db3
59     mv ${D}/usr/include/*.h ${D}/usr/include/db3
60     dosym /usr/include/db3/db.h /usr/include/db.h
61     preplib /usr
62     cd ..
63     dodoc LICENSE README
64     }
65    

  ViewVC Help
Powered by ViewVC 1.1.20