Added support for : save-password( --enable-password-save), smaller executable (...
[openwrt.git] / package / libdb / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libdb
6 PKG_VERSION:=4.2.52
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=x
9
10 PKG_SOURCE_URL:=ftp://ftp.sleepycat.com/releases/ \
11 http://downloads.sleepycat.com/
12 PKG_SOURCE:=db-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,LIBDB,libdb,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR)/build_unix ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
28 ../dist/configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 $(DISABLE_NLS) \
47 $(DISABLE_LARGEFILE) \
48 --enable-shared \
49 --enable-static \
50 --disable-java \
51 --enable-cxx \
52 --disable-posixmutexes \
53 --disable-uimutexes \
54 --disable-tcl \
55 --disable-rpc \
56 --enable-compat185 \
57 --enable-debug \
58 --enable-statistics \
59 --enable-replication \
60 --enable-cryptography \
61 );
62 touch $@
63
64 $(PKG_BUILD_DIR)/.built:
65 rm -rf $(PKG_INSTALL_DIR)
66 mkdir -p $(PKG_INSTALL_DIR)
67 $(MAKE) -C $(PKG_BUILD_DIR)/build_unix \
68 DESTDIR="$(PKG_INSTALL_DIR)" install
69 touch $@
70
71 $(IPKG_LIBDB):
72 install -m0755 -d $(IDIR_LIBDB)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb*.so $(IDIR_LIBDB)/usr/lib/
74 $(RSTRIP) $(IDIR_LIBDB)
75 $(IPKG_BUILD) $(IDIR_LIBDB) $(PACKAGE_DIR)
76
77 $(STAGING_DIR)/usr/lib/libdb.so: $(PKG_BUILD_DIR)/.built
78 mkdir -p $(STAGING_DIR)/usr/include
79 $(CP) $(PKG_INSTALL_DIR)/usr/include/db.h $(STAGING_DIR)/usr/include/
80 mkdir -p $(STAGING_DIR)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb*.{a,so} $(STAGING_DIR)/usr/lib/
82 touch $(STAGING_DIR)/usr/lib/libdb.so
83
84 install-dev: $(STAGING_DIR)/usr/lib/libdb.so
85
86 uninstall-dev:
87 rm -rf $(STAGING_DIR)/usr/include/db.h
88 rm -rf $(STAGING_DIR)/usr/lib/libdb*.{a,so}
89
90 compile-targets: install-dev
91 clean-targets: uninstall-dev
This page took 0.043185 seconds and 5 git commands to generate.