aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/abacus/Makefile
blob: e96953859cc1e27ea1a1cfea282789782ee64951 (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
# New ports collection makefile for:    abacus
# Date created:             18 August 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   abacus
PORTVERSION=    0.9.13
CATEGORIES= deskutils
MASTER_SITES=   http://www-cad.eecs.berkeley.edu/HomePages/aml/abacus/ \
        http://tahoe.inesc.pt/~aml/abacus/

PATCH_SITES=    ${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR=  steve
PATCHFILES= ${PKGNAME}.patch.gz

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    tcl82.1:${PORTSDIR}/lang/tcl82 \
        tk82.1:${PORTSDIR}/x11-toolkits/tk82

USE_X_PREFIX=   yes
USE_GMAKE=  yes
MAKE_ENV=   CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
ALL_TARGET= dep tcl_interf/nxlc

MAN1=       abacus.1

post-extract:
    @(cd ${WRKSRC}; find -d . -name RCS -exec ${RM} -rf {} \;)
    @(cd ${WRKSRC}; ${RM} canvas; ${LN} -sf canvas-tcl8.2.2 canvas)

post-patch:
    @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/abacus

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/abacus ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/abacus.1 ${PREFIX}/man/man1
    @${MKDIR} ${PREFIX}/share/abacus
    @${MKDIR} ${PREFIX}/share/abacus/display
    ${INSTALL_DATA} ${WRKSRC}/display/*.tcl ${PREFIX}/share/abacus/display
    @${MKDIR} ${PREFIX}/share/abacus/graphics
    ${INSTALL_DATA} ${WRKSRC}/graphics/*.tcl ${PREFIX}/share/abacus/graphics
    @${MKDIR} ${PREFIX}/share/abacus/runlib
    ${INSTALL_DATA} ${WRKSRC}/runlib/*.tcl ${PREFIX}/share/abacus/runlib
    ${INSTALL_DATA} ${WRKSRC}/runlib/version ${PREFIX}/share/abacus/runlib
    @${MKDIR} ${PREFIX}/share/abacus/runlib/bitmaps
    ${INSTALL_DATA} ${WRKSRC}/runlib/bitmaps/* ${PREFIX}/share/abacus/runlib/bitmaps
    @${MKDIR} ${PREFIX}/share/abacus/tcl_interf
    ${INSTALL_PROGRAM} ${WRKSRC}/tcl_interf/nxlc ${PREFIX}/share/abacus/tcl_interf
    @${MKDIR} ${PREFIX}/share/abacus/doc
    ${TAR} -C ${WRKSRC} --exclude abacus.1 -cf - doc | \
        ${TAR} -C ${PREFIX}/share/abacus --unlink -xf -
    @${MKDIR} ${PREFIX}/share/examples/abacus
    ${INSTALL_DATA} ${WRKSRC}/regressive/* ${PREFIX}/share/examples/abacus

.include <bsd.port.mk>