aboutsummaryrefslogtreecommitdiffstats
path: root/lang/tclX/Makefile
blob: 3f050b5b60bf3f47371b630cb3930a744e0fe465 (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
# New ports collection makefile for:    tclX
# Version required: 7.5
# Date created:     6 February 1996
# Whom:         jkh
#
# $Id: Makefile,v 1.2 1996/03/18 02:04:26 asami Exp $
#

DISTNAME=   tclX7.5.0
PKGNAME=    tclX-7.5
CATEGORIES+=    lang
MASTER_SITES=   ftp://ftp.neosoft.com/pub/tcl/tclx-distrib/

TCL_DIR=    ${PORTSDIR}/lang/tcl75
TCL_SRC=    ${TCL_DIR}/work/tcl7.5

TK_DIR=     ${PORTSDIR}/x11/tk41
TK_SRC=     ${TK_DIR}/work/tk4.1

DEPENDS=    ${TCL_DIR} ${TK_DIR}
LIB_DEPENDS=    tcl7\\.5\\.1:${TCL_DIR} \
        tk4\\.1\\.1:${TK_DIR}

WRKSRC=     ${WRKDIR}/${DISTNAME}/unix
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared --with-tk

pre-configure:
    cd ${WRKSRC} ; \
    mv Config.mk Config.mk.orig2 && \
    sed -e 's;TCL_SRC=$${srcbasedir};TCL_SRC=${TCL_SRC};' \
        -e 's;TCL_CONFIG=$${srcbasedir};TCL_CONFIG=${TCL_SRC};' \
        -e 's;TCL_LIB=$${bldbasedir};TCL_LIB=${TCL_SRC};' \
        -e 's;TCL_SHLIB_DIR=$${bldbasedir};TCL_SHLIB_DIR=${TCL_SRC};' \
        -e 's;TK_SRC=$${srcbasedir};TK_SRC=${TK_SRC};' \
        -e 's;TK_CONFIG=$${srcbasedir};TK_CONFIG=${TK_SRC};' \
        -e 's;TK_LIB=$${bldbasedir};TK_LIB=${TK_SRC};' \
        -e 's;TK_SHLIB_DIR=$${bldbasedir};TK_SHLIB_DIR=${TK_SRC};' \
    Config.mk.orig2 >Config.mk

post-install:
    /sbin/ldconfig -m ${PREFIX}/lib

.include <bsd.port.mk>