summaryrefslogtreecommitdiffstats
path: root/japanese/tcl76/Makefile
blob: 6a31ffaa10f8bf67054b1a2bf2d9a4ed69c262ac (plain)
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
# 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.2 1997/03/05 23:13:23 asami Exp $
#

DISTNAME=	tcl7.6p2
PKGNAME=	jp-tcl-7.6
CATEGORIES=	japanese lang
MASTER_SITES=	ftp://ftp.sunlabs.com/pub/tcl/ 

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
GNU_CONFIGURE=	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

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:
	${LDCONFIG} -m ${PREFIX}/lib

test:
	cd ${WRKSRC} && ${MAKE} test

.include <bsd.port.mk>
OpenPOWER on IntegriCloud