freebsd-ports/lang/perl5.10/pkg-install
Anton Berezin ceb8fe7d89 1. Update to 5.8.4.
2. Make this port respect Makefile.local.
3. Transfer manpages to Makefile.man.
4. Move manpages for modules, included into distribution, into
   lib/perl5/PERL_VER/perl/man/man3, to eliminate file conflicts
   with p5 ports for modules included with perl.
5. Use PREFIX/SITE_PERL_REL instead of SITE_PERL in the Makefile.
6. Switch to bzipped sources.
7. Other small adjustments.

PR:	65925, 66096, 67205

Submitted by:	foxfair (1), Charles Swiger <chuck@pkix.net> (1), krion (3)
Reported by:	Roy Badami <roy@gnomon.org.uk> (2)
2004-05-30 23:13:56 +00:00

28 lines
627 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.4/mach
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.4/auto
install -d ${PKG_PREFIX}/lib/perl5/5.8.4/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