1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

An OpenGL Widget for Tk

PR:		13296
Submitted by:	Randall Hopper <aa8vb@ipass.net>
This commit is contained in:
Satoshi Taoka 1999-09-24 16:01:31 +00:00
parent 33c11413f4
commit 030edd1b93
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21914
7 changed files with 123 additions and 0 deletions

33
graphics/togl/Makefile Normal file
View File

@ -0,0 +1,33 @@
# New ports collection makefile for: Togl
# Version required: 1.5
# Date created: Wed Aug 18 18:49:17 EDT 1999
# Whom: Randall Hopper <aa8vb@ipass.net>
#
# $FreeBSD$
#
DISTNAME= Togl-1.5
PKGNAME= togl-1.5
CATEGORIES= graphics tk80
MASTER_SITES= ftp://ftp.mesa3d.org/mesa/misc/ \
ftp://ftp.cs.umd.edu/pub/faculty/bederson/
MAINTAINER= aa8vb@ipass.net
LIB_DEPENDS= tk80.1:${PORTSDIR}/x11-toolkits/tk80 \
tcl80.1:${PORTSDIR}/lang/tcl80 \
MesaGL.14:${PORTSDIR}/graphics/Mesa3
ALL_TARGET= default
TOGL_INSTDIR= ${PREFIX}/lib/tk8.0/${DISTNAME}
.include <bsd.port.pre.mk>
do-install:
${MKDIR} ${TOGL_INSTDIR}
${INSTALL_DATA} ${WRKSRC}/libtogl.so.1.3 ${TOGL_INSTDIR}/Togl.so
${ECHO} 'package ifneeded Togl 1.5 [list load [file join $$dir Togl.so]]'\
> ${PREFIX}/lib/tk8.0/${DISTNAME}/pkgIndex.tcl
.include <bsd.port.post.mk>

1
graphics/togl/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (Togl-1.5.tar.gz) = c1660f93cab49af2fe6bc4e09610bf90

View File

@ -0,0 +1,50 @@
--- ORIG/Makefile Wed Mar 11 23:11:26 1998
+++ Makefile Wed Aug 18 18:57:46 1999
@@ -61,23 +61,28 @@
CC = cc
# Compiler options:
-COPTS = -c -O
+COPTS = -c -O -w
# Shared library linker command:
-SHLINK = cc -G
+SHLINK = cc -shared
# Name for the shared lib:
-#SH_LIB = libtogl.so.1.3
-SH_LIB =
+SH_LIB = libtogl.so.1.3
+#SH_LIB =
-# Where to find tcl.h, tk.h, OpenGL/Mesa headers, etc:
-INCLUDES = -I/usr/local/include -I/usr/include/tcl
+# Where to find tc.hl, tk.h, OpenGL/Mesa headers, etc:
+INCLUDES = -I/usr/local/include/tcl8.0 \
+ -I/usr/local/include/tk8.0 \
+ -I/usr/local/include/tk8.0/generic \
+ -I/usr/X11R6/include \
+ -I/usr/include/tcl
# Where to find libtcl.a, libtk.a, OpenGL/Mesa libraries:
-LIBDIRS = -L/usr/local/lib
+LIBDIRS = -L/usr/local/lib \
+ -L/usr/X11R6/lib
# Libraries to link with (-ldl for Linux only?):
-LIBS = -ltk -ltcl -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl
+LIBS = -ltk80 -ltcl80 -lGLU -lGL -lX11 -lXmu -lXext -lXt -lm
TK_FLAGS =
@@ -144,8 +149,8 @@
$(CC) $(CFLAGS) togl.c
-#$(SH_LIB): togl.o
-# $(SHLINK) $(LFLAGS) togl.o $(LIBS) -o $@
+$(SH_LIB): togl.o
+ $(SHLINK) $(LFLAGS) togl.o $(LIBS) -o $@

View File

@ -0,0 +1,11 @@
--- ORIG/togl.c Fri Aug 21 23:06:00 1998
+++ togl.c Wed Aug 18 18:41:24 1999
@@ -118,7 +118,7 @@
#elif TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==0 && TK_RELEASE_SERIAL==2
# include "tkInt8.0p2.h"
#else
- Sorry, you will have to edit togl.c to include the right tkInt.h file
+# include "tkInt.h"
#endif
#elif defined(WIN32)
#if TK_MAJOR_VERSION<8

View File

@ -0,0 +1 @@
A Tk OpenGL widget

23
graphics/togl/pkg-descr Normal file
View File

@ -0,0 +1,23 @@
Togl is a Tk widget for OpenGL rendering. Togl is based on OGLTK,
originally written by Benjamin Bederson at the University of New Mexico
(who has since moved to the University of Maryland). Togl adds the new
features:
- color-index mode support including color allocation functions
- support for requesting stencil, accumulation, alpha buffers, etc
- multiple OpenGL drawing widgets
- OpenGL extension testing from Tcl
- simple, portable font support
- overlay plane support
Togl allows one to create and manage a special Tk/OpenGL widget with Tcl
and render into it with a C program. That is, a typical Togl program will
have Tcl code for managing the user interface and a C program for
computations and OpenGL rendering.
Togl is copyrighted by Brian Paul (brian_paul@avid.com) and Benjamin
Bederson (bederson@cs.umd.edu). See the LICENSE file for details.
The Togl WWW page is available from:
Wisconsin at http://www.mesa3d.org/brianp/Togl.html
Maryland at http://www.cs.umd.edu/~bederson/Togl.html
WWW: http://www.mesa3d.org/brianp/Togl.html

4
graphics/togl/pkg-plist Normal file
View File

@ -0,0 +1,4 @@
lib/tk8.0/Togl-1.5/Togl.so
lib/tk8.0/Togl-1.5/pkgIndex.tcl
@dirrm lib/tk8.0/Togl-1.5