pkgsrc/net/ntp4/Makefile
2004-02-03 23:04:41 +00:00

52 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.31 2004/02/03 23:04:41 reed Exp $
#
DISTNAME= ntp-4.2.0
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/
MAINTAINER= fredb@NetBSD.org
HOMEPAGE= http://www.ntp.org/
COMMENT= Network Time Protocol Version 4
GNU_CONFIGURE= YES
USE_PERL5= build
#USE_BUILDLINK2=YES ***FIXME: Causes lots of "missing prototype" warnings.***
CONFIGURE_ENV+= PATH_PERL="${PERL5}" ac_cv_header_sys_soundcard_h=no
DOCDIR= ${PREFIX}/share/doc/html
EXAMPLESDIR= ${PREFIX}/share/examples
ALL_NTP_DOCS= ${DOCDIR}/ntp4 ${EXAMPLESDIR}/ntp4
post-install:
(cd ${WRKSRC} && \
${PAX} -rw -pe -s "/html/ntp4/" html ${DOCDIR}; \
${PAX} -rw -pe -s "/conf/ntp4/" conf ${EXAMPLESDIR}); \
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ALL_NTP_DOCS}; \
${FIND} ${ALL_NTP_DOCS} -type d -print0 | ${XARGS} -0 ${CHMOD} ${PKGDIRMODE}; \
${FIND} ${ALL_NTP_DOCS} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE};
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
#
# Use POSIX nanosecond timers when available, but not otherwise.
#
LOWER_OPSYS_VERSUFFIX= 1
MACHINE_GNU_PLATFORM= ${LOWER_ARCH}--${LOWER_OPSYS}${LOWER_OPSYS_VERSUFFIX}
. for __wildcard__ in 1.6[N-Z]* 2*
. if ${OS_VERSION:M${__wildcard__}} != ""
LOWER_OPSYS_VERSUFFIX= 2
. endif
. endfor
#
# Don't pick up libwww's -lmd5, until buildlink can be fixed.
#
CONFIGURE_ENV+= ac_cv_lib_md5_MD5Init=no
.endif
.include "../../security/openssl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"