1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/lang/perl5.12/pkg-install
Sergey Matveychuk 97ff74d771 - Create PREFIX/SITE_PERL/PERL_ARCH/auto dirrectory on install
Pointed out by:	kris
Approved by:	tobez
2004-11-25 11:01:14 +00:00

29 lines
632 B
Bash

#!/bin/sh
if [ "$2" != POST-INSTALL ] ; then
exit 0
fi
INCLUDEDIR=/usr/include
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.5/mach/auto
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.5/auto
install -d ${PKG_PREFIX}/lib/perl5/5.8.5/man/man3
cd ${INCLUDEDIR} && ${PKG_PREFIX}/bin/h2ph *.h machine/*.h sys/*.h
if [ -z "${OSVERSION}" ]; then
if [ -f /sbin/sysctl -a -x /sbin/sysctl ] ; then
osreldate=`/sbin/sysctl -n kern.osreldate`
else
osreldate=`/usr/sbin/sysctl -n kern.osreldate`
fi
else
osreldate=${OSVERSION}
fi
if [ $osreldate -ge 502100 ] ; then
${PKG_PREFIX}/bin/use.perl port
fi
exit 0