summaryrefslogtreecommitdiff
path: root/graphics/qore-opengl-module
diff options
context:
space:
mode:
authorwiz <wiz>2014-12-30 15:57:09 +0000
committerwiz <wiz>2014-12-30 15:57:09 +0000
commitc0a42021aedb32ba1a17d8ad9cd12db9f149166b (patch)
tree9d529d6c03a47bf8b3d7929203ac3c164108076d /graphics/qore-opengl-module
parent5ea5927cff29f205e45edd4718f11f3ede0018d5 (diff)
downloadpkgsrc-c0a42021aedb32ba1a17d8ad9cd12db9f149166b.tar.gz
Import qore-opengl-module-0.0.3nb4 as graphics/qore-opengl-module,
packaged for wip by nros. Opengl module for Qore. This module provides Opengl language bindings for Qore.
Diffstat (limited to 'graphics/qore-opengl-module')
-rw-r--r--graphics/qore-opengl-module/DESCR2
-rw-r--r--graphics/qore-opengl-module/Makefile36
-rw-r--r--graphics/qore-opengl-module/PLIST3
-rw-r--r--graphics/qore-opengl-module/buildlink3.mk15
-rw-r--r--graphics/qore-opengl-module/distinfo8
-rw-r--r--graphics/qore-opengl-module/options.mk12
-rw-r--r--graphics/qore-opengl-module/patches/patch-configure.ac24
-rw-r--r--graphics/qore-opengl-module/patches/patch-src_Makefile.am11
-rw-r--r--graphics/qore-opengl-module/patches/patch-src_opengl.cc16
9 files changed, 127 insertions, 0 deletions
diff --git a/graphics/qore-opengl-module/DESCR b/graphics/qore-opengl-module/DESCR
new file mode 100644
index 00000000000..939e9aa7abb
--- /dev/null
+++ b/graphics/qore-opengl-module/DESCR
@@ -0,0 +1,2 @@
+Opengl module for Qore. This module provides Opengl language bindings
+for Qore.
diff --git a/graphics/qore-opengl-module/Makefile b/graphics/qore-opengl-module/Makefile
new file mode 100644
index 00000000000..6e5a2f4eab3
--- /dev/null
+++ b/graphics/qore-opengl-module/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2014/12/30 15:57:09 wiz Exp $
+
+DISTNAME= qore-opengl-module-0.0.3
+PKGREVISION= 4
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qore/}
+
+MAINTAINER= nros@users.sourceforge.net
+HOMEPAGE= http://www.qore.org/
+COMMENT= OpenGL Qore bindings
+LICENSE= gnu-lgpl-v2.1
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_LANGUAGES= c c++
+USE_TOOLS+= autoconf automake gmake
+PTHREAD_OPTS+= native
+
+pre-configure:
+ set -e; cd ${WRKSRC}; \
+ aclocal; autoheader; automake -a --foreign -i; autoconf
+
+CONFIGURE_ARGS+=--with-opengl=${BUILDLINK_PREFIX.MesaLib}
+
+INSTALLATION_DIRS+= share/doc/${PKGBASE}
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/docs/opengl-module-doc.html \
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "options.mk"
+
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../lang/qore/buildlink3.mk"
+.include "../../lang/qore/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/qore-opengl-module/PLIST b/graphics/qore-opengl-module/PLIST
new file mode 100644
index 00000000000..ce255c2abae
--- /dev/null
+++ b/graphics/qore-opengl-module/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2014/12/30 15:57:09 wiz Exp $
+${QORE_MODULE_DIR}/opengl-api-${QORE_MODULE_API}.qmod
+share/doc/${PKGBASE}/opengl-module-doc.html
diff --git a/graphics/qore-opengl-module/buildlink3.mk b/graphics/qore-opengl-module/buildlink3.mk
new file mode 100644
index 00000000000..e5e0f1bc027
--- /dev/null
+++ b/graphics/qore-opengl-module/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/12/30 15:57:09 wiz Exp $
+#
+
+BUILDLINK_TREE+= qore-opengl-module
+
+.if !defined(QORE_OPENGL_MODULE_BUILDLINK3_MK)
+QORE_OPENGL_MODULE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.qore-opengl-module+= qore-opengl-module>=0.0.3
+BUILDLINK_PKGSRCDIR.qore-opengl-module?= ../../graphics/qore-opengl-module
+
+.include "../../lang/qore/buildlink3.mk"
+.endif # QORE_OPENGL_MODULE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -qore-opengl-module
diff --git a/graphics/qore-opengl-module/distinfo b/graphics/qore-opengl-module/distinfo
new file mode 100644
index 00000000000..4edd81176f9
--- /dev/null
+++ b/graphics/qore-opengl-module/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2014/12/30 15:57:09 wiz Exp $
+
+SHA1 (qore-opengl-module-0.0.3.tar.gz) = 9e730b267c89d3aac7a381482285232f86823ce7
+RMD160 (qore-opengl-module-0.0.3.tar.gz) = e48d135ee8559cae944cf33a265170194b7d9b92
+Size (qore-opengl-module-0.0.3.tar.gz) = 503304 bytes
+SHA1 (patch-configure.ac) = 421a2832c43db25f98028626e60ba816c1e9f706
+SHA1 (patch-src_Makefile.am) = 376d6e4cf8a84493a868e51582976213a031d37c
+SHA1 (patch-src_opengl.cc) = a09b937d312d71e94eea1eee5c66c2a8be316fcb
diff --git a/graphics/qore-opengl-module/options.mk b/graphics/qore-opengl-module/options.mk
new file mode 100644
index 00000000000..d6771f3f4d4
--- /dev/null
+++ b/graphics/qore-opengl-module/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2014/12/30 15:57:09 wiz Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.qore-opengl-module
+PKG_SUPPORTED_OPTIONS= debug
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+.else
+CONFIGURE_ARGS+= --disable-debug
+.endif
diff --git a/graphics/qore-opengl-module/patches/patch-configure.ac b/graphics/qore-opengl-module/patches/patch-configure.ac
new file mode 100644
index 00000000000..8cfb55022ce
--- /dev/null
+++ b/graphics/qore-opengl-module/patches/patch-configure.ac
@@ -0,0 +1,24 @@
+$NetBSD: patch-configure.ac,v 1.1 2014/12/30 15:57:10 wiz Exp $
+pkgsrc does not use lib64 so don't set it (fixes build on linux).
+http://sf.net/p/qoe/code/6817/
+BSD systems don't have alloca.h but have alloca in stdlib.h.
+http://sourceforge.net/p/qore/code/6300/
+--- configure.ac.orig 2009-09-21 11:55:18.000000000 +0000
++++ configure.ac
+@@ -129,8 +129,6 @@ if test "$enable_64bit" = "yes"; then
+ *linux*) if test "$GXX" = "yes"; then
+ CXXFLAGS="$CXXFLAGS -m64"
+ fi
+- LIBSUFFIX=64
+- AC_SUBST(LIBSUFFIX)
+ ;;
+ *hpux*) if test "$host_cpu" = "ia64"; then
+ if test -n "`echo $CXX|grep aCC`"; then
+@@ -579,6 +577,7 @@ AC_CHECK_MEMBERS([struct stat.st_rdev])
+ AC_HEADER_TIME
+ AC_STRUCT_TM
+ AC_C_VOLATILE
++AC_CHECK_HEADERS([alloca.h])
+
+ # turn on optimizations if we know how
+ if test "$enable_optimization" = "yes"; then
diff --git a/graphics/qore-opengl-module/patches/patch-src_Makefile.am b/graphics/qore-opengl-module/patches/patch-src_Makefile.am
new file mode 100644
index 00000000000..dbeddd39770
--- /dev/null
+++ b/graphics/qore-opengl-module/patches/patch-src_Makefile.am
@@ -0,0 +1,11 @@
+$NetBSD: patch-src_Makefile.am,v 1.1 2014/12/30 15:57:10 wiz Exp $
+* Remove .a file in destdir not in root.
+http://sourceforge.net/p/qore/code/6297/
+--- src/Makefile.am.orig 2014-10-27 13:51:29.000000000 +0000
++++ src/Makefile.am
+@@ -24,4 +24,4 @@ endif
+
+ install-exec-hook:
+ mv $(DESTDIR)$(libdir)/opengl.$(MODULE_SUFFIX) $(DESTDIR)$(libdir)/opengl-api-$(MODULE_API).qmod
+- rm -f $(DESTDIR)$(libdir)/opengl.la $(libdir)/opengl.a
++ rm -f $(DESTDIR)$(libdir)/opengl.la $(DESTDIR)$(libdir)/opengl.a
diff --git a/graphics/qore-opengl-module/patches/patch-src_opengl.cc b/graphics/qore-opengl-module/patches/patch-src_opengl.cc
new file mode 100644
index 00000000000..bb1f8cb9843
--- /dev/null
+++ b/graphics/qore-opengl-module/patches/patch-src_opengl.cc
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_opengl.cc,v 1.1 2014/12/30 15:57:10 wiz Exp $
+
+* alloca is in stdlib.h on bsd systems
+http://sourceforge.net/p/qore/code/6300/
+--- src/opengl.cc.orig 2009-09-21 11:55:18.000000000 +0000
++++ src/opengl.cc
+@@ -22,7 +22,9 @@
+
+ #include "qore-opengl.h"
+
++#ifdef HAVE_ALLOCA_H
+ #include <alloca.h>
++#endif
+
+ static QoreStringNode *opengl_module_init();
+ static void opengl_module_ns_init(QoreNamespace *rns, QoreNamespace *qns);