the Fink project is an effort to port
popular Unix programs to Mac OS X
Info4: <<
Package: pcre%type_pkg[-64bit]
Version: 8.21
Revision: 2
Type: -64bit (boolean)
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = -64bit ) i386
Distribution: ( %type_raw[-64bit] = -64bit ) 10.5, ( %type_raw[-64bit] = -64bit ) 10.6
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
BuildDepends: fink (>= 0.26.2)
Conflicts: pcre, pcre-64bit, libpcre1, libpcre1-64bit
Replaces: pcre-bin (<< 7.0-1), pcre, pcre-64bit, libpcre1, libpcre1-64bit
BuildDependsOnly: True
#Source: mirror:sourceforge:%{ni}/%{ni}-%v.tar.bz2
Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/%{ni}/%{ni}-%v.tar.bz2
Source-MD5: 0a7b592bea64b7aa7f4011fc7171a730
NoSetLDFLAGS: true
NoSetCPPFLAGS: true
PatchScript: perl -pi -e 's/-lreadline/-ledit/g' configure
ConfigureParams: <<
--libdir='${prefix}/%lib' \
--enable-shared \
--disable-static \
--enable-utf8 \
--enable-unicode-properties \
--disable-dependency-tracking \
--enable-pcregrep-libz \
--enable-pcregrep-libbz2 \
--enable-pcretest-libreadline
<<
UseMaxBuildJobs: true
SetCFLAGS: -Os
SetCXXFLAGS: -Os
GCC: 4.0
CompileScript: <<
#!/bin/bash -ev
# This bit enables stripping unused libs on 10.5 and later.
let version=`uname -r | cut -f 1 -d .`
if [ $version -ge 9 ]; then
export LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
fi
if [ "%type_raw[-64bit]" == "-64bit" ]; then
export CC="gcc -m64"
export CXX="g++ -m64"
fi
%{default_script}
<<
SplitOff2: <<
Package: %N-shlibs
Depends: ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Files: %lib/libpcre.*.dylib %lib/libpcreposix.*.dylib %lib/libpcrecpp.*.dylib
Shlibs: <<
%p/%lib/libpcre.0.dylib 1.0.0 %n (>= 3.9-2) %type_num[-64bit]
%p/%lib/libpcreposix.0.dylib 1.0.0 %n (>= 3.9-2) %type_num[-64bit]
%p/%lib/libpcrecpp.0.dylib 1.0.0 %n (>= 7.0-1001) %type_num[-64bit]
<<
DocFiles: AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS README
<<
SplitOff: <<
Package: %N-bin
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
Conflicts: pcre-bin, pcre-64bit-bin
Replaces: pcre-bin, pcre-64bit-bin
Files: bin/pcregrep bin/pcretest share/man/man1/pcregrep.1 share/man/man1/pcretest.1
DocFiles: AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS README
<<
InstallScript: <<
make install DESTDIR=%d
#No need for dependency_libs in .la files if not building static libs
perl -pi -e "s/dependency_libs=.*$/dependency_libs=''/" %i/%lib/*.la
<<
DocFiles: AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS README doc/*.txt HACKING
License: BSD
Description: Perl Compatible Regular Expressions Library
DescDetail: <<
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as PerlJ5. PCRE has
its own native API, as well as a set of wrapper functions that correspond
to the POSIX regular expression API and a C++ wrapper library.
Previous revisions by Christian Swinehart
<<
DescPackaging: <<
Any package which uses the C++ library libpcrecpp.dylib will need a
versioned dependency on pcre (>= 7.0-1001). Packages which don't use
the C++ library don't require the versioning.
Patch configure to link directly to the system's libedit instead of
libreadline which is a symlink to libedit. Avoids having dependent
packages accidentally linking to Fink's libreadline.
Disabled static libs and cleaned dependency_libs in *.la files.
<<
Homepage: http://www.pcre.org
Maintainer: Daniel Johnson
InfoTest: <<
TestScript: make check || exit 2
<<
<<