# USA
#
# Modification : If you modify this file please consider whether your
-# changes ought to be passed back to the macsetup module.
+# changes ought to be passed back to the OSXPackageBuilder
+# module.
#
# Use the common script to locate the directory containing Privoxy's source ($SOURCEDIR)
echo ""
cp -v ../${SOURCE_DIR}/privoxy.1 pkg\ content/usr/local/share/man/man1
+# Optionally copy the PCRE libraries
+if [ "$1" == "-pcre" ]; then
+ echo ""
+ echo ""
+ echo "Copy the external PCRE libraries"
+ echo ""
+ mkdir pkg\ content/usr/local/lib
+ cp -v /usr/local/lib/libpcre* pkg\ content/usr/local/lib
+ mkdir pkg\ content/usr/local/lib/pkgconfig
+ cp -v /usr/local/lib/pkgconfig/libpcre* pkg\ content/usr/local/lib/pkgconfig
+fi
+
# Remove CVS administration files
echo ""
echo ""