1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/bdb3/trunk/Makefile

Revision 16916, 4.3 KB (checked in by dmichelsen, 4 months ago)

WHOLE TREE: Explicitly set GARTYPE to current default 'v2'

Line 
1NAME = db
2VERSION = 3.3.11
3CATEGORIES = lib
4GARTYPE = v2
5
6DESCRIPTION = embedded database libraries and utilities
7define BLURB
8  Berkeley DB (libdb) is a programmatic toolkit that provides embedded database
9  support for both traditional and client/server applications. It includes
10  b+tree, queue, extended linear hashing, fixed, and variable-length record
11  access methods, transactions, locking, logging, shared memory caching and
12  database recovery. DB supports C, C++, Java, and Perl APIs. It is available
13  for a wide variety of UNIX platforms as well as Windows NT and Windows 95
14  (MSVC 4, 5 and 6).
15endef
16
17MASTER_SITES = http://download.oracle.com/berkeley-db/
18DISTFILES = $(NAME)-$(VERSION).tar.gz
19
20PATCHDIR = $(WORKDIR)/$(DISTNAME)
21WORKSRC = $(PATCHDIR)/build_unix
22
23PATCHDIRLEVEL = 0
24PATCHFILES += $(notdir $(wildcard $(FILEDIR)/patch.*))
25RELEASE = p$(words $(filter patch.$(VERSION).%,$(PATCHFILES)))
26
27BUILD64 = 1
28
29CONFIGURE_SCRIPTS = dist
30
31prefix = $(BUILD_PREFIX)/bdb33
32docdir = $(BUILD_PREFIX)/share/doc
33
34CONFIGURE_ARGS  = $(DIRPATHS)
35CONFIGURE_ARGS += --enable-compat185
36CONFIGURE_ARGS += --enable-o_direct
37CONFIGURE_ARGS += --enable-rpc
38CONFIGURE_ARGS += --enable-cxx
39CONFIGURE_ARGS += --enable-java
40
41# Exclude TCL support for 64 bit until we have a 64 bit TCL
42CONFIGURE_ARGS-mm-32 = --enable-tcl --with-tcl=$(libpath)
43CONFIGURE_ARGS += $(CONFIGURE_ARGS-mm-$(MEMORYMODEL))
44
45FIXCONFIG_DIRS  = $(DESTDIR)$(prefix)/bdb33/lib
46
47# There are no test scripts for bdb 3.3
48TEST_SCRIPTS =
49
50LICENSE = LICENSE
51VENDOR_URL = http://www.oracle.com/technology/software/products/berkeley-db/db/index.html
52
53PACKAGES += CSWbdb3
54CATALOGNAME_CSWbdb3 = berkeleydb3
55SPKG_DESC_CSWbdb3 = BerkeleyDB 3.3 embedded database libraries and utilities
56RUNTIME_DEP_PKGS_CSWbdb3 += CSWtcl
57CHECKPKG_OVERRIDES_CSWbdb3 += catalogname-does-not-match-pkgname|pkgname=CSWbdb3|catalogname=berkeleydb3|expected-catalogname=bdb3
58
59PACKAGES += CSWbdb3-dev
60CATALOGNAME_CSWbdb3-dev = berkeleydb3_dev
61SPKG_DESC_CSWbdb3-dev = BerkeleyDB 3.3 development support
62# Keep these in the main package
63PKGFILES_DEVEL_SHAREDLIBLINK =
64PKGFILES_CSWbdb3-dev = $(PKGFILES_DEVEL)
65RUNTIME_DEP_PKGS_CSWbdb3-dev = CSWbdb3
66CHECKPKG_OVERRIDES_CSWbdb3-dev += surplus-dependency|CSWbdb3
67CHECKPKG_OVERRIDES_CSWbdb3-dev += catalogname-does-not-match-pkgname|pkgname=CSWbdb3-dev|catalogname=berkeleydb3_dev|expected-catalogname=bdb3_dev
68OBSOLETED_BY_CSWbdb3-dev = CSWbdb3devel
69CATALOGNAME_CSWbdb3devel = berkeleydb3_devel_stub
70
71PACKAGES += CSWbdb3-doc
72CATALOGNAME_CSWbdb3-doc = berkeleydb3_doc
73SPKG_DESC_CSWbdb3-doc = BerkeleyDB 3.3 documentation
74PKGFILES_CSWbdb3-doc = $(PKGFILES_DOC)
75ARCHALL_CSWbdb3-doc = 1
76CHECKPKG_OVERRIDES_CSWbdb3-doc += catalogname-does-not-match-pkgname|pkgname=CSWbdb3-doc|catalogname=berkeleydb3_doc|expected-catalogname=bdb3_doc
77OBSOLETED_BY_CSWbdb3-doc = CSWbdb3doc
78CATALOGNAME_CSWbdb3doc = berkeleydb3_doc_stub
79
80# These are all pure examples
81CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/build_unix/flags.html
82CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/build_unix/install.html
83CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/build_unix/conf.html
84CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/build_unix/notes.html
85CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/sendmail/intro.html
86CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/tcl/intro.html
87
88INSTALL_OVERRIDE_DIRS = prefix exec_prefix bindir includedir libdir
89
90EXTRA_PAX_ARGS += -s ',^\.$(prefix)/docs,.$(BUILD_PREFIX)/share/doc/$(CATALOGNAME_CSWbdb3),'
91EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv9 = .*/docs.*
92EXTRA_MERGE_EXCLUDE_FILES_isa-amd64 = .*/docs.*
93
94include gar/category.mk
95
96LIBS += -lnsl
97export LIBS
98
99PATH := /usr/j2se/bin:$(PATH)
100export PATH
101
102configure-dist:
103        ( cd $(WORKSRC) ; $(CONFIGURE_ENV) ../dist/configure $(CONFIGURE_ARGS) )
104        @$(MAKECOOKIE)
105
106post-merge:
107        gln -s . $(PKGROOT)$(libdir)/32
108        gln -s $(ISA_DEFAULT64) $(PKGROOT)$(libdir)/64
109        ginstall -d $(PKGROOT)$(libpath)
110        gln -s ../bdb33/lib/libdb-3.3.so $(PKGROOT)$(libpath)
111        @$(MAKECOOKIE)
112
113SPKG_REVSTAMP := $(SPKG_REVSTAMP)_rev=$(RELEASE)
114
Note: See TracBrowser for help on using the browser.