aboutsummaryrefslogtreecommitdiff
path: root/math/pari/Makefile
blob: 533610486d80128664b66f6953d533da674f565d (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:	PARI
# Date created:		19 January 1999
# Whom:	Yoshiaki UCHIKAWA <yoshiaki@kt.rim.or.jp>
#
# $FreeBSD$
#

PORTNAME=	pari
PORTVERSION=	${MAJOR_VERSION}.${MINOR_VERSION}.${REV_VERSION}
PORTREVISION=	1
CATEGORIES=	math
MASTER_SITES=	http://pari.math.u-bordeaux.fr/pub/pari/unix/
DISTNAME=	pari-${MAJOR_VERSION}.${MINOR_VERSION}.${REV_VERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Mathematics library and advanced calculator package

LIB_DEPENDS=	gmp.10:${PORTSDIR}/math/gmp

MAKE_JOBS_UNSAFE=	yes

USE_LDCONFIG=	yes
HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	Configure
CONFIGURE_ARGS=	--prefix=${PREFIX} --share-prefix=${PREFIX}/share --with-gmp=${LOCALBASE}

MAKE_ARGS=	gp
PLIST_SUB=	MAJOR_VERSION=${MAJOR_VERSION} MINOR_VERSION=${MINOR_VERSION} REV_VERSION=${REV_VERSION}

MAJOR_VERSION=	2
MINOR_VERSION=	3
REV_VERSION=	5

MAN1=		gp.1 gphelp.1 gp-${MAJOR_VERSION}.${MINOR_VERSION}.1 tex2mail.1
MLINKS=		gp.1 pari.1

.include <bsd.port.pre.mk>

HAVE_EMACS!=	${WHICH} emacs || ${ECHO} nope
HAVE_PERL!=	${WHICH} perl || ${ECHO} nope

.if ${HAVE_EMACS} != "nope"
PLIST_SUB+=	EMACS=""
.else
PLIST_SUB+=	EMACS="@comment "
.endif

.if ${HAVE_PERL} != "nope"
PLIST_SUB+=	PERL=""
.else
PLIST_SUB+=	PERL="@comment "
.endif

post-install:
	@if [ -L ${PREFIX}/man/man1/pari.1 ]; then \
		${RM} -f ${PREFIX}/man/man1/pari.1 ;\
	fi

.include <bsd.port.post.mk>