1999-08-26 21:22:50 +00:00
|
|
|
# New ports collection makefile for: ruby-gtk
|
1999-11-14 01:40:41 +00:00
|
|
|
# Version required: 0.22
|
1999-08-26 21:22:50 +00:00
|
|
|
# Date created: 19 April 1999
|
|
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
|
|
|
#
|
1999-08-31 03:04:38 +00:00
|
|
|
# $FreeBSD$
|
1999-08-26 21:22:50 +00:00
|
|
|
#
|
|
|
|
|
1999-11-14 01:40:41 +00:00
|
|
|
DISTNAME= ruby-gtk-0.22
|
1999-08-26 21:22:50 +00:00
|
|
|
CATEGORIES= x11-toolkits
|
|
|
|
MASTER_SITES= http://www.ueda.info.waseda.ac.jp/~igarashi/ruby/ \
|
|
|
|
ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/ \
|
|
|
|
ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/contrib/ \
|
|
|
|
ftp://ftp.iij.ad.jp/pub/lang/ruby/contrib/ \
|
|
|
|
ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/contrib/ \
|
|
|
|
ftp://ftp.krnet.ne.jp/pub/ruby/contrib/ \
|
|
|
|
ftp://mirror.nucba.ac.jp/mirror/ruby/contrib/
|
|
|
|
|
|
|
|
MAINTAINER= yasuf@big.or.jp
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
|
|
|
|
|
|
|
|
USE_XLIB= yes
|
|
|
|
WRKSRC= ${WRKDIR}/gtk
|
|
|
|
PLIST_SUB+= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
|
|
|
1999-11-14 01:40:41 +00:00
|
|
|
RUBY= ${LOCALBASE}/bin/ruby
|
1999-08-26 21:22:50 +00:00
|
|
|
RUBY_VER= 1.4
|
|
|
|
RUBY_ARCH= ${ARCH}-freebsd${OSREL}
|
|
|
|
|
1999-08-28 16:24:21 +00:00
|
|
|
.if defined(NO_IMLIB)
|
1999-08-26 21:22:50 +00:00
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
1999-08-28 16:24:21 +00:00
|
|
|
.else
|
1999-10-08 03:30:33 +00:00
|
|
|
LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib
|
1999-08-28 16:24:21 +00:00
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/imlib-config
|
|
|
|
.endif
|
1999-08-26 21:22:50 +00:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${GTK_CONFIG}
|
|
|
|
|
|
|
|
post-install:
|
1999-08-28 16:24:21 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.rb ${PREFIX}/lib/ruby/${RUBY_VER}
|
1999-08-26 21:22:50 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/gtk
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${PREFIX}/share/examples/ruby/gtk
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/gtk/browser
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.rb ${PREFIX}/share/examples/ruby/gtk/browser
|
1999-08-28 16:24:21 +00:00
|
|
|
.if !defined(NO_IMLIB)
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/gtk/gdkimlib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/gdkimlib/*.rb ${PREFIX}/share/examples/ruby/gtk/gdkimlib
|
|
|
|
.endif
|
1999-08-26 21:22:50 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|