blob: c414070a1f95625245d0db4a3e30174d551a3a68 (
plain) (
blame)
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
|
# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= reduce
PORTVERSION= 20180117
CATEGORIES= math lang
MASTER_SITES= SF/reduce-algebra/${SFSUBDIR}/
PKGNAMESUFFIX= -psl
DISTNAME= Reduce-svn4372-src
MAINTAINER= pfg@FreeBSD.org
COMMENT= REDUCE Portable Standard Lisp general-purpose algebra system
LICENSE= BSD2CLAUSE
ONLY_FOR_ARCHS= amd64 i386
SFSUBDIR= snapshot_2018-01-17
USES= autoreconf:build libtool gmake ncurses
TARGET_SDIR= ${ARCH:S/amd64/x86_64/}-unknown-${OPSYS:tl}${OSREL}
CONFIGURE_ARGS= --build=${TARGET_SDIR}
WRKSRC= ${WRKDIR}/${DISTNAME}
CPPFLAGS+= -I${NCURSESINC}
# Avoid GNU_CONFIGURE as it breaks staging
HAS_CONFIGURE= yes
ALL_TARGET=
MAKE_JOBS_UNSAFE= yes
PLIST= ${.CURDIR}/pkg-plist.${ARCH}
CONFIGURE_ARGS= --with-psl
REDUCE_BINS= ${WRKSRC}/pslbuild/${TARGET_SDIR}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${FILESDIR}/runpsl.sh ${STAGEDIR}${PREFIX}/bin/redpsl
${INSTALL_MAN} ${FILESDIR}/redpsl.1 ${STAGEDIR}${MANPREFIX}/man/man1/
${MKDIR} ${STAGEDIR}${DATADIR}/psl
${INSTALL_PROGRAM} ${REDUCE_BINS}/psl/bpsl ${STAGEDIR}${DATADIR}/psl/
(cd ${REDUCE_BINS}/psl && ${COPYTREE_SHARE} . \
${STAGEDIR}${DATADIR}/psl "! -name bpsl")
${MKDIR} ${STAGEDIR}${PREFIX}/red
(cd ${REDUCE_BINS}/red && ${COPYTREE_SHARE} . \
${STAGEDIR}${DATADIR}/red)
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc//util/r38.pdf \
${STAGEDIR}${DOCSDIR}/manual.pdf
${INSTALL_DATA} ${WRKSRC}/doc/primers/*.pdf \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|