1999-08-26 21:22:50 +00:00
|
|
|
# New ports collection makefile for: ruby-gtk
|
|
|
|
# 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
|
|
|
#
|
|
|
|
|
2000-04-10 01:11:24 +00:00
|
|
|
PORTNAME= ruby-gtk
|
|
|
|
PORTVERSION= 0.23
|
1999-08-26 21:22:50 +00:00
|
|
|
CATEGORIES= x11-toolkits
|
2000-04-25 06:57:17 +00:00
|
|
|
MASTER_SITES= http://www.ruby-lang.org/gtk/download/
|
1999-08-26 21:22:50 +00:00
|
|
|
|
2000-04-25 06:57:17 +00:00
|
|
|
MAINTAINER= yasuf@bsdclub.org
|
1999-08-26 21:22:50 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
|
|
|
|
|
|
|
|
USE_XLIB= yes
|
2000-04-25 06:57:17 +00:00
|
|
|
WRKSRC= ${WRKDIR}/gtk-${PORTVERSION}
|
|
|
|
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
1999-08-26 21:22:50 +00:00
|
|
|
|
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}
|
|
|
|
|
2000-04-25 06:57:17 +00:00
|
|
|
.if defined(WITHOUT_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
|
2000-02-23 00:27:25 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/ruby/gtk/ja
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/api/* ${PREFIX}/share/doc/ruby/gtk
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/api-ja/* ${PREFIX}/share/doc/ruby/gtk/ja
|
|
|
|
.endif
|
1999-08-26 21:22:50 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|