blob: 43e9700ad4fe3b848cbf61094937d6775ff1017b (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# New ports collection makefile for: ja-tk8.0
# Date created: 26 Dec 1997
# Whom: taguchi@tohoku.iij.ad.jp
#
# $FreeBSD$
#
PORTNAME= tk
PORTVERSION= 8.0.5
PORTREVISION= 5
CATEGORIES= japanese x11-toolkits tk
MASTER_SITES= ${MASTER_SITE_TCLTK}
MASTER_SITE_SUBDIR= tcl8_0
DISTNAME= ${PORTNAME}${PORTVERSION}
PATCH_SITES= ftp://ftp.sra.co.jp/pub/lang/tcl/jp/
PATCHFILES= ${PORTNAME}${PORTVERSION}jp1.7.patch.gz
MAINTAINER= taguchi@iij.ad.jp
COMMENT= Graphical toolkit for Japanized TCL, version 8.0
LIB_DEPENDS= tcl80jp.1:${PORTSDIR}/japanese/tcl80
VERSION= ${PORTVERSION:R}
TOPDIR= ${WRKDIR}/${DISTNAME}
WRKSRC= ${TOPDIR}/unix
DOCSDIR= ${PREFIX}/share/doc/tk${VERSION}jp
PORTDOCS= README changes README.FreeBSD.JP README.JP changes.JP \
Incompat80jp
.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
USE_AUTOTOOLS= autoconf:213
USE_XORG= x11
CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl${VERSION}jp \
--enable-xlibHack --enable-onTheSpot
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
RANLIB= ranlib
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e '/xpg4/d' ${WRKSRC}/configure.in
.if !defined(NOPORTDOCS)
@${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} ${DOCSDIR}
@(cd ${TOPDIR}; \
${INSTALL_DATA} README changes README.FreeBSD.JP \
README.JP changes.JP \
Incompat80jp ${DOCSDIR}; \
)
.endif
@${CAT} ${PKGMESSAGE}
test:
cd ${WRKSRC} && ${MAKE} test
install-man:
cd ${WRKSRC} && ${MAKE} install-man
.include <bsd.port.post.mk>
|