blob: 68e9716664f7ce651f7724001e3c4e6d2bd429c7 (
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
69
70
71
72
73
74
75
76
77
|
# New ports collection makefile for: ruby-tk
# Date created: 15 March 1999
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
#
# $FreeBSD$
#
PORTNAME= tk
PORTVERSION= ${RUBY_PORTVERSION}
PORTREVISION= 2
PORTREVISION= ${RUBY_PORTREVISION}
PORTEPOCH= 1
CATEGORIES+= x11-toolkits ruby tcl tk
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER?= stas@FreeBSD.org
COMMENT?= Ruby interface to the Tk widget set
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
RUBY_EXTCONF_SUBDIRS= . tkutil
USE_XORG= x11
WRKSRC= ${WRKDIR}/${PORTNAME}
TK_VERSION?= 8.4
.if defined(WITH_TCLTK_JP)
TCLPORTDIR?= ${PORTSDIR}/japanese/tcl
TKPORTDIR?= ${PORTSDIR}/japanese/tk
.else
TCLPORTDIR?= ${PORTSDIR}/lang/tcl
TKPORTDIR?= ${PORTSDIR}/x11-toolkits/tk
.endif
LIB_DEPENDS= tcl${TK_VERSION:S/.//}:${TCLPORTDIR}${TK_VERSION:C/[^0-9]//g} \
tk${TK_VERSION:S/.//}:${TKPORTDIR}${TK_VERSION:C/[^0-9]//g}
.include <bsd.port.pre.mk>
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
--with-X11-dir=${LOCALBASE} \
--with-tcl-include=${LOCALBASE}/include/tcl${TK_VERSION} \
--with-tk-include=${LOCALBASE}/include/tk${TK_VERSION}
.if defined(WITH_TCLTK_JP)
CONFIGURE_ARGS+=--with-tcllib=tcl${TK_VERSION:S/.//} --with-tklib=tk${TK_VERSION:S/.//}
.endif
MAKE_ARGS= sitelibdir='$$(rubylibdir)'
.if defined(PKGNAMEPREFIX)
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
.else
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
.endif
do-extract:
${MKDIR} ${WRKDIR}
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT}; ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
post-build:
@(cd ${BUILD_WRKSRC}/tkutil; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
post-install:
@(cd ${INSTALL_WRKSRC}/tkutil; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${CP} -R ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}
. for d in MANUAL_tcltklib.eng MANUAL_tcltklib.eucj README.fork README.1st README.ActiveTcl README.tcltklib
${INSTALL_DATA} ${WRKSRC}/${d} ${RUBY_MODDOCDIR}/
. endfor
.endif
.include <bsd.port.post.mk>
|