summaryrefslogtreecommitdiff
path: root/package/libdb/Makefile
blob: 40cdb47636809736d602b91c0e1aa39708d8b759 (plain)
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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		libdb
PKG_VERSION:=		4.7.25
PKG_RELEASE:=		1
PKG_MD5SUM:=		ec2b87e833779681a0c3a814aa71359e
PKG_DESCR:=		disk file format database which stores key/data-pairs in single files
PKG_SECTION:=		libs
PKG_URL:=		http://www.oracle.com/technology/software/products/berkeley-db
PKG_SITES:=		http://www.openadk.org/distfiles/

DISTFILES:=		db-${PKG_VERSION}.tar.gz
WRKDIST=		${WRKDIR}/db-${PKG_VERSION}

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,LIBDB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

do-configure:
	(cd ${WRKBUILD}/build_unix ; \
		${TARGET_CONFIGURE_OPTS} \
		CFLAGS="${TARGET_CFLAGS}" \
		CPPFLAGS="-I${STAGING_DIR}/usr/include" \
		LDFLAGS="-L${STAGING_DIR}/usr/lib" \
		../dist/configure \
		--target=${GNU_TARGET_NAME} \
		--host=${GNU_TARGET_NAME} \
		--build=${GNU_HOST_NAME} \
		--program-prefix="" \
		--program-suffix="" \
		--prefix=/usr \
		--exec-prefix=/usr \
		--bindir=/usr/bin \
		--datadir=/usr/share \
		--includedir=/usr/include \
		--infodir=/usr/share/info \
		--libdir=/usr/lib \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--sbindir=/usr/sbin \
		--sysconfdir=/etc \
		--disable-nls \
		--enable-shared \
		--enable-static \
		--enable-smallbuild \
		--disable-debug_rop \
		--disable-debug_wop \
		--disable-diagnostic \
		--disable-java \
		--disable-cxx \
		--disable-posixmutexes \
		--disable-uimutexes \
		--disable-tcl \
		--disable-rpc \
		--disable-compat185 \
		--disable-statistics \
		--disable-replication \
		--disable-cryptography \
		--disable-queue \
		--with-mutex=UNIX/fcntl \
		);

do-install:
	${MAKE} -C ${WRKBUILD}/build_unix \
		DESTDIR="${WRKINST}" install

post-install:
	${INSTALL_DIR} ${IDIR_LIBDB}/usr/lib
	${CP} ${WRKINST}/usr/lib/libdb*.so ${IDIR_LIBDB}/usr/lib/

include ${TOPDIR}/mk/pkg-bottom.mk