6d57666c04
make PHP extension runtime dependencies enforced by the USE_PHP=ext knob, not by the pear install. PR: ports/75166 Submitted by: Antônio Carlos Venâncio Júnior <antonio@php.net>
21 lines
413 B
Bash
21 lines
413 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# Register the package $1 in the port registry
|
|
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
PEAR=${PREFIX}/bin/pear
|
|
PEAR2=${PREFIX}/bin/pear2
|
|
PKGREGDIR=${PREFIX}/share/pear/packages/$1
|
|
|
|
if [ -f "${PEAR2}" ]; then
|
|
PEAR_INSTALLER=${PEAR2}
|
|
else
|
|
PEAR_INSTALLER=${PEAR}
|
|
fi
|
|
|
|
[ "x$1" = "x" ] && exit 1
|
|
if [ "x$2" = "xPOST-INSTALL" ]; then
|
|
${PEAR_INSTALLER} install -r -n -f ${PKGREGDIR}/package.xml
|
|
fi
|