aboutsummaryrefslogtreecommitdiffstats
path: root/math/rascal/Makefile
blob: c6991f4aec80fa194373d690ff6fc6af44829672 (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
# ex:ts=8
# New ports collection makefile for:    rascal
# Date created:         Apr 9, 2001
# Whom:             Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   rascal
PORTVERSION=    0.3.2
PORTREVISION=   1
CATEGORIES= math
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Rascal, the Advanced Scientific CALculator

BROKEN=     Does not compile

USE_GETOPT_LONG=yes
USE_REINPLACE=  yes
USE_BISON=  yes
#USE_GNOME= yes
WRKSRC=     ${WRKDIR}/Rascal-${PORTVERSION}
USE_GMAKE=  yes
#ALL_TARGET=    rascal grascal

MAN1=   rascal.1

post-patch:
    @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g ; \
        s,g\+\+,${CXX},g ; \
        s,doc/,share/doc/,g ; \
        s,gnome-config,${GNOME_CONFIG},g ; \
        s,CC,CXX,g" ${WRKSRC}/Makefile
.for file in hoc.y rascal.1
    @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${file}
.endfor

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/rascal ${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/rascal.rc ${PREFIX}/etc
    ${INSTALL_MAN} ${WRKSRC}/rascal.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/html
.for file in rascal.ps rascal.pdf CHANGES TEST TOOLBOXTEST
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
    ${INSTALL_DATA} ${WRKSRC}/rascal_html/* ${DOCSDIR}/html
.endif

.include <bsd.port.mk>