1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/pcre/trunk/Makefile

Revision 21114, 4.5 KB (checked in by dmichelsen, 8 days ago)

pcre/trunk: Update to 8.32, enable 32 bit chars, disable stack for recursion

Line 
1NAME = pcre
2VERSION = 8.32
3GARTYPE = v2
4
5DESCRIPTION = Perl-compatible regular expression tools
6define BLURB
7  The PCRE library is a set of functions that implement regular
8  expression pattern matching using the same syntax and semantics
9  as Perl 5. PCRE has its own native API, as well as a set of
10  wrapper functions that correspond to the POSIX regular expression API.
11endef
12
13MASTER_SITES = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
14DISTFILES  = $(DISTNAME).tar.bz2
15PATCHFILES = 0001-Allow-norunpath-for-libtool.patch
16
17VENDOR_URL = http://www.pcre.org
18
19PACKAGES = CSWpcre
20CATALOGNAME_CSWpcre = pcre
21SPKG_DESC_CSWpcre = Perl-compatible regular expression tools
22RUNTIME_DEP_PKGS_CSWpcre += CSWlibreadline6
23RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre1
24RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre16-0
25RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre32-0
26RUNTIME_DEP_PKGS_CSWpcre += CSWlibbz2-1-0
27RUNTIME_DEP_PKGS_CSWpcre += CSWlibz1
28RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcreposix0
29
30PACKAGES += CSWlibpcre-dev
31SPKG_DESC_CSWlibpcre-dev = Development files for libpcre.so.1, libpcre16.so.0, libpcrecpp.so.0 and libpcreposix.so.0
32RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre1
33RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre16-0
34RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre32-0
35RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcreposix0
36RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcrecpp0
37PKGFILES_CSWlibpcre-dev += $(PKGFILES_DEVEL)
38PKGFILES_CSWlibpcre-dev += $(docdir)/.*
39OBSOLETED_BY_CSWlibpcre-dev += CSWpcre-devel
40# Leave these in the docs for now
41CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/pcre-config.txt
42CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/pcre.txt
43CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/README
44CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcre-config.html
45CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcresample.html
46CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcredemo.html
47
48# We don't want to depend on pcre
49CHECKPKG_OVERRIDES_CSWlibpcre-dev += missing-dependency|CSWpcre
50
51PACKAGES += CSWlibpcre1
52SPKG_DESC_CSWlibpcre1 = Perl-compatible regular expression tools, libpcre.so.1
53PKGFILES_CSWlibpcre1 = $(call pkgfiles_lib,libpcre.so.1)
54
55PACKAGES += CSWlibpcre16-0
56SPKG_DESC_CSWlibpcre16-0 = Perl-compatible regular expression tools, libpcre16.so.0
57PKGFILES_CSWlibpcre16-0 = $(call pkgfiles_lib,libpcre16.so.0)
58
59PACKAGES += CSWlibpcre32-0
60SPKG_DESC_CSWlibpcre32-0 = Perl-compatible regular expression tools, libpcre32.so.0
61PKGFILES_CSWlibpcre32-0 = $(call pkgfiles_lib,libpcre32.so.0)
62
63PACKAGES += CSWlibpcrecpp0
64SPKG_DESC_CSWlibpcrecpp0 += Perl-compatible regular expression tools, libpcrecpp.so.0
65PKGFILES_CSWlibpcrecpp0 += $(call pkgfiles_lib,libpcrecpp.so.0)
66RUNTIME_DEP_PKGS_CSWlibpcrecpp0 += CSWlibpcre1
67
68PACKAGES += CSWlibpcreposix0
69SPKG_DESC_CSWlibpcreposix0 += Perl-compatible regular expression tools, libpcreposix.so.0
70PKGFILES_CSWlibpcreposix0 += $(call pkgfiles_lib,libpcreposix.so.0)
71RUNTIME_DEP_PKGS_CSWlibpcreposix0 += CSWlibpcre1
72
73REINPLACE_USRLOCAL += doc/pcre-config.1
74REINPLACE_USRLOCAL += doc/pcresample.3
75
76BUILD64_LIBS_ONLY = 1
77
78EXTRA_LINKER_FLAGS = -norunpath
79
80CONFIGURE_ARGS  = $(DIRPATHS)
81CONFIGURE_ARGS += --enable-unicode-properties
82CONFIGURE_ARGS += --enable-pcregrep-libz
83CONFIGURE_ARGS += --enable-pcregrep-libbz2
84CONFIGURE_ARGS += --enable-pcretest-libreadline
85CONFIGURE_ARGS += --enable-pcre16
86CONFIGURE_ARGS += --enable-pcre32
87
88# The stack on Solaris is rather limited, disable stack allocation
89CONFIGURE_ARGS += --disable-stack-for-recursion
90
91# No JIT for Sparc, may try for x86 at some later time
92#CONFIGURE_ARGS += --enable-jit
93
94# This includes some alias things that don't work with the Sun linker
95BUILD_OVERRIDE_VARS += EXTRA_LIBPCRECPP_LDFLAGS
96
97# We need more than the default 8 MB of stack space
98# TEST_SCRIPTS = custom
99
100include gar/category.mk
101
102# The testcases need 'diff -u' which Solaris 8 diff does not have,
103# but we need Solaris strip, otherwise pcregrep is broken and 200m in size...
104PATH := /usr/ccs/bin:/opt/csw/gnu:$(PATH)
105
106test-custom:
107        @echo " ==> Running make $(TEST_TARGET) in $*"
108        cd $(WORKSRC) && /usr/bin/ulimit -s 32768 && /usr/bin/env -i $(TEST_ENV) $(MAKE) $(PARALLELMFLAGS) $(foreach TTT,$(TEST_OVERRIDE_VARS),$(TTT)="$(TEST_OVERRIDE_VAR_$(TTT))") $(foreach TTT,$(TEST_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $(OBJDIR) $(TEST_ARGS) $(TEST_TARGET)
109        @$(MAKECOOKIE)
110
Note: See TracBrowser for help on using the browser.