1 #!/usr/bin/bash
2 #
3 # CDDL HEADER START
4 #
5 # The contents of this file are subject to the terms of the
6 # Common Development and Distribution License, Version 1.0 only
7 # (the "License"). You may not use this file except in compliance
8 # with the License.
9 #
10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 # or http://www.opensolaris.org/os/licensing.
12 # See the License for the specific language governing permissions
13 # and limitations under the License.
14 #
15 # When distributing Covered Code, include this CDDL HEADER in each
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 #
21 # CDDL HEADER END
22 #
23 #
24 # Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27 # Load support functions
28 . ../../lib/functions.sh
29
30 PROG=pcre
31 VER=8.35
32 VERHUMAN=$VER
33 PKG=library/pcre
34 SUMMARY="Perl-Compatible Regular Expressions"
35 DESC="PCRE - Perl-Compatible Regular Expressions"
36
37 DEPENDS_IPS="library/readline compress/bzip2 library/zlib system/library/g++-4-runtime
38 system/library/gcc-4-runtime system/library system/library/math"
39
40 LIBTOOL_NOSTDLIB=libtool
41 LIBTOOL_NOSTDLIB_EXTRAS=-lc
42
43 CONFIGURE_OPTS="$CONFIGURE_OPTS
44 --includedir=/usr/include/pcre
45 --localstatedir=/var
46 --disable-static
47 --enable-cpp
48 --enable-rebuild-chartables
49 --enable-utf8
50 --enable-unicode-properties
51 --enable-newline-is-any
52 --disable-stack-for-recursion
53 --enable-pcregrep-libz
54 --enable-pcregrep-libbz2
55 --with-posix-malloc-threshold=20
56 --with-link-size=4
57 --with-match-limit=10000000
58 --with-pic
59 "
60
61 make_install64() {
62 # the 32bit version installed these and the 64bit version will fail
63 # reinstalling them... clear them out and let 64bit do its business.
64 rm -rf $DESTDIR/usr/share/man
65 make_install
66 }
67
68 init
69 download_source $PROG $PROG $VER
70 patch_source
71 prep_build
72 build
73 make_isa_stub
74 make_package
75 clean_up
76
77 # Vim hints
78 # vim:ts=4:sw=4:et: