2000-09-07 02:03:36 +02:00
|
|
|
# New ports collection makefile for: ruby-tk
|
2000-08-12 22:09:41 +02:00
|
|
|
# Date created: 15 March 1999
|
|
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
1999-04-27 14:39:47 +02:00
|
|
|
#
|
1999-08-31 05:04:38 +02:00
|
|
|
# $FreeBSD$
|
1999-04-27 14:39:47 +02:00
|
|
|
#
|
|
|
|
|
2000-09-07 02:03:36 +02:00
|
|
|
PORTNAME= tk
|
2000-10-20 21:56:05 +02:00
|
|
|
PORTVERSION= ${RUBY_PORTVERSION}
|
2005-11-15 05:33:31 +01:00
|
|
|
PORTEPOCH= 1
|
2006-01-14 15:51:16 +01:00
|
|
|
CATEGORIES+= x11-toolkits ruby tk${TK_VERSION:C/[^0-9]//g} tcl${TK_VERSION:C/[^0-9]//g}
|
2001-03-19 12:13:39 +01:00
|
|
|
MASTER_SITES= # none
|
|
|
|
DISTFILES= # none
|
1999-04-27 14:39:47 +02:00
|
|
|
|
2005-11-11 02:18:01 +01:00
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2003-02-18 06:42:05 +01:00
|
|
|
COMMENT?= Ruby interface to the Tk widget set
|
1999-04-27 14:39:47 +02:00
|
|
|
|
2001-03-19 12:13:39 +01:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch
|
1999-04-27 14:39:47 +02:00
|
|
|
|
2000-09-07 02:03:36 +02:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2006-01-14 15:51:16 +01:00
|
|
|
USE_XLIB= yes
|
1999-04-27 14:39:47 +02:00
|
|
|
|
2001-03-19 12:13:39 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2000-09-28 21:33:39 +02:00
|
|
|
|
2006-01-14 15:51:16 +01:00
|
|
|
TK_VERSION?= 8.4
|
2000-09-07 02:03:36 +02:00
|
|
|
.if defined(WITH_TCLTK_JP)
|
2006-01-14 15:51:16 +01:00
|
|
|
TCLPORTDIR?= ${PORTSDIR}/japanese/tcl
|
|
|
|
TKPORTDIR?= ${PORTSDIR}/japanese/tk
|
1999-04-27 14:39:47 +02:00
|
|
|
.else
|
2006-01-14 15:51:16 +01:00
|
|
|
TCLPORTDIR?= ${PORTSDIR}/lang/tcl
|
|
|
|
TKPORTDIR?= ${PORTSDIR}/x11-toolkits/tk
|
1999-04-27 14:39:47 +02:00
|
|
|
.endif
|
|
|
|
|
2006-01-14 15:51:16 +01:00
|
|
|
LIB_DEPENDS= tcl${TK_VERSION:S/.//}:${TCLPORTDIR}${TK_VERSION:C/[^0-9]//g} \
|
|
|
|
tk${TK_VERSION:S/.//}:${TKPORTDIR}${TK_VERSION:C/[^0-9]//g}
|
|
|
|
|
2000-09-07 02:03:36 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-04-27 14:39:47 +02:00
|
|
|
|
2006-01-14 15:51:16 +01:00
|
|
|
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
|
|
|
|
--with-X11-dir=${X11BASE} \
|
|
|
|
--with-tcl-include=${LOCALBASE}/include/tcl${TK_VERSION} \
|
|
|
|
--with-tk-include=${LOCALBASE}/include/tk${TK_VERSION}
|
|
|
|
|
2003-01-23 20:18:58 +01:00
|
|
|
.if ${RUBY_VER} >= 1.7
|
|
|
|
MAKE_ARGS= sitelibdir='$$(rubylibdir)'
|
|
|
|
.endif
|
|
|
|
|
2000-09-07 02:03:36 +02:00
|
|
|
.if defined(PKGNAMEPREFIX)
|
|
|
|
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
|
|
|
|
.else
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2000-08-12 22:09:41 +02:00
|
|
|
.endif
|
2000-09-07 02:03:36 +02:00
|
|
|
|
2001-03-19 12:13:39 +01:00
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
2002-03-30 13:12:53 +01:00
|
|
|
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT}; ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
|
2001-03-19 12:13:39 +01:00
|
|
|
|
2000-09-07 02:03:36 +02:00
|
|
|
post-install:
|
2000-08-12 22:09:41 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 23:38:34 +02:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
2003-08-18 05:43:50 +02:00
|
|
|
${CP} -R ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
|
2004-05-02 22:30:11 +02:00
|
|
|
.if ${RUBY_VER} >= 1.8
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
2006-01-14 15:51:16 +01:00
|
|
|
.for d in MANUAL_tcltklib.eng MANUAL_tcltklib.eucj README.fork README.1st README.ActiveTcl README.tcltklib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${d} ${RUBY_MODDOCDIR}/
|
|
|
|
.endfor
|
2004-05-02 22:30:11 +02:00
|
|
|
.endif
|
1999-11-14 02:39:00 +01:00
|
|
|
.endif
|
|
|
|
|
2000-09-07 02:03:36 +02:00
|
|
|
.include <bsd.port.post.mk>
|