diff options
author | wiz <wiz@pkgsrc.org> | 2014-12-30 15:58:20 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-12-30 15:58:20 +0000 |
commit | 3c094ac60515214d1567c76cb6441b197e3243c4 (patch) | |
tree | 5b40f48308d87b6f048bfa90d11c5503b28c9627 /graphics/qore-glut-module | |
parent | e5f43a7521b85c282d6e61093c55b66e7000c12c (diff) | |
download | pkgsrc-3c094ac60515214d1567c76cb6441b197e3243c4.tar.gz |
Import qore-glut-module-0.0.3nb3 as graphics/qore-glut-module,
packaged for wip by nros.
GLUT Qore module. This module provides GLUT bindings for the Qore
language.
Diffstat (limited to 'graphics/qore-glut-module')
-rw-r--r-- | graphics/qore-glut-module/DESCR | 2 | ||||
-rw-r--r-- | graphics/qore-glut-module/Makefile | 26 | ||||
-rw-r--r-- | graphics/qore-glut-module/PLIST | 2 | ||||
-rw-r--r-- | graphics/qore-glut-module/buildlink3.mk | 15 | ||||
-rw-r--r-- | graphics/qore-glut-module/distinfo | 7 | ||||
-rw-r--r-- | graphics/qore-glut-module/options.mk | 12 | ||||
-rw-r--r-- | graphics/qore-glut-module/patches/patch-configure | 13 | ||||
-rw-r--r-- | graphics/qore-glut-module/patches/patch-src_glut.cc | 25 |
8 files changed, 102 insertions, 0 deletions
diff --git a/graphics/qore-glut-module/DESCR b/graphics/qore-glut-module/DESCR new file mode 100644 index 00000000000..150ef6bed5d --- /dev/null +++ b/graphics/qore-glut-module/DESCR @@ -0,0 +1,2 @@ +GLUT Qore module. This module provides GLUT bindings for the Qore +language. diff --git a/graphics/qore-glut-module/Makefile b/graphics/qore-glut-module/Makefile new file mode 100644 index 00000000000..d0b294873f8 --- /dev/null +++ b/graphics/qore-glut-module/Makefile @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1 2014/12/30 15:58:20 wiz Exp $ + +DISTNAME= qore-glut-module-0.0.3 +PKGREVISION= 3 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qore/} + +MAINTAINER= nros@users.sourceforge.net +HOMEPAGE= http://www.qore.org/ +COMMENT= GLUT Qore bindings +LICENSE= gnu-lgpl-v2.1 + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_LANGUAGES= c c++ +PTHREAD_OPTS+= native + +CONFIGURE_ARGS+=--with-glut=${BUILDLINK_PREFIX.glut} + +.include "options.mk" + +.include "../../graphics/glut/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../lang/qore/module.mk" +.include "../../graphics/qore-opengl-module/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/qore-glut-module/PLIST b/graphics/qore-glut-module/PLIST new file mode 100644 index 00000000000..bf5d8026c11 --- /dev/null +++ b/graphics/qore-glut-module/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2014/12/30 15:58:20 wiz Exp $ +${QORE_MODULE_DIR}/glut-api-${QORE_MODULE_API}.qmod diff --git a/graphics/qore-glut-module/buildlink3.mk b/graphics/qore-glut-module/buildlink3.mk new file mode 100644 index 00000000000..e81ddf2fe42 --- /dev/null +++ b/graphics/qore-glut-module/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2014/12/30 15:58:20 wiz Exp $ +# + +BUILDLINK_TREE+= qore-glut-module + +.if !defined(QORE_GLUT_MODULE_BUILDLINK3_MK) +QORE_GLUT_MODULE_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.qore-glut-module+= qore-glut-module>=0.0.3 +BUILDLINK_PKGSRCDIR.qore-glut-module?= ../../graphics/qore-glut-module + +.include "../../graphics/qore-opengl-module/buildlink3.mk" +.endif # QORE_GLUT_MODULE_BUILDLINK3_MK + +BUILDLINK_TREE+= -qore-glut-module diff --git a/graphics/qore-glut-module/distinfo b/graphics/qore-glut-module/distinfo new file mode 100644 index 00000000000..c5d43baaed3 --- /dev/null +++ b/graphics/qore-glut-module/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2014/12/30 15:58:20 wiz Exp $ + +SHA1 (qore-glut-module-0.0.3.tar.gz) = 59c5ba422fedff6cc53bf518c975a81cfbcd5e85 +RMD160 (qore-glut-module-0.0.3.tar.gz) = 63130c9996b4312c1d135b408848f357cdfeb686 +Size (qore-glut-module-0.0.3.tar.gz) = 383235 bytes +SHA1 (patch-configure) = 5258dda7b25c3a19542553baf96f9952c24db413 +SHA1 (patch-src_glut.cc) = 5025bf224159c68144d7954ce6b6a6a8a330f56c diff --git a/graphics/qore-glut-module/options.mk b/graphics/qore-glut-module/options.mk new file mode 100644 index 00000000000..dd12adf3218 --- /dev/null +++ b/graphics/qore-glut-module/options.mk @@ -0,0 +1,12 @@ +# $NetBSD: options.mk,v 1.1 2014/12/30 15:58:20 wiz Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.qore-glut-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-glut-module/patches/patch-configure b/graphics/qore-glut-module/patches/patch-configure new file mode 100644 index 00000000000..07445fd5f75 --- /dev/null +++ b/graphics/qore-glut-module/patches/patch-configure @@ -0,0 +1,13 @@ +$NetBSD: patch-configure,v 1.1 2014/12/30 15:58:21 wiz Exp $ +pkgsrc doesn't have lib64 so don't set it (fixes build on linux). +http://sf.net/p/qore/code/6817/ +--- configure.orig 2014-11-01 14:04:18.108550253 +0000 ++++ configure +@@ -15426,7 +15426,6 @@ if test "$enable_64bit" = "yes"; then + *linux*) if test "$GXX" = "yes"; then + CXXFLAGS="$CXXFLAGS -m64" + fi +- LIBSUFFIX=64 + + ;; + *hpux*) if test "$host_cpu" = "ia64"; then diff --git a/graphics/qore-glut-module/patches/patch-src_glut.cc b/graphics/qore-glut-module/patches/patch-src_glut.cc new file mode 100644 index 00000000000..204b6bcf4b3 --- /dev/null +++ b/graphics/qore-glut-module/patches/patch-src_glut.cc @@ -0,0 +1,25 @@ +$NetBSD: patch-src_glut.cc,v 1.1 2014/12/30 15:58:21 wiz Exp $ +Remove duplicate function additions. +This is fixed in the svn version of this packege +so remove this patch on the next update. +--- src/glut.cc.orig 2009-01-23 15:34:09.000000000 +0000 ++++ src/glut.cc +@@ -1961,18 +1961,12 @@ static QoreStringNode *glut_module_init( + builtinFunctions.add("glutRemoveMenuItem", f_glutRemoveMenuItem, QDOM_GUI); + builtinFunctions.add("glutAttachMenu", f_glutAttachMenu, QDOM_GUI); + builtinFunctions.add("glutDetachMenu", f_glutDetachMenu, QDOM_GUI); +- builtinFunctions.add("glutDisplayFunc", f_glutDisplayFunc, QDOM_GUI); +- builtinFunctions.add("glutReshapeFunc", f_glutReshapeFunc, QDOM_GUI); +- builtinFunctions.add("glutKeyboardFunc", f_glutKeyboardFunc, QDOM_GUI); + builtinFunctions.add("glutMouseFunc", f_glutMouseFunc, QDOM_GUI); + builtinFunctions.add("glutMotionFunc", f_glutMotionFunc, QDOM_GUI); + builtinFunctions.add("glutPassiveMotionFunc", f_glutPassiveMotionFunc, QDOM_GUI); + builtinFunctions.add("glutEntryFunc", f_glutEntryFunc, QDOM_GUI); +- builtinFunctions.add("glutVisibilityFunc", f_glutVisibilityFunc, QDOM_GUI); +- builtinFunctions.add("glutIdleFunc", f_glutIdleFunc, QDOM_GUI); + builtinFunctions.add("glutTimerFunc", f_glutTimerFunc, QDOM_GUI); + builtinFunctions.add("glutMenuStateFunc", f_glutMenuStateFunc, QDOM_GUI); +- builtinFunctions.add("glutSpecialFunc", f_glutSpecialFunc, QDOM_GUI); + builtinFunctions.add("glutSpaceballMotionFunc", f_glutSpaceballMotionFunc, QDOM_GUI); + builtinFunctions.add("glutSpaceballRotateFunc", f_glutSpaceballRotateFunc, QDOM_GUI); + builtinFunctions.add("glutSpaceballButtonFunc", f_glutSpaceballButtonFunc, QDOM_GUI); |