mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
104d2ab6ed
Reported by: maintainer
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
# Created by: Stefan A. Deutscher (sad@mailaps.org)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ndiff
|
|
PORTVERSION= 2.00
|
|
PORTREVISION= 4
|
|
CATEGORIES= math
|
|
MASTER_SITES= ftp://ftp.math.utah.edu/pub/misc/
|
|
|
|
MAINTAINER= luca.pizzamiglio@gmail.com
|
|
COMMENT= Compare files, ignoring numeric differences
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= desthack
|
|
GNU_CONFIGURE= yes
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
man/man1/${PORTNAME}.1.gz \
|
|
%%DATADIR%%/${PORTNAME}.awk
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
PORTDOCS= *.html *.pdf *.ps *.txt
|
|
|
|
OPTIONS_DEFINE= DOCS GMP
|
|
|
|
GMP_LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
|
|
GMP_CFLAGS= -I${LOCALBASE}/include
|
|
GMP_LDFLAGS= -L${LOCALBASE}/lib
|
|
GMP_CONFIGURE_ON= --with-gmp
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ! ${PORT_OPTIONS:MGMP}
|
|
.if ${ARCH} == sparc64
|
|
CONFIGURE_ARGS+= --with-long-double
|
|
.else
|
|
CONFIGURE_ARGS+= --with-double
|
|
.endif
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e \
|
|
's|$$(shrlibtop)/$$(PROGNAME)-$$(VERSION)|$${DESTDIR}${DATADIR}|; \
|
|
s|.*shrlibtop.*||; \
|
|
s|664|644|' ${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|