]>
Commit | Line | Data |
---|---|---|
e5ea083d MT |
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 = boost | |
85a6d733 | 28 | PKG_VER = 1.41.0 |
e5ea083d MT |
29 | PKG_REL = 0 |
30 | ||
31 | PKG_MAINTAINER = | |
bb7d617c | 32 | PKG_GROUPS = System/Libraries |
e5ea083d MT |
33 | PKG_URL = http://www.boost.org/ |
34 | PKG_LICENSE = Boost | |
35 | PKG_SUMMARY = The Boost C++ Libraries. | |
36 | ||
8c893619 | 37 | PKG_BUILD_DEPS+= cmake gcc-c++ zlib-devel |
e5ea083d MT |
38 | |
39 | define PKG_DESCRIPTION | |
40 | Boost provides free peer-reviewed portable C++ source libraries. The \ | |
41 | emphasis is on libraries which work well with the C++ Standard \ | |
8c893619 | 42 | Library, in the hopes of establishing existing practice for \ |
e5ea083d | 43 | extensions and providing reference implementations so that the Boost \ |
8c893619 | 44 | libraries are suitable for eventual standardization. |
e5ea083d MT |
45 | endef |
46 | ||
85a6d733 | 47 | PKG_TARBALL = $(THISAPP).cmake0.tar.gz |
e5ea083d | 48 | |
8c893619 MT |
49 | PKG_PACKAGES += $(PKG_NAME)-devel |
50 | ||
e5ea083d | 51 | CFLAGS += -fno-strict-aliasing |
85a6d733 | 52 | CXXFLAGS += -fno-strict-aliasing |
e5ea083d | 53 | |
85a6d733 | 54 | DIR_APP = $(DIR_SRC)/$(THISAPP).cmake0 |
e5ea083d | 55 | |
e5ea083d | 56 | define STAGE_PREPARE_CMDS |
85a6d733 | 57 | -mkdir -pv $(DIR_APP)/serial |
e5ea083d MT |
58 | endef |
59 | ||
60 | define STAGE_BUILD | |
85a6d733 MT |
61 | cd $(DIR_APP)/serial && \ |
62 | cmake \ | |
63 | -DCMAKE_INSTALL_PREFIX=/usr \ | |
64 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
65 | -DBUILD_TESTS="NONE" \ | |
66 | -DENABLE_SINGLE_THREADED=YES \ | |
67 | -DINSTALL_VERSIONED=OFF \ | |
68 | -DWITH_MPI=OFF \ | |
69 | -DENABLE_STATIC=OFF \ | |
70 | -DENABLE_DEBUG=OFF \ | |
71 | .. | |
72 | ||
73 | cd $(DIR_APP)/serial && make VERBOSE=1 #$(PARALLELISMFLAGS) | |
e5ea083d MT |
74 | endef |
75 | ||
76 | define STAGE_INSTALL | |
85a6d733 MT |
77 | cd $(DIR_APP)/serial && make install DESTDIR=$(BUILDROOT) |
78 | ||
79 | # Kill any debug library versions that may show up un-invited. | |
80 | rm -f $(BUILDROOT)/usr/lib/*-d.* | |
e5ea083d | 81 | |
85a6d733 MT |
82 | # Remove cmake configuration files used to build the Boost libraries |
83 | find $(BUILDROOT)/usr/lib -name '*.cmake' -exec rm -f {} \; | |
e5ea083d | 84 | endef |