mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
96bc8048c3
shell loops to make loops. Use EXTRA_PKG_FLAGS to add install scripts instead of adding it to PKG_FLAGS after bsd.port.mk.
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
# New ports collection makefile for: tcl7.6jp
|
|
# Version required: 7.6p2jp
|
|
# Date created: 11 March 1997
|
|
# Whom: taguchi@tohoku.iij.ad.jp
|
|
#
|
|
# $Id: Makefile,v 1.7 1998/09/28 09:53:08 asami Exp $
|
|
#
|
|
|
|
DISTNAME= tcl7.6p2
|
|
PKGNAME= ja-tcl-7.6
|
|
CATEGORIES= japanese lang
|
|
MASTER_SITES= ftp://ftp.scriptics.com/pub/tcl/tcl7_6/
|
|
|
|
PATCH_SITES= ftp://ftp.sra.co.jp/pub/lang/tcl/jp/
|
|
PATCHFILES= tcl7.6jp-patch.gz
|
|
|
|
MAINTAINER= taguchi@tohoku.iij.ad.jp
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
|
|
USE_AUTOCONF= yes
|
|
CONFIGURE_ARGS= --enable-shared
|
|
CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
|
|
|
|
VERSION= 7.6jp
|
|
|
|
.if defined(PATCH_DEBUG)
|
|
PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} -E ${PATCH_DIST_STRIP}
|
|
.else
|
|
PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} --forward --quiet -E ${PATCH_DIST_STRIP}
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-extract:
|
|
@${MV} ${WRKDIR}/tcl7.6 ${WRKDIR}/${DISTNAME}
|
|
|
|
post-configure:
|
|
@${ECHO} "We will NOT only make shared library, but also static one."
|
|
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}
|
|
|
|
pre-build:
|
|
cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} VERSION=${VERSION} && rm *.o
|
|
|
|
pre-install:
|
|
${MKDIR} ${PREFIX}/lib/tcl${VERSION}
|
|
cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} VERSION=${VERSION} install
|
|
|
|
post-install:
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
${LN} -sf libtcl76jp.so.1.0 ${PREFIX}/lib/libtcl76jp.so
|
|
.endif
|
|
|
|
test:
|
|
cd ${WRKSRC} && ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} test
|
|
|
|
install-man:
|
|
cd ${WRKSRC} && ${SETENV} PORTOBJFORMAT=${PORTOBJFORMAT} ${MAKE} install-man
|
|
|
|
.include <bsd.port.post.mk>
|