]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/db4/db4.nm
1035d901005c43bd02762debc2a23af4451f6423
[people/ms/ipfire-3.x.git] / pkgs / db4 / db4.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = db
28 PKG_VER_MAJ = 4.7
29 PKG_VER_MIN = 25
30 PKG_VER = $(PKG_VER_MAJ).$(PKG_VER_MIN)
31 PKG_REL = 0
32 PKG_EPOCH = 1
33
34 # Never update this to major version 5.
35
36 PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
37 PKG_GROUPS = System/Libraries
38 PKG_URL = http://www.oracle.com/technology/products/berkeley-db/
39 PKG_LICENSE = Proprietary
40 PKG_SUMMARY = Berkeley DB is a library that provides an embedded database.
41
42 PKG_BUILD_DEPS+= gcc-c++
43
44 define PKG_DESCRIPTION
45 Berkeley DB (BDB) is a computer software library that provides \
46 a high-performance embedded database.
47 endef
48
49 PKG_TARBALL = $(THISAPP).tar.gz
50
51 PKG_PACKAGES = $(PKG_NAME_REAL)-devel $(PKG_NAME_REAL)-utils \
52 $(PKG_NAME_REAL) $(PKG_NAME_REAL)-cxx
53
54 PKG_FILES = /usr/lib/libdb-$(PKG_VER_MAJ).so
55 PKG_FILES-$(PKG_NAME_REAL)-cxx = /usr/lib/libdb_cxx-$(PKG_VER_MAJ).so
56 PKG_FILES-$(PKG_NAME_REAL)-devel = /usr/include /usr/lib
57 PKG_FILES-$(PKG_NAME_REAL)-utils = /usr/bin
58
59 define STAGE_BUILD
60 cd $(DIR_APP)/build_unix && \
61 CC=gcc \
62 ../dist/configure \
63 --prefix=/usr \
64 --enable-compat185 \
65 --enable-cxx \
66 --disable-static
67
68 cd $(DIR_APP)/build_unix && make $(PARALLELISMFLAGS)
69 endef
70
71 define STAGE_INSTALL
72 cd $(DIR_APP)/build_unix && make install DESTDIR=$(BUILDROOT) \
73 docdir=/usr/share/doc/$(THISAPP)
74 endef