1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# -*-makefile-*-
#
# Copyright (C) 2003 by Werner Schmitt <mail2ws@gmx.de>
# 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_DB) += db
#
# Paths and names
#
ifdef PTXCONF_DB_41
DB_VERSION := 4.1.25.NC
endif
ifdef PTXCONF_DB_44
DB_VERSION := 4.4.20.NC
endif
DB_MINOR := $(word 2,$(subst ., ,$(DB_VERSION)))
DB := db-$(DB_VERSION)
DB_SUFFIX := tar.gz
DB_URL := http://download.oracle.com/berkeley-db/$(DB).$(DB_SUFFIX)
DB_SOURCE := $(SRCDIR)/$(DB).$(DB_SUFFIX)
DB_DIR := $(BUILDDIR)/$(DB)
DB_SUBDIR := dist
DB_BUILDDIR := $(DB_DIR)/build_unix
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(DB_SOURCE):
@$(call targetinfo)
@$(call get, DB)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
DB_CONF_TOOL := autoconf
DB_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
$(GLOBAL_LARGE_FILE_OPTION) \
--disable-cryptography \
--disable-debug \
--disable-debug_rop \
--disable-debug_wop \
--disable-diagnostic \
--disable-dump185 \
--disable-java \
--disable-mingw \
--disable-queue \
--disable-replication \
--disable-rpc \
--disable-static \
--disable-statistics \
--disable-tcl \
--disable-test \
--disable-uimutexes \
--disable-umrw \
--disable-verify \
--enable-compat185 \
--enable-cxx \
--enable-hash \
--enable-o_direct \
--enable-pthread_self \
--enable-shared
ifdef PTXCONF_ARCH_ARM
DB_CONF_OPT += \
--with-mutex=ARM/gcc-assembly
endif
DB_MAKE_PAR := NO
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/db.targetinstall:
@$(call targetinfo)
@$(call install_init, db)
@$(call install_fixup, db,PACKAGE,db)
@$(call install_fixup, db,PRIORITY,optional)
@$(call install_fixup, db,VERSION,$(DB_VERSION))
@$(call install_fixup, db,SECTION,base)
@$(call install_fixup, db,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
@$(call install_fixup, db,DEPENDS,)
@$(call install_fixup, db,DESCRIPTION,missing)
@$(call install_copy, db, 0, 0, 0644, -, \
/usr/lib/libdb-4.$(DB_MINOR).so)
@$(call install_link, db, libdb-4.$(DB_MINOR).so, /usr/lib/libdb-4.so)
@$(call install_link, db, libdb-4.$(DB_MINOR).so, /usr/lib/libdb.so)
ifdef PTXCONF_DB_UTIL
@cd "$(PKGDIR)/$(DB)" && \
find ./usr/bin -type f | \
while read file; do \
$(call install_copy, db, 0, 0, 0755, -, $${file##.}); \
done
endif
@$(call install_finish, db)
@$(call touch)
# vim: syntax=make
|