Tue Dec 30 15:58:21 2014 UTC ()
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.


(wiz)
diff -r0 -r1.1 pkgsrc/graphics/qore-glut-module/DESCR
diff -r0 -r1.1 pkgsrc/graphics/qore-glut-module/Makefile
diff -r0 -r1.1 pkgsrc/graphics/qore-glut-module/PLIST
diff -r0 -r1.1 pkgsrc/graphics/qore-glut-module/buildlink3.mk
diff -r0 -r1.1 pkgsrc/graphics/qore-glut-module/distinfo
diff -r0 -r1.1 pkgsrc/graphics/qore-glut-module/options.mk
diff -r0 -r1.1 pkgsrc/graphics/qore-glut-module/patches/patch-configure
diff -r0 -r1.1 pkgsrc/graphics/qore-glut-module/patches/patch-src_glut.cc

File Added: pkgsrc/graphics/qore-glut-module/Attic/DESCR
GLUT Qore module. This module provides GLUT bindings for the Qore
language.

File Added: pkgsrc/graphics/qore-glut-module/Attic/Makefile
# $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"

File Added: pkgsrc/graphics/qore-glut-module/Attic/PLIST
@comment $NetBSD: PLIST,v 1.1 2014/12/30 15:58:20 wiz Exp $
${QORE_MODULE_DIR}/glut-api-${QORE_MODULE_API}.qmod

File Added: pkgsrc/graphics/qore-glut-module/Attic/buildlink3.mk
# $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

File Added: pkgsrc/graphics/qore-glut-module/Attic/distinfo
$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

File Added: pkgsrc/graphics/qore-glut-module/Attic/options.mk
# $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

File Added: pkgsrc/graphics/qore-glut-module/patches/Attic/patch-configure
$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

File Added: pkgsrc/graphics/qore-glut-module/patches/Attic/patch-src_glut.cc
$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);