1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/x11-toolkits/ruby-tk/Makefile
Steve Price bc087374d3 Update to use Tcl/Tk version 8.2.
Submitted by:	Ade Lovett <ade@lovett.com>
1999-11-28 18:32:45 +00:00

97 lines
2.8 KiB
Makefile

# New ports collection makefile for: rubytk
# Version required: 1.4.2
# Date created: 15 March 1999
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
#
# $FreeBSD$
#
DISTNAME= ruby-${VERSION}
PKGNAME?= rubytk-${VERSION}
CATEGORIES?= x11-toolkits
MASTER_SITES= ftp://ftp.netlab.co.jp/pub/lang/ruby/${BRANCH_NAME}/ \
ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/${BRANCH_NAME}/ \
ftp://ftp.iij.ad.jp/pub/lang/ruby/${BRANCH_NAME}/ \
ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/${BRANCH_NAME}/ \
ftp://ftp.krnet.ne.jp/pub/ruby/${BRANCH_NAME}/ \
ftp://mirror.nucba.ac.jp/mirror/ruby/${BRANCH_NAME}/
MAINTAINER?= yasuf@big.or.jp
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= ${TCL_LIB}.1:${PORTSDIR}/${TCL_CATEGORY}/tcl${TCL_VERSION} \
${TK_LIB}.1:${PORTSDIR}/${TK_CATEGORY}/tk${TK_VERSION}
USE_XLIB= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/ext
CONFIGURE_ARGS+= --with-tcllib="${TCL_LIB}" --with-tklib="${TK_LIB}" \
--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}" \
--with-X11-dir="${X11BASE}"
PLIST_SUB+= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
VERSION= 1.4.2
BRANCH_NAME= 1.4
RUBY_VER= 1.4
RUBY_ARCH= ${ARCH}-freebsd${OSREL}
DOCDIR= ${PREFIX}/share/doc/ruby
EXAMPLESDIR= ${PREFIX}/share/examples/ruby
# 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
TCL_VERSION?= 82
TK_VERSION?= 82
.if defined(WITH_TCL_JP)
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}
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/'`
RUBY= ${LOCALBASE}/bin/ruby
EXTS= tcltklib tk
do-configure:
.for dir in ${EXTS}
@${ECHO_MSG} "Configuring in ${dir}..."
@cd ${WRKSRC}/${dir}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
.endfor
do-build:
.for dir in ${EXTS}
@${ECHO_MSG} "Building in ${dir}..."
@cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${MAKE} ${ALL_TARGET}
.endfor
do-install:
.for dir in ${EXTS}
@${ECHO_MSG} "Installing in ${dir}..."
@cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${MAKE} ${INSTALL_TARGET}
${MKDIR} ${EXAMPLESDIR}/${dir}
${INSTALL_DATA} ${WRKSRC}/${dir}/sample/* ${EXAMPLESDIR}/${dir}
.endfor
post-install:
${MKDIR} ${EXAMPLESDIR}/tcltklib/demo
${INSTALL_DATA} ${WRKSRC}/tcltklib/demo/* ${EXAMPLESDIR}/tcltklib/demo
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCDIR}/tcltklib
${INSTALL_DATA} ${WRKSRC}/tcltklib/*.euc ${DOCDIR}/tcltklib
.endif
.include <bsd.port.mk>