# pcre/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. Presently, "pcre" is a critical component. If this package is dele-
ted, or if a "rebuild" fails,  you may have  trouble building anything
else, because "grep" depends on this package,  and many "build" proce-
dures depend on "grep".

Future change: "makelac" should address issues of this type.  Specifi-
cally,  if critical components are  missing,  "makelac" should rebuild
them in the proper order.

#---------------------------------------------------------------------

2. If "pcre" is rebuilt,  older versions of  "pcre" libraries  may re-
main.  This happens  because it's not safe to delete  "pcre" libraries
prior to rebuilding the package.

Presently, the older versions need to be deleted manually (if and only
if  a  "build" is successfully. Care should be taken to avoid deleting
the wrong copies. Future change: This step should be automated.

#---------------------------------------------------------------------

[buildtimes]

00.01 hours (or 000.52 minutes) - HP EliteBook 8560w 32GB RAM
00.01 hours (or 000.78 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.01 hours (or 000.82 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.02 hours (or 001.17 minutes) - Toshiba Satellite C655 E-300 CPU 4GB
                                  RAM
00.06 hours (or 003.67 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB
                                  RAM

#---------------------------------------------------------------------

[settings]
build    = default
fortran  = disabled
license  = See "license*.txt" in installed tree
licfile  = COPYING
mstatic  = yes
nls      = disabled
purge    = no                   # This is a critical package
uscheck  = C210615, R210615, active

#---------------------------------------------------------------------

[depends]
actools
coreutils
grep
sed

#---------------------------------------------------------------------

[configure]
MANBASE=$PKGDIR_PROD/man
mkdir -p $MANBASE

bash ./configure \
    --prefix=$PKGDIR_PROD        \
    --build=$LACARCHBUILD        \
    --host=$LACARCHHOST          \
    --enable-jit                 \
    --enable-pcre8               \
    --enable-pcre16              \
    --enable-pcre32              \
    --enable-shared=yes          \
    --enable-static=no           \
    --enable-unicode-properties  \
    --enable-utf                 \
    --mandir=$MANBASE            \
    --with-pic                   \
    --with-match-limit-recursion=8192

#---------------------------------------------------------------------

[postbuild]
LIBDIR=$PKGDIR_PROD/lib
mkdir -p $LIBDIR
rm -fr $PKGDIR_PROD/share/doc
rmdir  $PKGDIR_PROD/share

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = http://packages.debian.org/unstable/source/pcre3
url_home    = http://www.pcre.org/

url_lfs     = http://www.linuxfromscratch.org/blfs/view/stable/\
general/genlib.html#pcre

url_tarball = https://sourceforge.net/projects/pcre/files/pcre/\
8.45/pcre-8.45.tar.bz2

#---------------------------------------------------------------------

[history]
170810 Updated from 8.40 to 8.41
180320 Updated to 8.42
190223 Updated to 8.43
201224 Updated to 8.44
210615 Updated to 8.45