aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/ruby-fltk
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
commit6be33926020dcfa43ec8a1bf94700238962f3b92 (patch)
treeb915338a31558eaf368cfd16cdf2b7ec1e6e80db /x11-toolkits/ruby-fltk
parent79507948280cacb290417077cbdc3e8420c3f9c1 (diff)
downloadports-6be33926020dcfa43ec8a1bf94700238962f3b92.tar.gz
ports-6be33926020dcfa43ec8a1bf94700238962f3b92.zip
Notes
Diffstat (limited to 'x11-toolkits/ruby-fltk')
-rw-r--r--x11-toolkits/ruby-fltk/Makefile35
-rw-r--r--x11-toolkits/ruby-fltk/pkg-plist14
2 files changed, 22 insertions, 27 deletions
diff --git a/x11-toolkits/ruby-fltk/Makefile b/x11-toolkits/ruby-fltk/Makefile
index 11d4a2dc8db0..25907fdb7023 100644
--- a/x11-toolkits/ruby-fltk/Makefile
+++ b/x11-toolkits/ruby-fltk/Makefile
@@ -9,40 +9,35 @@ PORTNAME= fltk
PORTVERSION= 20000618
CATEGORIES= x11-toolkits ruby
MASTER_SITES= http://kt-www.jaist.ac.jp:8000/~ttate/ftp/
-PKGNAMEPREFIX= ruby-
-DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
USE_MESA= yes
+USE_GMAKE= yes
+
WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALL_TARGET= site-install
CONFIGURE_ARGS= --with-fltk-dir="${X11BASE}" --with-gl-dir="${X11BASE}"
MAKE_ARGS= LOCAL_LIBS="-lgcc"
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/fltk
- ${INSTALL_DATA} ${WRKSRC}/test/adjuster.rb ${PREFIX}/share/examples/ruby/fltk/
- ${MKDIR} ${PREFIX}/share/doc/ruby/fltk/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/fltk/
- ${INSTALL_DATA} ${WRKSRC}/README.jp ${PREFIX}/share/doc/ruby/fltk/ja/
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/fltk
+ ${INSTALL_DATA} ${WRKSRC}/test/adjuster.rb ${RUBY_EXAMPLESDIR}/fltk/
+ ${MKDIR} ${RUBY_DOCDIR}/fltk/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/fltk/
+ ${INSTALL_DATA} ${WRKSRC}/README.jp ${RUBY_DOCDIR}/fltk/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/ruby-fltk/pkg-plist b/x11-toolkits/ruby-fltk/pkg-plist
index b9cd5735acb5..bad32ab26325 100644
--- a/x11-toolkits/ruby-fltk/pkg-plist
+++ b/x11-toolkits/ruby-fltk/pkg-plist
@@ -1,7 +1,7 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/fltk.so
-share/examples/ruby/fltk/adjuster.rb
-@dirrm share/examples/ruby/fltk
-share/doc/ruby/fltk/README
-share/doc/ruby/fltk/ja/README.jp
-@dirrm share/doc/ruby/fltk/ja
-@dirrm share/doc/ruby/fltk
+%%RUBY_SITEARCHLIBDIR%%/fltk.so
+%%RUBY_EXAMPLESDIR%%/fltk/adjuster.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/fltk
+%%RUBY_DOCDIR%%/fltk/README
+%%RUBY_DOCDIR%%/fltk/ja/README.jp
+@dirrm %%RUBY_DOCDIR%%/fltk/ja
+@dirrm %%RUBY_DOCDIR%%/fltk