2000-09-06 20:03:36 -04:00
|
|
|
# New ports collection makefile for: ruby-tcltklib
|
2000-08-12 16:09:41 -04:00
|
|
|
# Date created: 15 March 1999
|
|
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
1999-04-27 08:39:47 -04:00
|
|
|
#
|
1999-08-30 23:04:38 -04:00
|
|
|
# $FreeBSD$
|
1999-04-27 08:39:47 -04:00
|
|
|
#
|
|
|
|
|
2000-09-06 20:03:36 -04:00
|
|
|
PORTNAME= tcltklib
|
2000-10-20 15:56:05 -04:00
|
|
|
PORTVERSION= ${RUBY_PORTVERSION}
|
2000-09-06 20:03:36 -04:00
|
|
|
CATEGORIES+= lang x11-toolkits ruby tcl${TCL_VERSION} tk${TK_VERSION}
|
2001-03-19 06:13:39 -05:00
|
|
|
MASTER_SITES= # none
|
|
|
|
DISTFILES= # none
|
1999-04-27 08:39:47 -04:00
|
|
|
|
2000-09-28 15:33:39 -04:00
|
|
|
MAINTAINER?= knu@FreeBSD.org
|
1999-04-27 08:39:47 -04:00
|
|
|
|
2001-03-19 06:13:39 -05:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch
|
1999-04-27 08:39:47 -04:00
|
|
|
LIB_DEPENDS= ${TCL_LIB}.1:${PORTSDIR}/${TCL_CATEGORY}/tcl${TCL_VERSION} \
|
|
|
|
${TK_LIB}.1:${PORTSDIR}/${TK_CATEGORY}/tk${TK_VERSION}
|
|
|
|
|
2000-09-06 20:03:36 -04:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
1999-04-27 08:39:47 -04:00
|
|
|
USE_XLIB= yes
|
2000-09-28 15:33:39 -04:00
|
|
|
|
2001-03-19 06:13:39 -05:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2000-04-25 03:08:56 -04:00
|
|
|
CONFIGURE_ARGS= --with-tcllib="${TCL_LIB}" --with-tklib="${TK_LIB}" \
|
1999-11-13 20:39:00 -05:00
|
|
|
--with-tcl-lib="${LOCALBASE}/lib/${TCL_DIR}" \
|
|
|
|
--with-tk-lib="${LOCALBASE}/lib/${TK_DIR}" \
|
|
|
|
--with-tcl-include="${LOCALBASE}/include/${TCL_DIR}" \
|
|
|
|
--with-tk-include="${LOCALBASE}/include/${TK_DIR}" \
|
1999-08-26 17:17:23 -04:00
|
|
|
--with-X11-dir="${X11BASE}"
|
1999-11-13 20:39:00 -05:00
|
|
|
|
1999-04-27 08:39:47 -04:00
|
|
|
# Set these vars as the version numbers (without decimal points) of Tcl/Tk
|
|
|
|
# you want to use with Ruby/Tk.
|
|
|
|
# e.g.: make TCL_VERSION=42 TK_VERSION=76 WITH_TCL_JP=yes build
|
1999-11-28 13:32:45 -05:00
|
|
|
TCL_VERSION?= 82
|
|
|
|
TK_VERSION?= 82
|
2000-09-06 20:03:36 -04:00
|
|
|
.if defined(WITH_TCLTK_JP)
|
1999-04-27 08:39:47 -04:00
|
|
|
TCL_CATEGORY= japanese
|
|
|
|
TK_CATEGORY= japanese
|
|
|
|
TCL_JP= jp
|
|
|
|
.else
|
|
|
|
TCL_CATEGORY= lang
|
|
|
|
TK_CATEGORY= x11-toolkits
|
|
|
|
TCL_JP= # empty
|
|
|
|
.endif
|
|
|
|
|
|
|
|
TCL_LIB= tcl${TCL_VERSION}${TCL_JP}
|
|
|
|
TK_LIB= tk${TK_VERSION}${TCL_JP}
|
1999-08-26 17:17:23 -04:00
|
|
|
TCL_DIR= `echo "${TCL_LIB}" | ${SED} 's/\([0-9]\)\([0-9]\)/\1.\2/'`
|
|
|
|
TK_DIR= `echo "${TK_LIB}" | ${SED} 's/\([0-9]\)\([0-9]\)/\1.\2/'`
|
1999-04-27 08:39:47 -04:00
|
|
|
|
2000-09-06 20:03:36 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-04-27 08:39:47 -04:00
|
|
|
|
2000-09-06 20:03:36 -04:00
|
|
|
.if defined(PKGNAMEPREFIX)
|
|
|
|
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
|
|
|
|
.else
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2000-08-12 16:09:41 -04:00
|
|
|
.endif
|
2000-09-06 20:03:36 -04:00
|
|
|
|
2001-03-19 06:13:39 -05:00
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
|
|
|
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT} && ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
|
|
|
|
|
2000-09-06 20:03:36 -04:00
|
|
|
post-install:
|
2000-08-12 16:09:41 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-03-19 06:13:39 -05:00
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
|
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/demo
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/demo/
|
|
|
|
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.euc ${RUBY_DOCDIR}/${PORTNAME}/ja/
|
1999-11-13 20:39:00 -05:00
|
|
|
.endif
|
|
|
|
|
2000-09-06 20:03:36 -04:00
|
|
|
.include <bsd.port.post.mk>
|