aboutsummaryrefslogtreecommitdiffstats
path: root/lang/itcl/Makefile
blob: bcc53d02da894520a5cb406576e5e0a3758d156d (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:    itcl
# Version required: 2.1
# Date created:     Aug 17 1996
# Whom:         chuckr
#
# $Id: Makefile,v 1.11 1996/08/24 03:51:00 chuckr Exp $
#

DISTNAME=   itcl2.1
GNU_CONFIGURE=  yes
CATEGORIES+=    lang
MASTER_SITES=   ftp://ftp.neosoft.com/pub/tcl/NEW/

MAINTAINER= chuckr@freebsd.org

CONFIGURE_ARGS= --enable-shared

post-extract:
    @$(RM) -f $(WRKSRC)/tcl7.5/library/*.c

post-install:
.if !defined(NOMANCOMPRESS)
    @$(ECHO) "Compressing man pages, be patient, there are many."
    @for m in $(WRKSRC)/tcl7.5/doc/*.1 ;\
    do gzip -9nf $(PREFIX)/share/itcl/tcl7.5/man/man1/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/tcl7.5/doc/*.3 ;\
    do gzip -9nf $(PREFIX)/share/itcl/tcl7.5/man/man3/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/tcl7.5/doc/*.n ;\
    do gzip -9nf $(PREFIX)/share/itcl/tcl7.5/man/mann/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/tk4.1/doc/*.1 ;\
    do gzip -9nf $(PREFIX)/share/itcl/tk4.1/man/man1/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/tk4.1/doc/*.3 ;\
    do gzip -9nf $(PREFIX)/share/itcl/tk4.1/man/man3/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/tk4.1/doc/*.n ;\
    do gzip -9nf $(PREFIX)/share/itcl/tk4.1/man/mann/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/itcl/doc/*.1 ;\
    do gzip -9nf $(PREFIX)/share/itcl/itcl/man/man1/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/itcl/doc/*.n ;\
    do gzip -9nf $(PREFIX)/share/itcl/itcl/man/mann/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/itk/doc/*.1 ;\
    do gzip -9nf $(PREFIX)/share/itcl/itk/man/man1/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/itk/doc/*.n ;\
    do gzip -9nf $(PREFIX)/share/itcl/itk/man/mann/`$(BASENAME) $$m`;done
    @for m in $(WRKSRC)/iwidgets2.1.0/doc/*.n ; \
    do gzip -9nf $(PREFIX)/share/itcl/iwidgets/man/mann/`$(BASENAME) $$m`;done
.endif
    @echo "*****************************************************"
    @echo "There are new man directories to install now:"
    @echo "Add $(PREFIX)share/itcl/tcl7.5"
    @echo "                         tk4.1"
    @echo "                         itcl"
    @echo "                         itk"
    @echo "                         iwidgets"
    @echo "To the manpath in /etc/manpath.config"
    @echo "*****************************************************"
    /sbin/ldconfig -m $(PREFIX)/lib

.include <bsd.port.mk>