aboutsummaryrefslogtreecommitdiffstats
path: root/math/cln/Makefile
blob: 80ee7ceb24ed919b4fdeb8b6601fcf6930d6b03a (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
# ex:ts=8
# New ports collection makefile for:   cln
# Date created:                Fab 11, 2001
# Whom:                        Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   cln
PORTVERSION=    1.3.1
CATEGORIES= math devel
MASTER_SITES=   http://www.ginac.de/CLN/ \
        http://www.mirrors.wiretapped.net/security/cryptography/libraries/math/cln/ \
        ftp://ftpthep.physik.uni-mainz.de/pub/gnu/

MAINTAINER= araujo@FreeBSD.org
COMMENT=    Class Library for Numbers

LIB_DEPENDS=    gmp.8:${PORTSDIR}/math/libgmp4

USE_AUTOTOOLS=  libtool:22
USE_BZIP2=  yes
USE_GNOME=  gnomehack gnometarget pkgconfig
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-gmp
MAKE_ENV=   CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_LDCONFIG=   yes

INFO=       cln
MAN1=       pi.1

STRIP=      # none

CFLAGS+=    -fPIC
CPPFLAGS=   -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib

.include <bsd.port.pre.mk>

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

post-patch:
    @${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in

pre-build:
.if exists(${LOCALBASE}/lib/libcln.so.3)
BROKEN=     Does not compile when older version is installed. Please pkg_delete old cln first
.endif

.include <bsd.port.post.mk>