1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/math/asir2000/Makefile
Sunpoet Po-Chuan Hsieh 8f5bc803a0 - Update to 20140513
- Convert to new LIB_DEPENDS format
- Support STAGEDIR
- Pass maintainership to submitter

PR:		ports/189764
Submitted by:	Muhammad Moinur Rahman <5u623l20@gmail.com>
2014-05-24 14:11:38 +00:00

83 lines
2.4 KiB
Makefile

# Created by: Tomokatsu SAITO <saito@asir.org>
# $FreeBSD$
PORTNAME= asir
PORTVERSION= 20140513
CATEGORIES= math
MASTER_SITES= ftp://ftp.jssac.org/pub/distfiles/asir/ \
ftp://ftp.asir.org/pub/asir/src/ \
http://www.hboehm.info/gc/gc_source/
DISTFILES= ${ASIR_SRC} ${ASIR_DOC} ${GC_SRC}
EXTRACT_ONLY= ${ASIR_SRC}
MAINTAINER= 5u623l20@gmail.com
COMMENT= The system Risa/Asir is a general computer algebra system
LICENSE= RALUL
LICENSE_NAME= Risa/Asir Limited Use License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libpari.so:${PORTSDIR}/math/pari
MAKE_JOBS_UNSAFE= yes
USE_XORG= x11 xaw xext xt
GNU_CONFIGURE= yes
USE_AUTOTOOLS= aclocal automake autoconf
AUTOMAKE_ARGS= --add-missing
CONFIGURE_ARGS= --enable-shared --enable-plot --enable-interval --with-pari --with-asir-gc
ASIR_SRC_VERSION= ${PORTVERSION}
ASIR_DOC_VERSION= 20131129
GC_VERSION= 7.2
ASIR_SRC= asir-${ASIR_SRC_VERSION}${EXTRACT_SUFX}
ASIR_DOC= asirdoc-${ASIR_DOC_VERSION}${EXTRACT_SUFX}
GC_SRC= gc-${GC_VERSION}${EXTRACT_SUFX}
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
OPTIONS_DEFINE= DOCS
PORTDOCS= *
PORTDATA= *
#NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ia64, powerpc, or sparc64
.endif
post-extract:
@( cd ${WRKSRC}; ${TAR} xfz ${DISTDIR}/${GC_SRC} )
@${MKDIR} ${WRKDIR}/asirdoc
@${TAR} xfz ${DISTDIR}/${ASIR_DOC} -C ${WRKDIR}/asirdoc
post-patch:
${REINPLACE_CMD} '-e s|$${DESTDIR}|${STAGEDIR}|g' \
${WRKSRC}/lib/Makefile.am
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}
(\
cd ${WRKSRC}/lib ; \
for i in ${LIB_DATA} ; do \
${INSTALL_DATA} $$i ${STAGEDIR}${DATADIR} ; \
done ;\
make install-doc \
)
${LN} -fs ${PREFIX}/bin/asir ${STAGEDIR}${DATADIR}/ox_asir
${LN} -fs ${PREFIX}/bin/asir ${STAGEDIR}${DATADIR}/ox_plot
${LN} -fs ${PREFIX}/bin/asir ${STAGEDIR}${DATADIR}/ox_launch
${LN} -fs ${DATADIR} ${STAGEDIR}${PREFIX}/lib/asir
${INSTALL_MAN} ${WRKDIR}/asirdoc/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKDIR}/asirdoc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.post.mk>