aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/tk80/Makefile
blob: 70363e563b3cf3f57fac29efbe5ab2e2f92d2073 (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
59
60
# New ports collection makefile for:    ja-tk8.0
# Version required: 8.0
# Date created:     26 Dec 1997
# Whom:         taguchi@tohoku.iij.ad.jp
#
# $Id: Makefile,v 1.2 1998/07/03 23:06:39 steve Exp $
#

DISTNAME=   tk8.0p2
PKGNAME=    ja-tk-8.0.2
CATEGORIES= japanese x11 tk80
MASTER_SITES=   ftp://ftp.scriptics.com/pub/tcl/tcl8_0/

PATCH_SITES=    ftp://ftp.sra.co.jp/pub/lang/tcl/jp/
PATCHFILES= tk8.0p2jp1.0.patch.gz

MAINTAINER= taguchi@tohoku.iij.ad.jp

LIB_DEPENDS=    tcl80jp\\.1\\.2:${PORTSDIR}/japanese/tcl80

VERSION=    8.0
TOPDIR=     ${WRKDIR}/tk${VERSION}
WRKSRC=     ${TOPDIR}/unix
.if defined(PATCH_DEBUG)
PATCH_DIST_ARGS=-d ${TOPDIR} -E ${PATCH_DIST_STRIP}
.else
PATCH_DIST_ARGS=-d ${TOPDIR} --forward --quiet -E ${PATCH_DIST_STRIP}
.endif
GNU_CONFIGURE=  yes
USE_AUTOCONF=   yes
CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl${VERSION}jp

.if !defined(NOPORTDOCS)
post-patch:
    @${CP} ${FILESDIR}/README.FreeBSD.in ${TOPDIR}/README.FreeBSD.JP.in
    @${SED} -e 's%AC_OUTPUT(Makefile tkConfig.sh)%AC_OUTPUT(Makefile tkConfig.sh ../README.FreeBSD.JP)%' \
      < ${WRKSRC}/configure.in \
      > ${WRKSRC}/configure.in.tmp
    @${MV} -f ${WRKSRC}/configure.in.tmp ${WRKSRC}/configure.in
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/tk${VERSION}jp
    @(cd ${TOPDIR}; \
      ${INSTALL_DATA} README changes README.FreeBSD.JP \
        README.JP changes.JP \
        Incompat80jp ${PREFIX}/share/doc/tk${VERSION}jp; \
     )
.endif
    @${LDCONFIG} -m ${PREFIX}/lib
    @${CAT} ${PKGDIR}/MESSAGE

test:
    cd ${WRKSRC} && ${MAKE} test

install-man:
    cd ${WRKSRC} && ${MAKE} install-man

.include <bsd.port.mk>