1997-03-02 13:02:07 +00:00
|
|
|
# New ports collection makefile for: tk4.2p2JP
|
|
|
|
# Version required: 4.2p2jp
|
|
|
|
# Date created:
|
|
|
|
# Whom: taguchi@tohoku.iij.ad.jp
|
|
|
|
#
|
1998-11-14 09:43:39 +00:00
|
|
|
# $Id: Makefile,v 1.7 1998/09/28 09:59:02 asami Exp $
|
1997-03-02 13:02:07 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= tk4.2p2
|
1997-09-14 21:36:25 +00:00
|
|
|
PKGNAME= ja-tk-4.2
|
1998-08-07 23:55:47 +00:00
|
|
|
CATEGORIES= japanese x11-toolkits
|
1998-07-03 23:07:17 +00:00
|
|
|
MASTER_SITES= ftp://ftp.scriptics.com/pub/tcl/tcl7_6/
|
1997-03-02 13:02:07 +00:00
|
|
|
|
|
|
|
PATCH_SITES= ftp://ftp.sra.co.jp/pub/lang/tcl/jp/
|
|
|
|
PATCHFILES= tk4.2jp-patch.gz
|
|
|
|
|
|
|
|
MAINTAINER= taguchi@tohoku.iij.ad.jp
|
|
|
|
|
1998-09-27 08:24:37 +00:00
|
|
|
LIB_DEPENDS= tcl76jp.1:${PORTSDIR}/japanese/tcl76
|
1997-03-02 13:02:07 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
|
1998-09-27 08:24:37 +00:00
|
|
|
USE_AUTOCONF= yes
|
|
|
|
USE_XLIB= yes
|
1997-03-02 13:02:07 +00: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
|
|
|
|
|
|
|
|
VERSION= 4.2jp
|
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1997-03-02 13:02:07 +00:00
|
|
|
post-extract:
|
|
|
|
@${MV} ${WRKDIR}/tk4.2 ${WRKDIR}/${DISTNAME}
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${ECHO} "We will NOT only make shared library, but also static one."
|
|
|
|
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}
|
|
|
|
|
|
|
|
pre-build:
|
1997-03-11 11:02:41 +00:00
|
|
|
cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} VERSION=${VERSION} && rm -f *.o
|
1997-03-02 13:02:07 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${PREFIX}/lib/tk${VERSION}
|
|
|
|
|
|
|
|
post-install:
|
1997-03-11 11:02:41 +00:00
|
|
|
cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} VERSION=${VERSION} install
|
1998-09-27 08:24:37 +00:00
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
1998-11-14 09:43:39 +00:00
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
|
|
${LN} -sf libtk42jp.so.1.0 ${PREFIX}/lib/libtk42jp.so
|
|
|
|
.endif
|
1997-03-02 13:02:07 +00:00
|
|
|
@echo "**********"
|
|
|
|
@echo "IMPORTANT:"
|
|
|
|
@echo "**********"
|
|
|
|
@echo "We've installed:"
|
|
|
|
@echo "tkConfig.sh in $(PREFIX)/lib/tk$(VERSION)/tkConfig.sh"
|
|
|
|
@echo "tk.h in $(PREFIX)/include/tk$(VERSION)/tk.h"
|
|
|
|
@echo "These are NOT the default place, but good place to avoid"
|
|
|
|
@echo "conflicting with another version of Tcl/Tks."
|
|
|
|
|
|
|
|
test:
|
1998-09-27 08:24:37 +00:00
|
|
|
cd ${WRKSRC}; ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} test
|
|
|
|
|
|
|
|
install-man:
|
|
|
|
cd ${WRKSRC} && ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} install-man
|
1997-03-02 13:02:07 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|