diff options
author | sem <sem@FreeBSD.org> | 2006-01-22 01:47:19 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2006-01-22 01:47:19 +0800 |
commit | 55cc4f157caeca6dd0d13121807c994275505fc4 (patch) | |
tree | 1a1c2515df5467e2e52de3a0d6324968d1881448 /x11-toolkits/otk | |
parent | 969da294ca496115ecc0d10118ccfd463ab4fb86 (diff) | |
download | freebsd-ports-gnome-55cc4f157caeca6dd0d13121807c994275505fc4.tar.gz freebsd-ports-gnome-55cc4f157caeca6dd0d13121807c994275505fc4.tar.zst freebsd-ports-gnome-55cc4f157caeca6dd0d13121807c994275505fc4.zip |
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.
WWW: http://otk.sourceforge.net/
PR: ports/92103
Submitted by: Igor Pokrovsky <ip@doom.homeunix.org>
Diffstat (limited to 'x11-toolkits/otk')
-rw-r--r-- | x11-toolkits/otk/Makefile | 33 | ||||
-rw-r--r-- | x11-toolkits/otk/distinfo | 3 | ||||
-rw-r--r-- | x11-toolkits/otk/files/patch-otk__lib.c | 24 | ||||
-rw-r--r-- | x11-toolkits/otk/files/patch-otk__lib.h | 10 | ||||
-rw-r--r-- | x11-toolkits/otk/pkg-descr | 19 |
5 files changed, 89 insertions, 0 deletions
diff --git a/x11-toolkits/otk/Makefile b/x11-toolkits/otk/Makefile new file mode 100644 index 000000000000..5841545944ba --- /dev/null +++ b/x11-toolkits/otk/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: otk +# Date created: 21 Jan 2006 +# Whom: Igor Pokrovsky <ip@doom.homeunix.org> +# +# $FreeBSD$ +# + +PORTNAME= otk +PORTVERSION= 0.40 +CATEGORIES= x11-toolkits graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}_lib_v${PORTVERSION} + +MAINTAINER= ip@doom.homeunix.org +COMMENT= An OpenGL based GUI widget library + +USE_GL= yes +USE_X_PREFIX= yes +WRKSRC= ${WRKDIR}/${PORTNAME}_lib + +PLIST_FILES= lib/libotk.a include/gadget_lib.h include/otk_lib.h + +do-build: + cd ${WRKSRC} && \ + ${CC} ${CFLAGS} -I${X11BASE}/include -c ./otk_lib.c && \ + ar q ./libotk.a ./otk_lib.o && ranlib ./libotk.a + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libotk.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include + +.include <bsd.port.mk> diff --git a/x11-toolkits/otk/distinfo b/x11-toolkits/otk/distinfo new file mode 100644 index 000000000000..5d08bbd27572 --- /dev/null +++ b/x11-toolkits/otk/distinfo @@ -0,0 +1,3 @@ +MD5 (otk_lib_v0.40.tar.gz) = 30cff8d872aa6457e359f345555d3c22 +SHA256 (otk_lib_v0.40.tar.gz) = 867d6d17b1277598d5f5bdb4b9d353c994d0982c7b6b4e01942ebd0f4a1796af +SIZE (otk_lib_v0.40.tar.gz) = 60273 diff --git a/x11-toolkits/otk/files/patch-otk__lib.c b/x11-toolkits/otk/files/patch-otk__lib.c new file mode 100644 index 000000000000..856d7ba5724c --- /dev/null +++ b/x11-toolkits/otk/files/patch-otk__lib.c @@ -0,0 +1,24 @@ +--- otk_lib.c.orig ++++ otk_lib.c +@@ -70,6 +70,7 @@ + + #if (PLATFORM_KIND==Posix_Platform) + // #include <unistd.h> ++ #include <sys/time.h> + #define GlutEnabled 0 /* Choice: 0=Use X-windows, 1=Use Glut. */ + #define WinGLEnabled 0 + #ifndef SocEnabled +@@ -111,6 +112,7 @@ + #endif + + #include "otk_lib.h" ++#include "gadget_lib.h" + + int Otk_verbose=0; + int OtkWindowSizeX=-1, OtkWindowSizeY=-1; +@@ -4517,3 +4519,5 @@ + glutMainLoop(); + #endif + } ++ ++#include "gadget_lib.c" diff --git a/x11-toolkits/otk/files/patch-otk__lib.h b/x11-toolkits/otk/files/patch-otk__lib.h new file mode 100644 index 000000000000..c9dcfb7b25ef --- /dev/null +++ b/x11-toolkits/otk/files/patch-otk__lib.h @@ -0,0 +1,10 @@ +--- otk_lib.h.orig ++++ otk_lib.h +@@ -283,4 +283,7 @@ + + OtkFont *Otk_Read_SVG_Font( char *filename ); /* FONTS insertion */ + ++extern struct OtkObjectInstance *OtkRootObject, *OtkOuterWindow, ++ *Otk_keyboard_focus, *Otk_OpenMenu; ++ + #endif diff --git a/x11-toolkits/otk/pkg-descr b/x11-toolkits/otk/pkg-descr new file mode 100644 index 000000000000..0741c8b949b0 --- /dev/null +++ b/x11-toolkits/otk/pkg-descr @@ -0,0 +1,19 @@ +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/ |