summaryrefslogtreecommitdiffstats
path: root/math/asir2000/Makefile
blob: 385e35f0ebf01f5f8f73afbfcfe3a7b76b50b34d (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:	asir
# Date created:		30 Aug 2001
# Whom:			Tomokatsu SAITO <saito@asir.org>
#
# $FreeBSD$
#

PORTNAME=	asir
PORTVERSION=	20050603
CATEGORIES=	math
MASTER_SITES=	ftp://ftp.jssac.org/pub/distfiles/asir/ \
		ftp://ftp.asir.org/pub/asir/src/
DISTFILES=	${ASIR_SRC} ${ASIR_DOC}
EXTRACT_ONLY=	${ASIR_SRC}

MAINTAINER=	saito@asir.org
COMMENT=	The system Risa/Asir is a general computer algebra system

LIB_DEPENDS=	pari-2.2:${PORTSDIR}/math/pari-devel

GNU_CONFIGURE=	yes
USE_AUTOCONF_VER=	253
USE_AUTOMAKE_VER=	15
USE_XLIB=	yes
CONFIGURE_ARGS=	--enable-shared --enable-plot --enable-fep --enable-interval --with-pari
ASIR_SRC_VERSION= 20050603
ASIR_DOC_VERSION=	20050603
ASIR_SRC=	asir-${ASIR_DOC_VERSION}.tar.gz
ASIR_DOC=	asirdoc-${ASIR_DOC_VERSION}.tar.gz
MAN1=		asir.1
PREFIX?=	${LOCALBASE}
WRKSRC=		${WRKDIR}/asir2000

LIB_DATA=	alpi bfct bgk const cyclic defs.h dfff dmul dmul102 \
	fctrdata fctrtest fff glib gr ifplot katsura launch mat nf \
	num primdec primdec_lex primdec_mod ratint robot solve sp \
	sturm sym weight xm

.include <bsd.port.pre.mk>

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

pre-install:
	@${MKDIR} ${DATADIR}
	@${MKDIR} ${DOCSDIR}

post-install:
	@(\
	   cd ${WRKSRC}/lib ; \
	   for i in ${LIB_DATA} ; do \
		${INSTALL_DATA} $$i ${DATADIR} ; \
	   done ;\
	   make install-doc \
	)
	@${LN} -fs ${PREFIX}/bin/asir ${DATADIR}/ox_asir
	@${LN} -fs ${PREFIX}/bin/asir ${DATADIR}/ox_plot
	@${LN} -fs ${PREFIX}/bin/asir ${DATADIR}/ox_launch
	@${TAR} xfz ${DISTDIR}/${ASIR_DOC} -C ${DOCSDIR}
	@${INSTALL_MAN} ${DOCSDIR}/${MAN1} ${PREFIX}/man/man1

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