Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 2006 18:47:48 +0300 (MSK)
From:      Igor Pokrovsky <ip@doom.homeunix.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92103: New port: x11-toolkits/otk An OpenGL based GUI widget library
Message-ID:  <200601211547.k0LFlmRV074584@doom.homeunix.org>
Resent-Message-ID: <200601211600.k0LG0L1k015141@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92103
>Category:       ports
>Synopsis:       New port: x11-toolkits/otk An OpenGL based GUI widget library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 21 16:00:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Igor Pokrovsky
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Dec 15 07:51:52 MSK 2005 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL-p3 i386


	
>Description:
Otk is a portable widget library for making graphical user interfaces for
application programs. It emphasizes simplicity without eliminating capability.
It is based on OpenGL, and C. Otk provides the following basic widgets:

 * Panel -		The "container" widget,
 * Text Label -		Text labels,
 * Button -		Buttons with labels and call-backs
			  to user functions,
 * Text Form Box -	Accept text with function call-back,
			  also scrollable editor window,
 * Pull-down Menu -	Display hierarchical menu-lists with user
			  function call-backs on mouse release,
 * Slider Control -	Slider control with call-back,
 * Sub-windows -	Detachable self-managed windows,
 * Gadgets -		High level widgets

and many others.

WWW:   http://otk.sourceforge.net/
	
>How-To-Repeat:
	
>Fix:

	

--- otk.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	otk
#	otk/pkg-descr
#	otk/files
#	otk/files/patch-otk__lib.c
#	otk/files/patch-otk__lib.h
#	otk/distinfo
#	otk/Makefile
#
echo c - otk
mkdir -p otk > /dev/null 2>&1
echo x - otk/pkg-descr
sed 's/^X//' >otk/pkg-descr << 'END-of-otk/pkg-descr'
XOtk is a portable widget library for making graphical user interfaces for
Xapplication programs. It emphasizes simplicity without eliminating capability.
XIt is based on OpenGL, and C. Otk provides the following basic widgets:
X
X * Panel -		The "container" widget,
X * Text Label -		Text labels,
X * Button -		Buttons with labels and call-backs
X		  	  to user functions,
X * Text Form Box -	Accept text with function call-back,
X			  also scrollable editor window,
X * Pull-down Menu -	Display hierarchical menu-lists with user
X			  function call-backs on mouse release,
X * Slider Control -	Slider control with call-back,
X * Sub-windows -	Detachable self-managed windows,
X * Gadgets -		High level widgets
X
Xand many others.
X
XWWW:	http://otk.sourceforge.net/
END-of-otk/pkg-descr
echo c - otk/files
mkdir -p otk/files > /dev/null 2>&1
echo x - otk/files/patch-otk__lib.c
sed 's/^X//' >otk/files/patch-otk__lib.c << 'END-of-otk/files/patch-otk__lib.c'
X--- otk_lib.c.orig
X+++ otk_lib.c
X@@ -70,6 +70,7 @@
X 
X #if (PLATFORM_KIND==Posix_Platform)
X  // #include <unistd.h>
X+ #include <sys/time.h>
X  #define GlutEnabled 0	/* Choice: 0=Use X-windows, 1=Use Glut. */
X  #define WinGLEnabled 0
X  #ifndef SocEnabled
X@@ -111,6 +112,7 @@
X #endif
X 
X #include "otk_lib.h"
X+#include "gadget_lib.h"
X 
X int Otk_verbose=0;
X int OtkWindowSizeX=-1, OtkWindowSizeY=-1;
X@@ -4517,3 +4519,5 @@
X  glutMainLoop();
X #endif
X }
X+
X+#include "gadget_lib.c"
END-of-otk/files/patch-otk__lib.c
echo x - otk/files/patch-otk__lib.h
sed 's/^X//' >otk/files/patch-otk__lib.h << 'END-of-otk/files/patch-otk__lib.h'
X--- otk_lib.h.orig
X+++ otk_lib.h
X@@ -283,4 +283,7 @@
X 
X OtkFont *Otk_Read_SVG_Font( char *filename );  /* FONTS insertion */
X 
X+extern struct OtkObjectInstance *OtkRootObject, *OtkOuterWindow,
X+		*Otk_keyboard_focus, *Otk_OpenMenu;
X+
X #endif
END-of-otk/files/patch-otk__lib.h
echo x - otk/distinfo
sed 's/^X//' >otk/distinfo << 'END-of-otk/distinfo'
XMD5 (otk_lib_v0.40.tar.gz) = 30cff8d872aa6457e359f345555d3c22
XSHA256 (otk_lib_v0.40.tar.gz) = 867d6d17b1277598d5f5bdb4b9d353c994d0982c7b6b4e01942ebd0f4a1796af
XSIZE (otk_lib_v0.40.tar.gz) = 60273
END-of-otk/distinfo
echo x - otk/Makefile
sed 's/^X//' >otk/Makefile << 'END-of-otk/Makefile'
X# New ports collection makefile for:	otk
X# Date created:		21 Jan 2006
X# Whom:			Igor Pokrovsky <ip@doom.homeunix.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	otk
XPORTVERSION=	0.40
XCATEGORIES=	x11-toolkits graphics
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTNAME=	${PORTNAME}_lib_v${PORTVERSION}
X
XMAINTAINER=	ip@doom.homeunix.org
XCOMMENT=	An OpenGL based GUI widget library
X
XUSE_GL=		yes
XUSE_X_PREFIX=	yes
XWRKSRC=		${WRKDIR}/${PORTNAME}_lib
X
XPLIST_FILES=	lib/libotk.a include/gadget_lib.h include/otk_lib.h
X
Xdo-build:
X	cd ${WRKSRC} && \
X		${CC} ${CFLAGS} -I${X11BASE}/include -c ./otk_lib.c && \
X		ar q ./libotk.a ./otk_lib.o && ranlib ./libotk.a
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/libotk.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include
X
X.include <bsd.port.mk>
END-of-otk/Makefile
exit
--- otk.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601211547.k0LFlmRV074584>