mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
40d510ac4f
. Use a better ALL_TARGET. Having check as part of it tried to install some files. Use check-runs to achieve the desired testing without doing any installation. . ${INSTALL_MAN} -> ${INSTALL_DATA} for doc installation (they aren't manual pages).
64 lines
1.4 KiB
Makefile
64 lines
1.4 KiB
Makefile
# New ports collection makefile for: ndiff
|
|
# Date created: 31 January 2004
|
|
# Whom: Stefan A. Deutscher (sad@mailaps.org)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ndiff
|
|
PORTVERSION= 2.00
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= ftp://ftp.math.utah.edu/pub/misc/
|
|
PKGNAMEPREFIX=
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Compare putatively similar files, ignoring small numeric differences
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_GMP)
|
|
.if ${OSVERSION} > 500023
|
|
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
.endif
|
|
CONFIGURE_ARGS= --with-gmp
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
.else
|
|
.if ${ARCH} == sparc64
|
|
CONFIGURE_ARGS= --with-long-double
|
|
.else
|
|
CONFIGURE_ARGS= --with-double
|
|
.endif
|
|
.endif
|
|
|
|
USE_REINPLACE= yes
|
|
GNU_CONFIGURE= yes
|
|
ALL_TARGET= all check-runs
|
|
|
|
MAN1= ndiff.1
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:g" ${WRKSRC}/Makefile.in
|
|
|
|
post-build:
|
|
@${ECHO_MSG} "If there were no errors in the above checks then type"
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} " ${MAKE} install"
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "to install ${PORTNAME}-${PORTVERSION}"
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.pdf ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ps ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|