mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
112
dev-libs/libpcre2/libpcre2-10.21.recipe
Normal file
112
dev-libs/libpcre2/libpcre2-10.21.recipe
Normal file
@@ -0,0 +1,112 @@
|
||||
SUMMARY="Perl5 Compatible Regular Expressions"
|
||||
DESCRIPTION="The PCRE2 library is a set of functions that implement regular expression \
|
||||
pattern matching using the same syntax and semantics as Perl 5. PCRE2 has its \
|
||||
own native API, as well as a set of wrapper functions that correspond to the \
|
||||
POSIX regular expression API. The PCRE2 library is free, even for building \
|
||||
proprietary software.
|
||||
PCRE2 is a re-working of the original PCRE library to provide an entirely new \
|
||||
API."
|
||||
HOMEPAGE="http://www.pcre.org/"
|
||||
COPYRIGHT="1997-2016 University of Cambridge"
|
||||
LICENSE="PCRE"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="c66a17509328a7251782691093e75ede7484a203ebc6bed3c08122b092ccd4e0"
|
||||
SOURCE_DIR="pcre2-$portVersion"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
libpcre2${secondaryArchSuffix} = $portVersion compat >= 10
|
||||
lib:libpcre2_8${secondaryArchSuffix} = $portVersion compat >= 10
|
||||
lib:libpcre2_16${secondaryArchSuffix} = $portVersion compat >= 10
|
||||
lib:libpcre2_32${secondaryArchSuffix} = $portVersion compat >= 10
|
||||
lib:libpcre2_posix${secondaryArchSuffix} = $portVersion compat >= 10
|
||||
cmd:pcre2grep${secondaryArchSuffix}
|
||||
cmd:pcre2test${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix}
|
||||
lib:libz${secondaryArchSuffix}
|
||||
lib:libbz2${secondaryArchSuffix}
|
||||
lib:libedit${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libpcre2${secondaryArchSuffix}_devel = $portVersion compat >= 10
|
||||
cmd:pcre2_config${secondaryArchSuffix} = $portVersion compat >= 10
|
||||
devel:libpcre2${secondaryArchSuffix}
|
||||
devel:libpcre2posix${secondaryArchSuffix}
|
||||
devel:libpcre2_8${secondaryArchSuffix}
|
||||
devel:libpcre2_16${secondaryArchSuffix}
|
||||
devel:libpcre2_32${secondaryArchSuffix}
|
||||
devel:libpcre2_posix${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
libpcre2${secondaryArchSuffix} == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libz${secondaryArchSuffix}
|
||||
devel:libbz2${secondaryArchSuffix}
|
||||
devel:libedit${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc${secondaryArchSuffix}
|
||||
cmd:make
|
||||
cmd:ld${secondaryArchSuffix}
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing
|
||||
runConfigure ./configure \
|
||||
--with-pic \
|
||||
--enable-pcre2-16 \
|
||||
--enable-pcre2-32 \
|
||||
--enable-jit \
|
||||
--enable-pcre2grep-libz \
|
||||
--enable-pcre2grep-libbz2 \
|
||||
--enable-pcre2test-libedit \
|
||||
#--enable-pcre2test-libreadline \
|
||||
#--enable-debug
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# prepare develop/lib
|
||||
echo prepare develop/lib
|
||||
prepareInstalledDevelLibs libpcre2-8 libpcre2-16 libpcre2-32 libpcre2-posix
|
||||
fixPkgconfig
|
||||
|
||||
# fix pcre-config
|
||||
echo fix pcre-config
|
||||
fixDevelopLibDirReferences $binDir/pcre2-config
|
||||
|
||||
# devel package
|
||||
echo creating devel package
|
||||
packageEntries devel \
|
||||
$binDir/pcre2-config \
|
||||
$developDir \
|
||||
$manDir/man3
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
83
dev-libs/libpcre2/licenses/PCRE
Normal file
83
dev-libs/libpcre2/licenses/PCRE
Normal file
@@ -0,0 +1,83 @@
|
||||
PCRE2 LICENCE
|
||||
-------------
|
||||
|
||||
PCRE2 is a library of functions to support regular expressions whose syntax
|
||||
and semantics are as close as possible to those of the Perl 5 language.
|
||||
|
||||
Release 10 of PCRE2 is distributed under the terms of the "BSD" licence, as
|
||||
specified below. The documentation for PCRE2, supplied in the "doc"
|
||||
directory, is distributed under the same terms as the software itself. The data
|
||||
in the testdata directory is not copyrighted and is in the public domain.
|
||||
|
||||
The basic library functions are written in C and are freestanding. Also
|
||||
included in the distribution is a just-in-time compiler that can be used to
|
||||
optimize pattern matching. This is an optional feature that can be omitted when
|
||||
the library is built.
|
||||
|
||||
|
||||
THE BASIC LIBRARY FUNCTIONS
|
||||
---------------------------
|
||||
|
||||
Written by: Philip Hazel
|
||||
Email local part: ph10
|
||||
Email domain: cam.ac.uk
|
||||
|
||||
University of Cambridge Computing Service,
|
||||
Cambridge, England.
|
||||
|
||||
Copyright (c) 1997-2016 University of Cambridge
|
||||
All rights reserved.
|
||||
|
||||
|
||||
PCRE2 JUST-IN-TIME COMPILATION SUPPORT
|
||||
--------------------------------------
|
||||
|
||||
Written by: Zoltan Herczeg
|
||||
Email local part: hzmester
|
||||
Emain domain: freemail.hu
|
||||
|
||||
Copyright(c) 2010-2016 Zoltan Herczeg
|
||||
All rights reserved.
|
||||
|
||||
|
||||
STACK-LESS JUST-IN-TIME COMPILER
|
||||
--------------------------------
|
||||
|
||||
Written by: Zoltan Herczeg
|
||||
Email local part: hzmester
|
||||
Emain domain: freemail.hu
|
||||
|
||||
Copyright(c) 2009-2016 Zoltan Herczeg
|
||||
All rights reserved.
|
||||
|
||||
|
||||
THE "BSD" LICENCE
|
||||
-----------------
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the University of Cambridge nor the names of any
|
||||
contributors may be used to endorse or promote products derived from this
|
||||
software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
End
|
||||
Reference in New Issue
Block a user