| 1 | NAME = db |
|---|
| 2 | VERSION = 3.3.11 |
|---|
| 3 | CATEGORIES = lib |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = embedded database libraries and utilities |
|---|
| 7 | define 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). |
|---|
| 15 | endef |
|---|
| 16 | |
|---|
| 17 | MASTER_SITES = http://download.oracle.com/berkeley-db/ |
|---|
| 18 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 19 | |
|---|
| 20 | PATCHDIR = $(WORKDIR)/$(DISTNAME) |
|---|
| 21 | WORKSRC = $(PATCHDIR)/build_unix |
|---|
| 22 | |
|---|
| 23 | PATCHDIRLEVEL = 0 |
|---|
| 24 | PATCHFILES += $(notdir $(wildcard $(FILEDIR)/patch.*)) |
|---|
| 25 | RELEASE = p$(words $(filter patch.$(VERSION).%,$(PATCHFILES))) |
|---|
| 26 | |
|---|
| 27 | BUILD64 = 1 |
|---|
| 28 | |
|---|
| 29 | CONFIGURE_SCRIPTS = dist |
|---|
| 30 | |
|---|
| 31 | prefix = $(BUILD_PREFIX)/bdb33 |
|---|
| 32 | docdir = $(BUILD_PREFIX)/share/doc |
|---|
| 33 | |
|---|
| 34 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 35 | CONFIGURE_ARGS += --enable-compat185 |
|---|
| 36 | CONFIGURE_ARGS += --enable-o_direct |
|---|
| 37 | CONFIGURE_ARGS += --enable-rpc |
|---|
| 38 | CONFIGURE_ARGS += --enable-cxx |
|---|
| 39 | CONFIGURE_ARGS += --enable-java |
|---|
| 40 | |
|---|
| 41 | # Exclude TCL support for 64 bit until we have a 64 bit TCL |
|---|
| 42 | CONFIGURE_ARGS-mm-32 = --enable-tcl --with-tcl=$(libpath) |
|---|
| 43 | CONFIGURE_ARGS += $(CONFIGURE_ARGS-mm-$(MEMORYMODEL)) |
|---|
| 44 | |
|---|
| 45 | FIXCONFIG_DIRS = $(DESTDIR)$(prefix)/bdb33/lib |
|---|
| 46 | |
|---|
| 47 | # There are no test scripts for bdb 3.3 |
|---|
| 48 | TEST_SCRIPTS = |
|---|
| 49 | |
|---|
| 50 | LICENSE = LICENSE |
|---|
| 51 | VENDOR_URL = http://www.oracle.com/technology/software/products/berkeley-db/db/index.html |
|---|
| 52 | |
|---|
| 53 | PACKAGES += CSWbdb3 |
|---|
| 54 | CATALOGNAME_CSWbdb3 = berkeleydb3 |
|---|
| 55 | SPKG_DESC_CSWbdb3 = BerkeleyDB 3.3 embedded database libraries and utilities |
|---|
| 56 | RUNTIME_DEP_PKGS_CSWbdb3 += CSWtcl |
|---|
| 57 | CHECKPKG_OVERRIDES_CSWbdb3 += catalogname-does-not-match-pkgname|pkgname=CSWbdb3|catalogname=berkeleydb3|expected-catalogname=bdb3 |
|---|
| 58 | |
|---|
| 59 | PACKAGES += CSWbdb3-dev |
|---|
| 60 | CATALOGNAME_CSWbdb3-dev = berkeleydb3_dev |
|---|
| 61 | SPKG_DESC_CSWbdb3-dev = BerkeleyDB 3.3 development support |
|---|
| 62 | # Keep these in the main package |
|---|
| 63 | PKGFILES_DEVEL_SHAREDLIBLINK = |
|---|
| 64 | PKGFILES_CSWbdb3-dev = $(PKGFILES_DEVEL) |
|---|
| 65 | RUNTIME_DEP_PKGS_CSWbdb3-dev = CSWbdb3 |
|---|
| 66 | CHECKPKG_OVERRIDES_CSWbdb3-dev += surplus-dependency|CSWbdb3 |
|---|
| 67 | CHECKPKG_OVERRIDES_CSWbdb3-dev += catalogname-does-not-match-pkgname|pkgname=CSWbdb3-dev|catalogname=berkeleydb3_dev|expected-catalogname=bdb3_dev |
|---|
| 68 | OBSOLETED_BY_CSWbdb3-dev = CSWbdb3devel |
|---|
| 69 | CATALOGNAME_CSWbdb3devel = berkeleydb3_devel_stub |
|---|
| 70 | |
|---|
| 71 | PACKAGES += CSWbdb3-doc |
|---|
| 72 | CATALOGNAME_CSWbdb3-doc = berkeleydb3_doc |
|---|
| 73 | SPKG_DESC_CSWbdb3-doc = BerkeleyDB 3.3 documentation |
|---|
| 74 | PKGFILES_CSWbdb3-doc = $(PKGFILES_DOC) |
|---|
| 75 | ARCHALL_CSWbdb3-doc = 1 |
|---|
| 76 | CHECKPKG_OVERRIDES_CSWbdb3-doc += catalogname-does-not-match-pkgname|pkgname=CSWbdb3-doc|catalogname=berkeleydb3_doc|expected-catalogname=bdb3_doc |
|---|
| 77 | OBSOLETED_BY_CSWbdb3-doc = CSWbdb3doc |
|---|
| 78 | CATALOGNAME_CSWbdb3doc = berkeleydb3_doc_stub |
|---|
| 79 | |
|---|
| 80 | # These are all pure examples |
|---|
| 81 | CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/build_unix/flags.html |
|---|
| 82 | CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/build_unix/install.html |
|---|
| 83 | CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/build_unix/conf.html |
|---|
| 84 | CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/build_unix/notes.html |
|---|
| 85 | CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/sendmail/intro.html |
|---|
| 86 | CHECKPKG_OVERRIDES_CSWbdb3-doc += file-with-bad-content|/usr/local|root/opt/csw/share/doc/berkeleydb3/ref/tcl/intro.html |
|---|
| 87 | |
|---|
| 88 | INSTALL_OVERRIDE_DIRS = prefix exec_prefix bindir includedir libdir |
|---|
| 89 | |
|---|
| 90 | EXTRA_PAX_ARGS += -s ',^\.$(prefix)/docs,.$(BUILD_PREFIX)/share/doc/$(CATALOGNAME_CSWbdb3),' |
|---|
| 91 | EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv9 = .*/docs.* |
|---|
| 92 | EXTRA_MERGE_EXCLUDE_FILES_isa-amd64 = .*/docs.* |
|---|
| 93 | |
|---|
| 94 | include gar/category.mk |
|---|
| 95 | |
|---|
| 96 | LIBS += -lnsl |
|---|
| 97 | export LIBS |
|---|
| 98 | |
|---|
| 99 | PATH := /usr/j2se/bin:$(PATH) |
|---|
| 100 | export PATH |
|---|
| 101 | |
|---|
| 102 | configure-dist: |
|---|
| 103 | ( cd $(WORKSRC) ; $(CONFIGURE_ENV) ../dist/configure $(CONFIGURE_ARGS) ) |
|---|
| 104 | @$(MAKECOOKIE) |
|---|
| 105 | |
|---|
| 106 | post-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 | |
|---|
| 113 | SPKG_REVSTAMP := $(SPKG_REVSTAMP)_rev=$(RELEASE) |
|---|
| 114 | |
|---|