summaryrefslogtreecommitdiff
path: root/x11/ruby-gtk/Makefile
diff options
context:
space:
mode:
authorsakamoto <sakamoto@pkgsrc.org>1999-09-17 05:00:21 +0000
committersakamoto <sakamoto@pkgsrc.org>1999-09-17 05:00:21 +0000
commitb977b5db997c49eb122896969580e806e522379b (patch)
treea058075229aac2a928382d9895964c1d7afec252 /x11/ruby-gtk/Makefile
parentaaf3420684c32d4a12acfab52d91e53d5e36d3e7 (diff)
downloadpkgsrc-b977b5db997c49eb122896969580e806e522379b.tar.gz
Adapt this package to NetBSD.
Diffstat (limited to 'x11/ruby-gtk/Makefile')
-rw-r--r--x11/ruby-gtk/Makefile39
1 files changed, 12 insertions, 27 deletions
diff --git a/x11/ruby-gtk/Makefile b/x11/ruby-gtk/Makefile
index 296c284d243..5bd18c74c34 100644
--- a/x11/ruby-gtk/Makefile
+++ b/x11/ruby-gtk/Makefile
@@ -1,13 +1,8 @@
-# New ports collection makefile for: ruby-gtk
-# Version required: 0.21
-# Date created: 19 April 1999
-# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
-#
-# $FreeBSD: ports/x11-toolkits/ruby-gtk/Makefile,v 1.3 1999/08/31 02:59:33 peter Exp $
-#
+# $NetBSD: Makefile,v 1.2 1999/09/17 05:00:21 sakamoto Exp $
+# FreeBSD Id: ports/x11-toolkits/ruby-gtk/Makefile,v 1.3 1999/08/31 02:59:33 peter Exp
DISTNAME= ruby-gtk-0.21
-CATEGORIES= x11-toolkits
+CATEGORIES= x11
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/ \
@@ -16,29 +11,21 @@ MASTER_SITES= http://www.ueda.info.waseda.ac.jp/~igarashi/ruby/ \
ftp://ftp.krnet.ne.jp/pub/ruby/contrib/ \
ftp://mirror.nucba.ac.jp/mirror/ruby/contrib/
-MAINTAINER= yasuf@big.or.jp
+MAINTAINER= sakamoto@netbsd.org
+HOMEPAGE= http://www.ueda.info.waseda.ac.jp/~igarashi/ruby/gtk.html
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+DEPENDS+= ruby-1.4.2:../../lang/ruby
+DEPENDS+= gtk+-1.2.4:../../x11/gtk
+DEPENDS+= imlib-1.9.4:../../graphics/imlib
-USE_XLIB= yes
+USE_X11= YES
WRKSRC= ${WRKDIR}/gtk
-PLIST_SUB+= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
+PLIST_SUBST= RUBY_VERSION=1.4
RUBY= ${PREFIX}/bin/ruby
-RUBY_VER= 1.4
-RUBY_ARCH= ${ARCH}-freebsd${OSREL}
-
-.if defined(NO_IMLIB)
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-.else
-LIB_DEPENDS+= Imlib.4:${PORTSDIR}/graphics/imlib
-GTK_CONFIG?= ${X11BASE}/bin/imlib-config
-.endif
do-configure:
- @cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${GTK_CONFIG}
+ @(cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${GTK_CONFIG})
post-install:
${INSTALL_DATA} ${WRKSRC}/lib/*.rb ${PREFIX}/lib/ruby/${RUBY_VER}
@@ -46,9 +33,7 @@ post-install:
${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
-.if !defined(NO_IMLIB)
${MKDIR} ${PREFIX}/share/examples/ruby/gtk/gdkimlib
${INSTALL_DATA} ${WRKSRC}/sample/gdkimlib/*.rb ${PREFIX}/share/examples/ruby/gtk/gdkimlib
-.endif
-.include <bsd.port.mk>
+.include "../../mk/bsd.pkg.mk"