aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ruby-qt2gl
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-02-07 14:37:01 +0800
committerknu <knu@FreeBSD.org>2001-02-07 14:37:01 +0800
commitdea0ab2d2c48ff71905d1dc238a5f52fab9cc28b (patch)
tree3cddfe46690dcf2a9b735831a1589a0ee5391793 /graphics/ruby-qt2gl
parentf99c063a0ab3cfa26f3965d64de84d3780563900 (diff)
downloadfreebsd-ports-gnome-dea0ab2d2c48ff71905d1dc238a5f52fab9cc28b.tar.gz
freebsd-ports-gnome-dea0ab2d2c48ff71905d1dc238a5f52fab9cc28b.tar.zst
freebsd-ports-gnome-dea0ab2d2c48ff71905d1dc238a5f52fab9cc28b.zip
Add ruby-qt2gl, Qt2 GL extension for Ruby.
Diffstat (limited to 'graphics/ruby-qt2gl')
-rw-r--r--graphics/ruby-qt2gl/Makefile51
-rw-r--r--graphics/ruby-qt2gl/files/patch-extconf.rb11
-rw-r--r--graphics/ruby-qt2gl/pkg-comment1
-rw-r--r--graphics/ruby-qt2gl/pkg-descr4
-rw-r--r--graphics/ruby-qt2gl/pkg-plist39
5 files changed, 106 insertions, 0 deletions
diff --git a/graphics/ruby-qt2gl/Makefile b/graphics/ruby-qt2gl/Makefile
new file mode 100644
index 000000000000..10b89652c16c
--- /dev/null
+++ b/graphics/ruby-qt2gl/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: Ruby-qt2gl
+# Date created: 7 Feb 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= qt2gl
+PORTVERSION= 0.11
+CATEGORIES= graphics x11-toolkits ruby
+MASTER_SITES= http://sfns.u-shizuoka-ken.ac.jp/geneng/horie_hp/ruby/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-qt2-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+BUILD_DEPENDS= ${RUBY_SITEARCHLIBDIR}/qt2.so:${RUBY_QT2_PORTDIR}
+RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/qt2.so:${RUBY_QT2_PORTDIR} \
+ ${RUBY_SITEARCHLIBDIR}/opengl.so:${PORTSDIR}/graphics/ruby-opengl
+
+RUBY_QT2_PORTDIR= ${PORTSDIR}/x11-toolkits/ruby-qt2
+
+MD5_FILE= ${RUBY_QT2_PORTDIR}/distinfo
+
+USE_MESA= yes
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+USE_GMAKE= yes
+
+WRKSRC= ${WRKDIR}/qt2/modules/opengl
+CONFIGURE_ARGS= --with-qt2-include=${X11BASE}/include/qt2 \
+ --with-qt2-lib=${X11BASE}/lib \
+ --with-qt2=qt2 \
+ --with-x11-dir=${X11BASE}
+MAKE_ARGS= LOCAL_LIBS=-lgcc
+INSTALL_TARGET= site-install
+
+post-extract:
+ find ${WRKSRC} '(' -name .cvsignore -o -name a.out ')' -delete
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/qt2gl
+ ${CP} -R ${WRKSRC}/examples/* ${RUBY_EXAMPLESDIR}/qt2gl/
+ ${MKDIR} ${RUBY_DOCDIR}/qt2gl
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/qt2gl/
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/ruby-qt2gl/files/patch-extconf.rb b/graphics/ruby-qt2gl/files/patch-extconf.rb
new file mode 100644
index 000000000000..66a127f2a652
--- /dev/null
+++ b/graphics/ruby-qt2gl/files/patch-extconf.rb
@@ -0,0 +1,11 @@
+--- extconf.rb.orig Mon Jan 15 13:37:15 2001
++++ extconf.rb Wed Feb 7 14:53:24 2001
+@@ -20,7 +20,7 @@
+
+ $CFLAGS += ' -I. -O -w '
+
+-if have_header('qapplication.h') and have_header('qgl.h') and have_library('qt','qGLVersion__Fv')
++if have_header('qapplication.h') and have_header('qgl.h') and have_library(qt2,'qGLVersion__Fv')
+ create_makefile('qt2gl')
+ else
+ print "You do not seem to have qt(+qgl) library. Plrease check qt or extconf.rb.\n"
diff --git a/graphics/ruby-qt2gl/pkg-comment b/graphics/ruby-qt2gl/pkg-comment
new file mode 100644
index 000000000000..0ff347ebc5bb
--- /dev/null
+++ b/graphics/ruby-qt2gl/pkg-comment
@@ -0,0 +1 @@
+Qt2 GL extension for Ruby
diff --git a/graphics/ruby-qt2gl/pkg-descr b/graphics/ruby-qt2gl/pkg-descr
new file mode 100644
index 000000000000..a4d051a86a0f
--- /dev/null
+++ b/graphics/ruby-qt2gl/pkg-descr
@@ -0,0 +1,4 @@
+This is a Qt2 GL extension for Ruby.
+
+Author: Nobuyuki Horie <horie@smail.u-shizuoka-ken.ac.jp>
+WWW: http://sfns.u-shizuoka-ken.ac.jp/geneng/horie_hp/ruby/index.html
diff --git a/graphics/ruby-qt2gl/pkg-plist b/graphics/ruby-qt2gl/pkg-plist
new file mode 100644
index 000000000000..6b1c2399ca61
--- /dev/null
+++ b/graphics/ruby-qt2gl/pkg-plist
@@ -0,0 +1,39 @@
+%%RUBY_SITEARCHLIBDIR%%/qt2gl.so
+%%RUBY_EXAMPLESDIR%%/qt2gl/box/README.orig
+%%RUBY_EXAMPLESDIR%%/qt2gl/box/box.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/box/glbox.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/box/globjwin.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/gear/README.orig
+%%RUBY_EXAMPLESDIR%%/qt2gl/gear/gear.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/gear/gear2.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/glpixmap/README.orig
+%%RUBY_EXAMPLESDIR%%/qt2gl/glpixmap/glbox.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/glpixmap/globjwin.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/glpixmap/glpixmap.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/sharedbox/README.orig
+%%RUBY_EXAMPLESDIR%%/qt2gl/sharedbox/glbox.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/sharedbox/globjwin.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/sharedbox/sharedbox.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/README.orig
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/gllogo.bmp
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/globjwin.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/gltexobj.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/qtlogo.bmp
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture_rb/book.bmp
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture_rb/book.gif
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture_rb/book.xpm
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture_rb/gllogo.bmp
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture_rb/globjwin.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture_rb/gltexobj.rb
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture_rb/qtlogo.bmp
+%%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture_rb/texture.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/qt2gl/texture/texture_rb
+@dirrm %%RUBY_EXAMPLESDIR%%/qt2gl/texture
+@dirrm %%RUBY_EXAMPLESDIR%%/qt2gl/sharedbox
+@dirrm %%RUBY_EXAMPLESDIR%%/qt2gl/glpixmap
+@dirrm %%RUBY_EXAMPLESDIR%%/qt2gl/gear
+@dirrm %%RUBY_EXAMPLESDIR%%/qt2gl/box
+@dirrm %%RUBY_EXAMPLESDIR%%/qt2gl
+%%RUBY_DOCDIR%%/qt2gl/README
+@dirrm %%RUBY_DOCDIR%%/qt2gl