1999-01-26 03:47:10 +01:00
|
|
|
# New ports collection makefile for: PARI
|
|
|
|
# Date created: 19 January 1999
|
|
|
|
# Whom: Yoshiaki UCHIKAWA <yoshiaki@kt.rim.or.jp>
|
1997-06-21 22:47:39 +02:00
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1997-06-21 22:47:39 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 09:20:58 +02:00
|
|
|
PORTNAME= pari
|
2006-04-18 12:00:01 +02:00
|
|
|
PORTVERSION= ${MAJOR_VERSION}.${MINOR_VERSION}.${REV_VERSION}
|
2009-05-14 13:53:13 +02:00
|
|
|
PORTREVISION= 2
|
1997-06-21 22:47:39 +02:00
|
|
|
CATEGORIES= math
|
2006-04-18 12:00:01 +02:00
|
|
|
MASTER_SITES= http://pari.math.u-bordeaux.fr/pub/pari/unix/
|
|
|
|
DISTNAME= pari-${MAJOR_VERSION}.${MINOR_VERSION}.${REV_VERSION}
|
1997-06-21 22:47:39 +02:00
|
|
|
|
2006-09-06 03:56:59 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-06-06 16:47:49 +02:00
|
|
|
COMMENT= Mathematics library and advanced calculator package
|
1997-06-21 22:47:39 +02:00
|
|
|
|
2009-05-14 13:53:13 +02:00
|
|
|
LIB_DEPENDS= gmp.8:${PORTSDIR}/math/libgmp4
|
2009-03-14 08:12:04 +01:00
|
|
|
|
2007-10-13 16:09:33 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-01-16 18:33:20 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= Configure
|
2009-06-04 11:51:16 +02:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --share-prefix=${PREFIX}/share --with-gmp=${LOCALBASE}
|
1999-01-26 03:47:10 +01:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
MAKE_ARGS= gp
|
2006-04-18 12:00:01 +02:00
|
|
|
PLIST_SUB= MAJOR_VERSION=${MAJOR_VERSION} MINOR_VERSION=${MINOR_VERSION} REV_VERSION=${REV_VERSION}
|
|
|
|
|
|
|
|
MAJOR_VERSION= 2
|
2006-06-05 23:42:13 +02:00
|
|
|
MINOR_VERSION= 3
|
2008-09-01 11:30:38 +02:00
|
|
|
REV_VERSION= 4
|
1997-06-21 22:47:39 +02:00
|
|
|
|
2006-06-05 23:42:13 +02:00
|
|
|
MAN1= gp.1 gphelp.1 gp-${MAJOR_VERSION}.${MINOR_VERSION}.1 tex2mail.1
|
2000-01-14 20:59:47 +01:00
|
|
|
MLINKS= gp.1 pari.1
|
1997-06-21 22:47:39 +02:00
|
|
|
|
2004-03-07 06:45:25 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-18 12:00:01 +02:00
|
|
|
HAVE_EMACS!= ${WHICH} emacs || ${ECHO} nope
|
2006-06-05 23:42:13 +02:00
|
|
|
HAVE_PERL!= ${WHICH} perl || ${ECHO} nope
|
2008-09-01 11:30:38 +02:00
|
|
|
|
2006-04-18 12:00:01 +02:00
|
|
|
.if ${HAVE_EMACS} != "nope"
|
2008-09-01 11:30:38 +02:00
|
|
|
PLIST_SUB+= EMACS=""
|
2006-06-05 23:42:13 +02:00
|
|
|
.else
|
2008-09-01 11:30:38 +02:00
|
|
|
PLIST_SUB+= EMACS="@comment "
|
2006-06-05 23:42:13 +02:00
|
|
|
.endif
|
2008-09-01 11:30:38 +02:00
|
|
|
|
2006-06-05 23:42:13 +02:00
|
|
|
.if ${HAVE_PERL} != "nope"
|
2008-09-01 11:30:38 +02:00
|
|
|
PLIST_SUB+= PERL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PERL="@comment "
|
2004-02-17 13:59:08 +01:00
|
|
|
.endif
|
2003-11-22 01:42:29 +01:00
|
|
|
|
2008-09-01 11:30:38 +02:00
|
|
|
post-install:
|
|
|
|
@if [ -L ${PREFIX}/man/man1/pari.1 ]; then \
|
|
|
|
${RM} -f ${PREFIX}/man/man1/pari.1 ;\
|
|
|
|
fi
|
|
|
|
|
2004-03-07 06:45:25 +01:00
|
|
|
.include <bsd.port.post.mk>
|