freebsd-ports/math/asir2000/Makefile
2010-12-04 07:34:27 +00:00

74 lines
2 KiB
Makefile

# New ports collection makefile for: asir
# Date created: 30 Aug 2001
# Whom: Tomokatsu SAITO <saito@asir.org>
#
# $FreeBSD$
#
PORTNAME= asir
PORTVERSION= 20070806
PORTREVISION= 5
CATEGORIES= math
MASTER_SITES= ftp://ftp.jssac.org/pub/distfiles/asir/ \
ftp://ftp.asir.org/pub/asir/src/ \
http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
DISTFILES= ${ASIR_SRC} ${ASIR_DOC} ${GC_SRC}
EXTRACT_ONLY= ${ASIR_SRC}
MAINTAINER= saito@asir.org
COMMENT= The system Risa/Asir is a general computer algebra system
BROKEN= Only builds with now-nonexistant automake15
LIB_DEPENDS= pari-gmp.2:${PORTSDIR}/math/pari
USE_XORG= x11 xaw xext xt
GNU_CONFIGURE= yes
#XXX USE_AUTOTOOLS= automake autoconf
CONFIGURE_ARGS= --enable-shared --enable-plot --enable-fep --enable-interval --with-pari
ASIR_SRC_VERSION= ${PORTVERSION}
ASIR_DOC_VERSION= 20070718
GC_VERSION= 6.8
ASIR_SRC= asir-${ASIR_SRC_VERSION}${EXTRACT_SUFX}
ASIR_DOC= asirdoc-${ASIR_DOC_VERSION}${EXTRACT_SUFX}
GC_SRC= gc${GC_VERSION}${EXTRACT_SUFX}
MAN1= asir.1
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
PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64" || ${ARCH} == "ia64"
BROKEN= Does not compile on sparc64 or ia64
.endif
post-extract:
@( cd ${WRKSRC}; ${TAR} xfz ${DISTDIR}/${GC_SRC} )
@${MKDIR} ${WRKDIR}/asirdoc
@${TAR} xfz ${DISTDIR}/${ASIR_DOC} -C ${WRKDIR}/asirdoc
post-install:
@${MKDIR} ${DATADIR}
@(\
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
@${INSTALL_MAN} ${WRKDIR}/asirdoc/${MAN1} ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@(cd ${WRKDIR}/asirdoc/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
.include <bsd.port.post.mk>