source: freewrt/package/libdb/Makefile@ 9036ea5

freewrt_1_0 freewrt_2_0
Last change on this file since 9036ea5 was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

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

  • Property mode set to 100644
File size: 2.4 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= libdb
10PKG_VERSION:= 4.2.52
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 8b5cff6eb83972afdd8e0b821703c33c
13
14PKG_SOURCE_URL:= ftp://ftp.sleepycat.com/releases/ \
15 http://downloads.sleepycat.com/
16PKG_SOURCE:= db-$(PKG_VERSION).tar.gz
17
18WRKSRC= ${WRKDIR}/db-$(PKG_VERSION)
19
20include $(TOPDIR)/mk/package.mk
21
22$(eval $(call PKG_template,LIBDB,libdb,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24$(WRKBUILD)/.configured:
25 (cd $(WRKBUILD)/build_unix ; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
29 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
30 ../dist/configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 --disable-nls \
49 --enable-largefile \
50 --enable-shared \
51 --enable-static \
52 --disable-java \
53 --enable-cxx \
54 --disable-posixmutexes \
55 --disable-uimutexes \
56 --disable-tcl \
57 --disable-rpc \
58 --enable-compat185 \
59 --enable-debug \
60 --enable-statistics \
61 --enable-replication \
62 --enable-cryptography \
63 );
64 touch $@
65
66$(WRKBUILD)/.built:
67 rm -rf $(WRKINST)
68 mkdir -p $(WRKINST)
69 $(MAKE) -C $(WRKBUILD)/build_unix \
70 DESTDIR="$(WRKINST)" install
71 touch $@
72
73$(IPKG_LIBDB):
74 install -m0755 -d $(IDIR_LIBDB)/usr/lib
75 $(CP) $(WRKINST)/usr/lib/libdb*.so $(IDIR_LIBDB)/usr/lib/
76 $(RSTRIP) $(IDIR_LIBDB)
77 $(IPKG_BUILD) $(IDIR_LIBDB) $(PACKAGE_DIR)
78
79$(STAGING_DIR)/usr/lib/libdb.so: $(WRKBUILD)/.built
80 mkdir -p $(STAGING_DIR)/usr/include
81 $(CP) $(WRKINST)/usr/include/db.h $(STAGING_DIR)/usr/include/
82 mkdir -p $(STAGING_DIR)/usr/lib
83 $(CP) $(WRKINST)/usr/lib/libdb*.{a,so} $(STAGING_DIR)/usr/lib/
84 touch $(STAGING_DIR)/usr/lib/libdb.so
85
86install-dev: $(STAGING_DIR)/usr/lib/libdb.so
87
88uninstall-dev:
89 rm -rf $(STAGING_DIR)/usr/include/db.h
90 rm -rf $(STAGING_DIR)/usr/lib/libdb*.{a,so}
91
92compile-targets: install-dev
93clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.