#!/bin/sh
#
# $Id: InstallationCheck 53280 2009-07-02 11:08:06Z jmr@macports.org $
#
# Check for proper OS version for the package (meant to be used by the
# MacPorts port which replaces __DARWINVERS__ with the version of Darwin
# needed).

base_version=`uname -r | sed 's/\..*//'`
if [[ ${base_version} != __DARWINVERS__ ]]; then
   # This maps to message 16 in InstallationCheck.strings (Apple allows
   # 16-31 for custom messages); that message should also be customized
   # like this script
   exit 112
fi

if [[ -f /opt/local/etc/ports/dp_version ]]; then
   # message 17 in InstallationCheck.strings
   exit 113
fi

exit 0

