Magellan Linux

Contents of /smage/branches/alx08x-unstable/core/libpcre2/libpcre2-10.42-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17294 - (show annotations) (download)
Wed Nov 22 10:27:56 2023 UTC (6 months, 3 weeks ago) by niro
File size: 1156 byte(s)
-release branches/alx08x-unstable
1 # $Id$
2
3 PNAME="libpcre2"
4 PVER="10.42"
5 PBUILD="r2"
6
7 PCAT="dev-libs"
8
9 DESCRIPTION="PCRE - Perl Compatible Regular Expressions."
10 HOMEPAGE="http://www.pcre.org/"
11
12 # alx: the libs only need glibc
13 DEPEND=">= virtual/glibc"
14 ALX_LIB32_DEPEND=">= virtual/glibc-lib32"
15
16 SDEPEND=">= sys-libs/libstdc++-dev-13.1
17 >= sys-libs/readline-dev-8.2
18 >= sys-libs/zlib-dev-1.2.13
19 >= app-arch/bzip2-dev-1"
20
21 SRCFILE="${PNAME/lib/}-${PVER}.tar.bz2"
22 SRCDIR="${BUILDDIR}/${PNAME/lib/}-${PVER}"
23
24 ALX_PKG_KEEP="usr/$(MABI=m64 mlibdir)/*.so.*"
25 ALX_LIB32_PKG_KEEP="usr/$(MABI=m32 mlibdir)/*.so.*"
26 sminclude multilib mbuild lib32-split alx-split
27
28 SRC_URI=(
29 https://github.com/PCRE2Project/${PNAME/lib/}/releases/download/${PNAME/lib/}-${PVER}/${SRCFILE}
30 https://ftp.pcre.org/pub/pcre/${SRCFILE}
31 mirror://${PNAME}/${SRCFILE}
32 )
33
34 UP2DATE="updatecmd https://github.com/PCRE2Project/${PNAME/lib/}/tags | grep '${PNAME/lib/}-' | grep -v 'RC' | highesttarball gz"
35
36 src_compile()
37 {
38 cd ${SRCDIR}
39
40 mconfigure \
41 --enable-pcre2-16 \
42 --enable-pcre2-32 \
43 --enable-jit \
44 --enable-pcre2grep-libz \
45 --enable-pcre2grep-libbz2 \
46 --enable-pcre2test-libreadline \
47 || die
48
49 mmake || die
50 }