source: freewrt/package/libdb/Makefile@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was c57fbc9, checked in by Thorsten Glaser <tg@…>, 19 years ago

nuke DISABLE_NLS, DISABLE_LARGEFILE, replace globally
with --disable-nls and --enable-largefile, because it
doesn't make sense otherwise and/or breaks.

Requested by wbx@ in Message-ID: <20060618220406.GL6291@…>
Done using find and ed(1)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@152 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.3 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=libdb
6PKG_VERSION:=4.2.52
7PKG_RELEASE:=1
8PKG_MD5SUM:=x
9
10PKG_SOURCE_URL:=ftp://ftp.sleepycat.com/releases/ \
11 http://downloads.sleepycat.com/
12PKG_SOURCE:=db-$(PKG_VERSION).tar.gz
13PKG_CAT:=zcat
14
15PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(PKG_VERSION)
16PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18include $(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 --enable-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
84install-dev: $(STAGING_DIR)/usr/lib/libdb.so
85
86uninstall-dev:
87 rm -rf $(STAGING_DIR)/usr/include/db.h
88 rm -rf $(STAGING_DIR)/usr/lib/libdb*.{a,so}
89
90compile-targets: install-dev
91clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.