DEPENDS = virtual/libc openssl

SRC_URI = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${P}.tar.gz \
	  file://${FILESDIR}/configure.patch;patch=1
S = ${WORKDIR}/${P}

inherit autotools

EXTRA_OECONF = --with-openssl-libdir=${STAGING_LIBDIR} \
	       --with-openssl-incdir=${STAGING_DIR}/target/include/openssl \
	       --program-prefix=
CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"