blob: 98c34fd595e67b4066527669152f268a7628b413 (
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
|
# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= reduce
PORTVERSION= 20110414
CATEGORIES= math lang
MASTER_SITES= SF/${PORTNAME}-algebra/
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= pfg@FreeBSD.org
COMMENT= Portable general-purpose computer algebra system (CSL version)
LICENSE= BSD2CLAUSE
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
libpng15.so:${PORTSDIR}/graphics/png \
libtiff.so:${PORTSDIR}/graphics/tiff
USES= gmake tar:bzip2
USE_XORG= xext x11 xft
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-csl
ALL_TARGET=
MAKE_JOBS_UNSAFE= yes
.include <bsd.port.options.mk>
.if ${ARCH} == "amd64"
TARGET_SDIR= x86_64-unknown-${OPSYS:tl}${OSREL}
.else
TARGET_SDIR= ${ARCH}-unknown-${OPSYS:tl}${OSREL}
.endif
REDUCECSL= ${WRKSRC}/cslbuild/${TARGET_SDIR}/csl
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${REDUCECSL}/reduce ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${REDUCECSL}/reduce.img ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${FILESDIR}/runcsl.sh ${STAGEDIR}${PREFIX}/bin/redcsl
${INSTALL_MAN} ${FILESDIR}/redcsl.1 ${STAGEDIR}${MANPREFIX}/man/man1/
${MKDIR} ${STAGEDIR}${DATADIR}/reduce.doc
(cd ${REDUCECSL}/reduce.doc && ${COPYTREE_SHARE} . \
${STAGEDIR}${DATADIR}/reduce.doc)
${MKDIR} ${STAGEDIR}${PREFIX}/${FONTDIR}
(cd ${REDUCECSL}/reduce.fonts && ${COPYTREE_SHARE} . \
${STAGEDIR}${DATADIR}/reduce.fonts)
.include <bsd.port.mk>
|