| 1 | NAME = pcre |
|---|
| 2 | VERSION = 8.32 |
|---|
| 3 | GARTYPE = v2 |
|---|
| 4 | |
|---|
| 5 | DESCRIPTION = Perl-compatible regular expression tools |
|---|
| 6 | define 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. |
|---|
| 11 | endef |
|---|
| 12 | |
|---|
| 13 | MASTER_SITES = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ |
|---|
| 14 | DISTFILES = $(DISTNAME).tar.bz2 |
|---|
| 15 | PATCHFILES = 0001-Allow-norunpath-for-libtool.patch |
|---|
| 16 | |
|---|
| 17 | VENDOR_URL = http://www.pcre.org |
|---|
| 18 | |
|---|
| 19 | PACKAGES = CSWpcre |
|---|
| 20 | CATALOGNAME_CSWpcre = pcre |
|---|
| 21 | SPKG_DESC_CSWpcre = Perl-compatible regular expression tools |
|---|
| 22 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibreadline6 |
|---|
| 23 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre1 |
|---|
| 24 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre16-0 |
|---|
| 25 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre32-0 |
|---|
| 26 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibbz2-1-0 |
|---|
| 27 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibz1 |
|---|
| 28 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcreposix0 |
|---|
| 29 | |
|---|
| 30 | PACKAGES += CSWlibpcre-dev |
|---|
| 31 | SPKG_DESC_CSWlibpcre-dev = Development files for libpcre.so.1, libpcre16.so.0, libpcrecpp.so.0 and libpcreposix.so.0 |
|---|
| 32 | RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre1 |
|---|
| 33 | RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre16-0 |
|---|
| 34 | RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre32-0 |
|---|
| 35 | RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcreposix0 |
|---|
| 36 | RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcrecpp0 |
|---|
| 37 | PKGFILES_CSWlibpcre-dev += $(PKGFILES_DEVEL) |
|---|
| 38 | PKGFILES_CSWlibpcre-dev += $(docdir)/.* |
|---|
| 39 | OBSOLETED_BY_CSWlibpcre-dev += CSWpcre-devel |
|---|
| 40 | # Leave these in the docs for now |
|---|
| 41 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/pcre-config.txt |
|---|
| 42 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/pcre.txt |
|---|
| 43 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/README |
|---|
| 44 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcre-config.html |
|---|
| 45 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcresample.html |
|---|
| 46 | CHECKPKG_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 |
|---|
| 49 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += missing-dependency|CSWpcre |
|---|
| 50 | |
|---|
| 51 | PACKAGES += CSWlibpcre1 |
|---|
| 52 | SPKG_DESC_CSWlibpcre1 = Perl-compatible regular expression tools, libpcre.so.1 |
|---|
| 53 | PKGFILES_CSWlibpcre1 = $(call pkgfiles_lib,libpcre.so.1) |
|---|
| 54 | |
|---|
| 55 | PACKAGES += CSWlibpcre16-0 |
|---|
| 56 | SPKG_DESC_CSWlibpcre16-0 = Perl-compatible regular expression tools, libpcre16.so.0 |
|---|
| 57 | PKGFILES_CSWlibpcre16-0 = $(call pkgfiles_lib,libpcre16.so.0) |
|---|
| 58 | |
|---|
| 59 | PACKAGES += CSWlibpcre32-0 |
|---|
| 60 | SPKG_DESC_CSWlibpcre32-0 = Perl-compatible regular expression tools, libpcre32.so.0 |
|---|
| 61 | PKGFILES_CSWlibpcre32-0 = $(call pkgfiles_lib,libpcre32.so.0) |
|---|
| 62 | |
|---|
| 63 | PACKAGES += CSWlibpcrecpp0 |
|---|
| 64 | SPKG_DESC_CSWlibpcrecpp0 += Perl-compatible regular expression tools, libpcrecpp.so.0 |
|---|
| 65 | PKGFILES_CSWlibpcrecpp0 += $(call pkgfiles_lib,libpcrecpp.so.0) |
|---|
| 66 | RUNTIME_DEP_PKGS_CSWlibpcrecpp0 += CSWlibpcre1 |
|---|
| 67 | |
|---|
| 68 | PACKAGES += CSWlibpcreposix0 |
|---|
| 69 | SPKG_DESC_CSWlibpcreposix0 += Perl-compatible regular expression tools, libpcreposix.so.0 |
|---|
| 70 | PKGFILES_CSWlibpcreposix0 += $(call pkgfiles_lib,libpcreposix.so.0) |
|---|
| 71 | RUNTIME_DEP_PKGS_CSWlibpcreposix0 += CSWlibpcre1 |
|---|
| 72 | |
|---|
| 73 | REINPLACE_USRLOCAL += doc/pcre-config.1 |
|---|
| 74 | REINPLACE_USRLOCAL += doc/pcresample.3 |
|---|
| 75 | |
|---|
| 76 | BUILD64_LIBS_ONLY = 1 |
|---|
| 77 | |
|---|
| 78 | EXTRA_LINKER_FLAGS = -norunpath |
|---|
| 79 | |
|---|
| 80 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 81 | CONFIGURE_ARGS += --enable-unicode-properties |
|---|
| 82 | CONFIGURE_ARGS += --enable-pcregrep-libz |
|---|
| 83 | CONFIGURE_ARGS += --enable-pcregrep-libbz2 |
|---|
| 84 | CONFIGURE_ARGS += --enable-pcretest-libreadline |
|---|
| 85 | CONFIGURE_ARGS += --enable-pcre16 |
|---|
| 86 | CONFIGURE_ARGS += --enable-pcre32 |
|---|
| 87 | |
|---|
| 88 | # The stack on Solaris is rather limited, disable stack allocation |
|---|
| 89 | CONFIGURE_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 |
|---|
| 95 | BUILD_OVERRIDE_VARS += EXTRA_LIBPCRECPP_LDFLAGS |
|---|
| 96 | |
|---|
| 97 | # We need more than the default 8 MB of stack space |
|---|
| 98 | # TEST_SCRIPTS = custom |
|---|
| 99 | |
|---|
| 100 | include 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... |
|---|
| 104 | PATH := /usr/ccs/bin:/opt/csw/gnu:$(PATH) |
|---|
| 105 | |
|---|
| 106 | test-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 | |
|---|