1997-03-02 08:02:07 -05:00
|
|
|
# New ports collection makefile for: tk4.2p2JP
|
|
|
|
# Date created:
|
|
|
|
# Whom: taguchi@tohoku.iij.ad.jp
|
|
|
|
#
|
1999-08-25 01:28:01 -04:00
|
|
|
# $FreeBSD$
|
1997-03-02 08:02:07 -05:00
|
|
|
#
|
|
|
|
|
2000-04-12 10:38:12 -04:00
|
|
|
PORTNAME= tk
|
|
|
|
PORTVERSION= 4.2
|
1998-08-07 19:55:47 -04:00
|
|
|
CATEGORIES= japanese x11-toolkits
|
1998-07-03 19:07:17 -04:00
|
|
|
MASTER_SITES= ftp://ftp.scriptics.com/pub/tcl/tcl7_6/
|
2000-04-12 10:38:12 -04:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}p2
|
1997-03-02 08:02:07 -05:00
|
|
|
|
|
|
|
PATCH_SITES= ftp://ftp.sra.co.jp/pub/lang/tcl/jp/
|
2000-04-12 10:38:12 -04:00
|
|
|
PATCHFILES= ${PORTNAME}${VERSION}-patch.gz
|
1997-03-02 08:02:07 -05:00
|
|
|
|
|
|
|
MAINTAINER= taguchi@tohoku.iij.ad.jp
|
|
|
|
|
1998-09-27 04:24:37 -04:00
|
|
|
LIB_DEPENDS= tcl76jp.1:${PORTSDIR}/japanese/tcl76
|
1997-03-02 08:02:07 -05:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
|
1998-09-27 04:24:37 -04:00
|
|
|
USE_AUTOCONF= yes
|
|
|
|
USE_XLIB= yes
|
2000-06-16 17:52:40 -04:00
|
|
|
INSTALLS_SHLIB= yes
|
1997-03-02 08:02:07 -05:00
|
|
|
CONFIGURE_ARGS= --enable-shared
|
|
|
|
CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
|
|
|
|
|
|
|
|
.if defined(PATCH_DEBUG)
|
|
|
|
PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} -E ${PATCH_DIST_STRIP}
|
|
|
|
PATCH_ARGS= -d ${WRKDIR}/${DISTNAME} -E ${PATCH_STRIP}
|
|
|
|
.else
|
|
|
|
PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} --forward --quiet -E ${PATCH_DIST_STRIP}
|
|
|
|
PATCH_ARGS= -d ${WRKDIR}/${DISTNAME} --forward --quiet -E ${PATCH_STRIP}
|
|
|
|
.endif
|
|
|
|
|
2000-04-12 10:38:12 -04:00
|
|
|
VERSION= ${PORTVERSION}jp
|
1997-03-02 08:02:07 -05:00
|
|
|
|
1998-11-14 04:43:39 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1997-03-02 08:02:07 -05:00
|
|
|
post-extract:
|
2000-04-12 10:38:12 -04:00
|
|
|
@${MV} ${WRKDIR}/${PORTNAME}${PORTVERSION} ${WRKDIR}/${DISTNAME}
|
1997-03-02 08:02:07 -05:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${ECHO} "We will NOT only make shared library, but also static one."
|
|
|
|
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}
|
|
|
|
|
|
|
|
pre-build:
|
1999-08-27 22:42:41 -04:00
|
|
|
cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} VERSION=${VERSION} && ${RM} -f *.o
|
1997-03-02 08:02:07 -05:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${PREFIX}/lib/tk${VERSION}
|
|
|
|
|
|
|
|
post-install:
|
1997-03-11 06:02:41 -05:00
|
|
|
cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} VERSION=${VERSION} install
|
1998-11-14 04:43:39 -05:00
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
|
|
${LN} -sf libtk42jp.so.1.0 ${PREFIX}/lib/libtk42jp.so
|
|
|
|
.endif
|
1999-08-27 18:30:39 -04:00
|
|
|
@${ECHO_MSG} "**********"
|
|
|
|
@${ECHO_MSG} "IMPORTANT:"
|
|
|
|
@${ECHO_MSG} "**********"
|
|
|
|
@${ECHO_MSG} "We've installed:"
|
|
|
|
@${ECHO_MSG} "tkConfig.sh in $(PREFIX)/lib/tk$(VERSION)/tkConfig.sh"
|
|
|
|
@${ECHO_MSG} "tk.h in $(PREFIX)/include/tk$(VERSION)/tk.h"
|
|
|
|
@${ECHO_MSG} "These are NOT the default place, but good place to avoid"
|
|
|
|
@${ECHO_MSG} "conflicting with another version of Tcl/Tks."
|
1997-03-02 08:02:07 -05:00
|
|
|
|
|
|
|
test:
|
1998-09-27 04:24:37 -04:00
|
|
|
cd ${WRKSRC}; ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} test
|
|
|
|
|
|
|
|
install-man:
|
|
|
|
cd ${WRKSRC} && ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} install-man
|
1997-03-02 08:02:07 -05:00
|
|
|
|
1998-11-14 04:43:39 -05:00
|
|
|
.include <bsd.port.post.mk>
|