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

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

Revision 16992, 4.1 KB (checked in by dmichelsen, 4 months ago)

pcre/trunk: Update to 8.30, move to new libpcre16-0 library for 16 bit chars, introduce libpcre.so.1, drop pcre_rt

Line 
1NAME = pcre
2VERSION = 8.30
3CATEGORIES = lib
4GARTYPE = v2
5
6DESCRIPTION = Perl-compatible regular expression tools
7define BLURB
8  The PCRE library is a set of functions that implement regular
9  expression pattern matching using the same syntax and semantics
10  as Perl 5. PCRE has its own native API, as well as a set of
11  wrapper functions that correspond to the POSIX regular expression API.
12endef
13
14MASTER_SITES = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
15DISTFILES  = $(DISTNAME).tar.bz2
16PATCHFILES = 0001-Allow-norunpath-for-libtool.patch
17
18# Use patch until this is fixed:
19#   http://bugs.exim.org/show_bug.cgi?id=1206
20PATCHFILES += 0002-Remove-bashism.patch
21
22VENDOR_URL = http://www.pcre.org
23
24PACKAGES = CSWpcre
25CATALOGNAME_CSWpcre = pcre
26SPKG_DESC_CSWpcre = Perl-compatible regular expression tools
27RUNTIME_DEP_PKGS_CSWpcre += CSWlibreadline6
28RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre1
29RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre16-0
30RUNTIME_DEP_PKGS_CSWpcre += CSWlibbz2-1-0
31RUNTIME_DEP_PKGS_CSWpcre += CSWlibz1
32RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcreposix0
33
34PACKAGES += CSWlibpcre-dev
35SPKG_DESC_CSWlibpcre-dev = Development files for libpcre.so.1, libpcre16.so.0, libpcrecpp.so.0 and libpcreposix.so.0
36RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre1
37RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre16-0
38RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcreposix0
39RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcrecpp0
40PKGFILES_CSWlibpcre-dev += $(PKGFILES_DEVEL)
41PKGFILES_CSWlibpcre-dev += $(docdir)/.*
42OBSOLETED_BY_CSWlibpcre-dev += CSWpcre-devel
43# Leave these in the docs for now
44CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/pcre-config.txt
45CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/pcre.txt
46CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/README
47CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcre-config.html
48CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcresample.html
49CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcredemo.html
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 += CSWlibpcrecpp0
60SPKG_DESC_CSWlibpcrecpp0 += Perl-compatible regular expression tools, libpcrecpp.so.0
61PKGFILES_CSWlibpcrecpp0 += $(call pkgfiles_lib,libpcrecpp.so.0)
62RUNTIME_DEP_PKGS_CSWlibpcrecpp0 += CSWlibpcre0
63
64PACKAGES += CSWlibpcreposix0
65SPKG_DESC_CSWlibpcreposix0 += Perl-compatible regular expression tools, libpcreposix.so.0
66PKGFILES_CSWlibpcreposix0 += $(call pkgfiles_lib,libpcreposix.so.0)
67RUNTIME_DEP_PKGS_CSWlibpcreposix0 += CSWlibpcre0
68
69REINPLACE_USRLOCAL += doc/pcre-config.1
70REINPLACE_USRLOCAL += doc/pcresample.3
71
72BUILD64_LIBS_ONLY = 1
73
74EXTRA_LINKER_FLAGS = -norunpath
75
76CONFIGURE_ARGS  = $(DIRPATHS)
77CONFIGURE_ARGS += --enable-unicode-properties
78CONFIGURE_ARGS += --enable-pcregrep-libz
79CONFIGURE_ARGS += --enable-pcregrep-libbz2
80CONFIGURE_ARGS += --enable-pcretest-libreadline
81CONFIGURE_ARGS += --enable-pcre16
82
83# No JIT for Sparc, may try for x86 at some later time
84#CONFIGURE_ARGS += --enable-jit
85
86# We need more than the default 8 MB of stack space
87TEST_SCRIPTS = custom
88
89include gar/category.mk
90
91# The testcases need 'diff -u' which Solaris 8 diff does not have,
92# but we need Solaris strip, otherwise pcregrep is broken and 200m in size...
93PATH := /usr/ccs/bin:/opt/csw/gnu:$(PATH)
94
95test-custom:
96        @echo " ==> Running make $(TEST_TARGET) in $*"
97        cd $(WORKSRC) && /usr/bin/ulimit -s 16384 && /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)
98        @$(MAKECOOKIE)
99
Note: See TracBrowser for help on using the browser.