summaryrefslogtreecommitdiffstats
path: root/math/it++/Makefile
blob: 531ab3263d99529fe25d27332d244ae820096665 (plain)
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
# ex:ts=8
# Ports collection makefile for:	it++
# Date created:			Apr 3, 2003
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	it++
PORTVERSION=	3.7.1
PORTREVISION=	1
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	itpp
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Mathematical, signal processing and communication library

LIB_DEPENDS=	atlas.1:${PORTSDIR}/math/atlas

USE_REINPLACE=	yes
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	opt
USE_GMAKE=	yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
BROKEN=		"Does not compile on FreeBSD >= 5.x"
.endif

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
BROKEN=		"Does not compile on amd64 or ia64"
.endif

post-patch:
	@${REINPLACE_CMD} -e "s|sparc|__sparc__|" \
		-e "s|alpha|__alpha__|" ${WRKSRC}/include/base/machdep.h
	@${REINPLACE_CMD} -e "s|[$$]{it_dir}|${LOCALBASE}|g" ${WRKSRC}/configure

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/bin/it-config ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/lib/libit++.a ${PREFIX}/lib
	${CP} -R ${WRKSRC}/include ${PREFIX}/include/it++

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud