1998-05-10 08:11:44 +00:00
|
|
|
# New ports collection makefile for: ja-tk8.0
|
|
|
|
# Date created: 26 Dec 1997
|
|
|
|
# Whom: taguchi@tohoku.iij.ad.jp
|
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1998-05-10 08:11:44 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 14:38:12 +00:00
|
|
|
PORTNAME= tk
|
|
|
|
PORTVERSION= 8.0.5
|
1998-08-07 23:55:47 +00:00
|
|
|
CATEGORIES= japanese x11-toolkits tk80
|
1998-07-03 23:07:17 +00:00
|
|
|
MASTER_SITES= ftp://ftp.scriptics.com/pub/tcl/tcl8_0/
|
2000-04-12 14:38:12 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
1998-05-10 08:11:44 +00:00
|
|
|
|
|
|
|
PATCH_SITES= ftp://ftp.sra.co.jp/pub/lang/tcl/jp/
|
2000-04-12 14:38:12 +00:00
|
|
|
PATCHFILES= ${PORTNAME}${PORTVERSION}jp1.7.patch.gz
|
1998-05-10 08:11:44 +00:00
|
|
|
|
|
|
|
MAINTAINER= taguchi@tohoku.iij.ad.jp
|
|
|
|
|
1998-09-28 10:31:26 +00:00
|
|
|
LIB_DEPENDS= tcl80jp.1:${PORTSDIR}/japanese/tcl80
|
1998-05-10 08:11:44 +00:00
|
|
|
|
2000-04-12 14:38:12 +00:00
|
|
|
VERSION= ${PORTVERSION:R}
|
1998-09-28 15:15:11 +00:00
|
|
|
TOPDIR= ${WRKDIR}/${DISTNAME}
|
1998-05-10 08:11:44 +00:00
|
|
|
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
|
|
|
|
USE_AUTOCONF= yes
|
1998-09-28 15:15:11 +00:00
|
|
|
USE_XLIB= yes
|
1999-09-07 00:14:42 +00:00
|
|
|
CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl${VERSION}jp \
|
|
|
|
--enable-xlibHack --enable-onTheSpot
|
1999-12-23 18:30:32 +00:00
|
|
|
RANLIB= ranlib
|
2000-06-17 05:34:04 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
1998-05-10 08:11:44 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1998-05-10 08:11:44 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-patch:
|
1998-07-04 19:14:07 +00:00
|
|
|
@${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)%' \
|
1998-05-10 08:11:44 +00:00
|
|
|
< ${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}; \
|
1998-07-04 19:14:07 +00:00
|
|
|
${INSTALL_DATA} README changes README.FreeBSD.JP \
|
|
|
|
README.JP changes.JP \
|
1998-05-10 08:11:44 +00:00
|
|
|
Incompat80jp ${PREFIX}/share/doc/tk${VERSION}jp; \
|
|
|
|
)
|
|
|
|
.endif
|
1998-11-14 09:43:39 +00:00
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
1999-04-02 02:38:05 +00:00
|
|
|
${LN} -sf libtk80jp.so.1.5 ${PREFIX}/lib/libtk80jp.so
|
1999-12-23 18:30:32 +00:00
|
|
|
${RANLIB} ${PREFIX}/lib/libtk80jp.so
|
1998-11-14 09:43:39 +00:00
|
|
|
.endif
|
2000-10-08 10:23:48 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-05-10 08:11:44 +00:00
|
|
|
|
|
|
|
test:
|
1999-04-06 02:37:41 +00:00
|
|
|
cd ${WRKSRC} && ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} test
|
1998-05-10 08:11:44 +00:00
|
|
|
|
|
|
|
install-man:
|
1999-04-06 01:15:03 +00:00
|
|
|
cd ${WRKSRC} && ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} install-man
|
1998-05-10 08:11:44 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|