aboutsummaryrefslogtreecommitdiffstats
path: root/misc/fcalc/Makefile
blob: ffcad729497378f2dc5cc0b9952d8e3ea2743e61 (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
# New ports collection makefile for:    fcalc
# Date Created:             11 jun 2006
# Whom:                 Serge Gagnon <serge.gagnon@b2b2c.ca>
#
# $FreeBSD$
#

PORTNAME=   fcalc
PORTVERSION=    1
PORTREVISION=   3
CATEGORIES= misc
MASTER_SITES=   ftp://quenix2.dyndns.org/FreeBSD/ports/distfiles/
DISTNAME=   ${PORTNAME}-tcl

MAINTAINER= ports@FreeBSD.org
COMMENT=    F/Calc is a calculator for photographic formulas

DEPRECATED=     Upstream disapear and distfile is no more available
EXPIRATION_DATE=        2011-05-01

RUN_DEPENDS=    ${LOCALBASE}/lib/Tix8.4.3/Tix.tcl:${PORTSDIR}/x11-toolkits/tix

NO_BUILD=   yes
USE_XORG=   x11 xt
USE_TK_RUN= 84

WRKSRC= ${WRKDIR}/${PORTNAME}-1.00

post-patch:
    ${REINPLACE_CMD} -e 's|BINDIR=/usr/local/bin|BINDIR=${PREFIX}/bin|' \
        -e 's|LIBDIR=/usr/local/lib/fcalc|LIBDIR=${PREFIX}/lib/fcalc|' \
        ${WRKSRC}/INSTALL
    ${REINPLACE_CMD} -e 's|netscape|firefox|' ${WRKSRC}/Dialogs.tcl
    ${REINPLACE_CMD} -e 's|exec wish|exec wish8.4|' \
        -e 's|^set libDir.*||' -e 's|^#set libDir|set libDir|' \
        ${WRKSRC}/fcalc

do-install:
    cd ${WRKSRC}; ./INSTALL

.include <bsd.port.mk>