summaryrefslogtreecommitdiff
path: root/devel/tcl-neo/Makefile
blob: 4b0d4d537f2a2692bd034dc8dc29a0940f91b8b0 (plain) (blame)
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
# New ports collection makefile for:	NeoTcl
# Date created:			Auf 17, 2001
# Whom:				Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD$
#

PORTNAME=	neotcl
PORTVERSION=	8.2.2
PORTREVISION=	1
CATEGORIES=	devel tcl83
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=nws
DISTNAME=	neowebscript-3.3

MAINTAINER=	mi@aldan.algebra.com

LIB_DEPENDS=	tclx83:${PORTSDIR}/lang/tclX82 \
		db2:${PORTSDIR}/databases/db

# Not yet -- openldap used db3, neo used db2 :(
#		ldap.2:${PORTSDIR}/net/openldap2

SUBDIR=		neowebscript-3.3/neotcl8.3.0-lite/neo${PORTVERSION}
WRKSRC=		${WRKDIR}/${SUBDIR}/generic

EXTRACT_AFTER_ARGS?=	| ${TAR} -xf - ${SUBDIR}/generic ${SUBDIR}/neolibs

MAKEFILE=	${FILESDIR}/Makefile.bsd
MAKE_ENV+=	NEO_LIBRARY=${NEO_LIBRARY}

DDIR=		${PREFIX}/lib/tcl${TCLV}/Trf

post-build:
	cd ${WRKSRC}/../neolibs && ${ECHO_CMD} 'auto_mkindex . */*.tcl' | tclsh8.3

NEO_LIBRARY=	${PREFIX}/lib/neo8.2

post-install:
	${MKDIR} ${NEO_LIBRARY}
	${CP} -Rp ${WRKSRC}/../neolibs/[a-z]* ${NEO_LIBRARY}
	${SED} -e 's,@NEO_SHARED_LIB_FILE@,libneo82.so,' \
		-e 's,@NEO_VERSION@,8.2,' < ${WRKSRC}/pkgIndex.tcl.in > \
		${NEO_LIBRARY}/pkgIndex.tcl

.include <bsd.port.mk>