1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  22 # Copyright (c) 2014, Joyent, Inc.
  23 #
  24 
  25 VER =   ntp-dev-4.2.7p446
  26 
  27 include ../Makefile.defs
  28 
  29 AUTOCONF_OPTS += \
  30         --prefix=/usr \
  31         --mandir=/usr/man \
  32         --bindir=/usr/sbin \
  33         --with-binsubdir=sbin \
  34         --libexecdir=/usr/sbin \
  35         --sysconfdir=/etc/inet \
  36         --with-perl=$(PATH_PERL) \
  37         --with-perllibdir=$(PERLLIBDIR) \
  38         --enable-all-clocks \
  39         --enable-debugging \
  40         --enable-debug-timing \
  41         --disable-optional-args \
  42         --enable-parse-clocks \
  43         --enable-ignore-dns-errors \
  44         --without-ntpsnmpd \
  45         --without-lineeditlibs \
  46         --with-crypto=sunw \
  47         --disable-getifaddrs
  48 
  49 CFLAGS +=       -O2
  50 
  51 AUTOCONF_ENV += \
  52         LD_OPTIONS="$(LDFLAGS)" \
  53         DESTDIR="$(DESTDIR)"
  54 
  55 PATCHSTRIP =    0
  56 PATCHES =       Patches/*
  57 
  58 include ../Makefile.targ
  59 
  60 all: all_autoconf
  61 
  62 install: all
  63         (cd $(VER.32); env - $(AUTOCONF_ENV) PATH=$(PATH) gmake $(install_PARALLEL) install)
  64         (env - $(AUTOCONF_ENV) ./install-ntp)