2 $(package
)_version
=4.8.30
3 $(package
)_download_path
=http
://download.oracle.com
/berkeley-db
4 $(package
)_file_name
=db-
$($(package
)_version
).NC.
tar.gz
5 $(package
)_sha256_hash
=12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef
6 $(package
)_build_subdir
=build_unix
8 define $(package
)_set_vars
9 $(package
)_config_opts
=--disable-shared
--enable-cxx
--disable-replication
10 $(package
)_config_opts_mingw32
=--enable-mingw
11 $(package
)_config_opts_linux
=--with-pic
12 $(package
)_cxxflags
=-std
=c
++11
15 define $(package
)_preprocess_cmds
16 sed
-i.old
's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc
/atomic.h
&& \
17 sed
-i.old
's/atomic_init/atomic_init_db/' dbinc
/atomic.h mp
/mp_region.c mp
/mp_mvcc.c mp
/mp_fget.c mutex
/mut_method.c mutex
/mut_tas.c
&& \
18 cp
-f
$(BASEDIR
)/config.guess
$(BASEDIR
)/config.sub
dist
21 define $(package
)_config_cmds
22 ..
/dist/$($(package
)_autoconf
)
25 define $(package
)_build_cmds
26 $(MAKE
) libdb_cxx-4.8.a libdb-4.8.a
29 define $(package
)_stage_cmds
30 $(MAKE
) DESTDIR
=$($(package
)_staging_dir
) install_lib install_include