aboutsummaryrefslogtreecommitdiffstats
path: root/math/ndiff/Makefile
blob: 5801a223f881c6f47523c121b51a573ff806dd41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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

GNU_CONFIGURE=  yes
ALL_TARGET= all check

MAN1=       ndiff.1
.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

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_MAN} ${WRKSRC}/${PORTNAME}.pdf  ${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.ps   ${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
.endif

.include <bsd.port.post.mk>