blob: 7500ec53476e792ae18f67c9665c6995e1e5b5a2 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Created by: obonilla
# $FreeBSD$
PORTNAME= otcl
PORTVERSION= 1.14
DISTVERSIONPREFIX= src-
CATEGORIES= lang tcl tk
MASTER_SITES= SF/${PORTNAME}-tclcl/OTcl/${PORTVERSION}
MAINTAINER= 5u623l20@gmail.com
COMMENT= MIT Object Tcl
BROKEN= Fails to configure
LICENSE= MIT
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES+= tk
USE_XORG= xext
USE_AUTOTOOLS= autoconf
USE_LDCONFIG= yes
.if !defined(NOPORTDOCS)
DOCS= CHANGES.html README.html \
doc/autoload.html doc/capi.html doc/class.html \
doc/object.html doc/otcl-paper.ps.gz doc/tutorial.html
PORTDOCS= ${DOCS:S/doc\///}
.endif
NO_STAGE= yes
.include <bsd.port.pre.mk>
CFLAGS+= -DHAVE_UNISTD_H
CONFIGURE_ARGS+=--with-tcl=${LOCALBASE} \
--with-tk=${LOCALBASE}
.if ${TCL_SHLIB_VER} > 85
CFLAGS+= -DUSE_INTERP_ERRORLINE -DUSE_INTERP_RESULT
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
-e's|X11/Intrinsic.h|X11/Xlib.h|g' \
${WRKSRC}/configure ${WRKSRC}/conf/configure.in.x11
@${REINPLACE_CMD} -e 's|../lib/tcl$$TCL_HI_VERS|${TCL_LIBDIR}|g' \
-e 's|../include|${TCL_INCLUDEDIR}/generic|g' \
${WRKSRC}/conf/configure.in.tcl
@${REINPLACE_CMD} -e 's|../lib/tk$$TK_HI_VERS|${TK_LIBDIR}|g' \
-e 's|../include|${TK_INCLUDEDIR}/generic|g' \
${WRKSRC}/conf/configure.in.tk
post-install:
${LN} -sf libotcl.so ${PREFIX}/lib/libotcl.so.1
${STRIP_CMD} ${PREFIX}/bin/otclsh
${STRIP_CMD} ${PREFIX}/bin/owish
.if exists(${PKGINSTALL})
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|