diff options
author | ijliao <ijliao@FreeBSD.org> | 2004-04-06 17:03:50 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2004-04-06 17:03:50 +0800 |
commit | c1f448a5ddec4ffc25cf0ca664122c89ad739831 (patch) | |
tree | 5cfe3dcdddbecdbcfac3e287811247e44e5b523b /graphics | |
parent | 534491b306596bab6f1d0782e301732625ca65dd (diff) | |
download | freebsd-ports-gnome-c1f448a5ddec4ffc25cf0ca664122c89ad739831.tar.gz freebsd-ports-gnome-c1f448a5ddec4ffc25cf0ca664122c89ad739831.tar.zst freebsd-ports-gnome-c1f448a5ddec4ffc25cf0ca664122c89ad739831.zip |
upgrade to 1.6
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/togl/Makefile | 35 | ||||
-rw-r--r-- | graphics/togl/distinfo | 4 | ||||
-rw-r--r-- | graphics/togl/files/patch-aa | 121 | ||||
-rw-r--r-- | graphics/togl/files/patch-ab | 11 | ||||
-rw-r--r-- | graphics/togl/pkg-descr | 6 | ||||
-rw-r--r-- | graphics/togl/pkg-plist | 14 |
6 files changed, 113 insertions, 78 deletions
diff --git a/graphics/togl/Makefile b/graphics/togl/Makefile index f8164a56407f..cb6757451063 100644 --- a/graphics/togl/Makefile +++ b/graphics/togl/Makefile @@ -6,11 +6,11 @@ # PORTNAME= togl -PORTVERSION= 1.5 -PORTREVISION= 1 +PORTVERSION= 1.6 +PORTREVISION= 0 CATEGORIES= graphics tk84 -MASTER_SITES= ftp://ftp.mesa3d.org/mesa/misc/ \ - ftp://ftp.cs.umd.edu/pub/faculty/bederson/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} DISTNAME= Togl-${PORTVERSION} MAINTAINER= ports@FreeBSD.org @@ -19,25 +19,26 @@ COMMENT= A Tk OpenGL widget LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84 \ tcl84.1:${PORTSDIR}/lang/tcl84 +USE_GL= yes USE_MESA= yes -ALL_TARGET= default +USE_GMAKE= yes MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" TOGL_INSTDIR= ${PREFIX}/lib/tk8.4/${DISTNAME} +PLIST_SUB= TOGL_INSTDIR=${TOGL_INSTDIR:S,^${PREFIX}/,,} -.include <bsd.port.pre.mk> - -.if ${ARCH} == "amd64" -BROKEN= "Does not compile on amd64 (missing -fPIC)" +.if !defined(NOPORTDOCS) +PORTDOCS= * .endif do-install: - ${MKDIR} ${TOGL_INSTDIR} - ${INSTALL_DATA} ${WRKSRC}/libtogl.so.1.3 ${TOGL_INSTDIR}/Togl.so - ${INSTALL_DATA} ${WRKSRC}/togl.h ${TOGL_INSTDIR} - ${INSTALL_DATA} ${WRKSRC}/togl.o ${TOGL_INSTDIR} - ${ECHO} 'package ifneeded Togl 1.5 [list load [file join $$dir Togl.so]]'\ - > ${PREFIX}/lib/tk8.4/${DISTNAME}/pkgIndex.tcl - -.include <bsd.port.post.mk> + @${MKDIR} ${TOGL_INSTDIR} + ${INSTALL_DATA} ${WRKSRC}/*.so ${TOGL_INSTDIR} + ${INSTALL_DATA} ${WRKSRC}/togl.h ${WRKSRC}/pkgIndex.tcl ${TOGL_INSTDIR} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/Togl.html ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/graphics/togl/distinfo b/graphics/togl/distinfo index 675bcf52a182..f77c96012ffc 100644 --- a/graphics/togl/distinfo +++ b/graphics/togl/distinfo @@ -1,2 +1,2 @@ -MD5 (Togl-1.5.tar.gz) = c1660f93cab49af2fe6bc4e09610bf90 -SIZE (Togl-1.5.tar.gz) = 138824 +MD5 (Togl-1.6.tar.gz) = 1019f483ee1564c98310ff3ca9a75463 +SIZE (Togl-1.6.tar.gz) = 130323 diff --git a/graphics/togl/files/patch-aa b/graphics/togl/files/patch-aa index ccac2e12d4c2..fd353ea083cd 100644 --- a/graphics/togl/files/patch-aa +++ b/graphics/togl/files/patch-aa @@ -1,9 +1,6 @@ - -$FreeBSD$ - ---- Makefile.orig Thu Mar 12 06:11:26 1998 -+++ Makefile Tue Aug 14 12:52:23 2001 -@@ -58,26 +58,30 @@ +--- Makefile.orig Wed May 7 09:50:13 2003 ++++ Makefile Tue Apr 6 17:00:50 2004 +@@ -7,7 +7,7 @@ # The C compiler: @@ -11,55 +8,103 @@ $FreeBSD$ +CC ?= cc # Compiler options: --COPTS = -c -O -+COPTS = -c -w + # for DEC +@@ -17,7 +17,7 @@ + # for IBM + #COPTS = -c -g -qchars=signed -DIBM + # for PC_LINUX +-COPTS = -c -g -fPIC -mcpu=i586 -DPC_LINUX -DDEBUG -DUSE_TCL_STUBS -DUSE_TK_STUBS -DUSE_LOCAL_TK_H ++COPTS = -c -fPIC -DPC_LINUX -DDEBUG -DUSE_TCL_STUBS -DUSE_TK_STUBS -DUSE_LOCAL_TK_H + # for SGI + #COPTS = -c -g -n32 -signed -DSGI + # for SUN +@@ -25,17 +25,20 @@ + # Shared library linker command: --SHLINK = cc -G +-SHLINK = cc -shared +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${LOCALBASE}/include/tcl8.4 \ -+ -I${LOCALBASE}/include/tk8.4 \ -+ -I${LOCALBASE}/include/tk8.4/generic \ -+ -I${X11BASE}/include + # Where to find tcl.h, tk.h, OpenGL/Mesa headers, etc: + +-TCL_PREFIX = /usr ++TCL_PREFIX = ${PREFIX} ++TK_PREFIX = ${PREFIX} + #TCL_VER = 8.3 +-TCL_VER = ++TCL_VER = 8.4 ++TK_VER = 8.4 + + # uncomment exactly one +-TCL_INCLUDE = -I$(TCL_PREFIX)/include ++TCL_INCLUDE = -I$(TCL_PREFIX)/include/tcl${TCL_VER} ++TK_INCLUDE = -I${TK_PREFIX}/include/tk${TK_VER} + #TCL_INCLUDE = -I/pkg/tcl-tk/8.3.0/include + # for DEC + #INCLUDES = $(TCL_INCLUDE) +@@ -44,7 +47,7 @@ + # for IBM + #INCLUDES = -I/usr/lpp/OpenGL/include $(TCL_INCLUDE) + # for PC_LINUX +-INCLUDES = -I/usr/X11R6/include $(TCL_INCLUDE) ++INCLUDES = -I${X11BASE}/include $(TCL_INCLUDE) ${TK_INCLUDE} + # for SGI + #INCLUDES = $(TCL_INCLUDE) + # for SUN +@@ -54,6 +57,7 @@ # Where to find libtcl.a, libtk.a, OpenGL/Mesa libraries: --LIBDIRS = -L/usr/local/lib -+LIBDIRS = -L${LOCALBASE}/lib \ -+ -L${X11BASE}/lib + # uncomment exactly one + TCL_LIB = -L$(TCL_PREFIX)/lib ++TK_LIB = -L$(TK_PREFIX)/lib + # for DEC + #LIBDIRS = $(TCL_LIB) + # for HP +@@ -61,19 +65,21 @@ + # for IBM + #LIBDIRS = -L/usr/lpp/OpenGL/lib $(TCL_LIB) + # for PC_LINUX +-LIBDIRS = $(TCL_LIB) -L/usr/X11R6/lib -Xlinker -rpath -Xlinker $(TCL_PREFIX)/lib ++LIBDIRS = $(TCL_LIB) ${TK_LIB} -L${X11BASE}/lib -Xlinker -rpath -Xlinker + # for SGI + #LIBDIRS = $(TCL_LIB) + # for SUN + #LIBDIRS = -L/usr/openwin/lib $(TCL_LIB) + +-TCL_LIBS = -ltcl$(TCL_VER) -ltk$(TCL_VER) +-TCL_STUB_LIBS = -ltclstub$(TCL_VER) -ltkstub$(TCL_VER) ++TCL_LIBS = -ltcl84 ++TK_LIBS = -ltk84 ++TCL_STUB_LIBS = -ltclstub84 ++TK_STUB_LIBS = -ltkstub84 # Libraries to link with (-ldl for Linux only?): --LIBS = -ltk -ltcl -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl -+LIBS = -ltk84 -ltcl84 -lGLU -lGL -lX11 -lXmu -lXext -lXt -lm $(PTHREAD_LIBS) + # NOTE: use -ltcl8.1 -ltk8.1 for Tcl/Tk version 8.1 +-LIBS = $(TCL_LIBS) -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl +-STUB_LIBS = $(TCL_STUB_LIBS) -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl ++LIBS = $(TCL_LIBS) ${TK_LIBS} -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm ++STUB_LIBS = $(TCL_STUB_LIBS) ${TK_STUB_LIBS} -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm TK_FLAGS = -@@ -85,7 +89,7 @@ +@@ -81,9 +87,9 @@ #### Shouldn't have to change anything beyond this point #### -CFLAGS = $(COPTS) $(INCLUDES) $(TK_FLAGS) -+CFLAGS += $(COPTS) $(INCLUDES) $(TK_FLAGS) $(PTHREAD_CFLAGS) - - LFLAGS = $(LIBDIRS) - -@@ -144,8 +148,8 @@ - $(CC) $(CFLAGS) togl.c ++CFLAGS += $(COPTS) $(INCLUDES) $(TK_FLAGS) ${PTHREAD_FLAGS} +-LFLAGS = $(LIBDIRS) ++LFLAGS = $(LIBDIRS) ${PTHREAD_LIBS} --#$(SH_LIB): togl.o --# $(SHLINK) $(LFLAGS) togl.o $(LIBS) -o $@ -+$(SH_LIB): togl.o -+ $(SHLINK) $(LFLAGS) togl.o $(LIBS) -o $@ + all: togl.so double.so texture.so index.so overlay.so gears.so pkgIndex +@@ -162,7 +168,7 @@ + $(TOGL)/ben.rgb + pkgIndex: +- echo 'puts [pkg::create -name Togl -version $(TOGL_VERSION) -load togl[info sharedlibextension]]' | tclsh > pkgIndex.tcl ++ echo 'puts [pkg::create -name Togl -version $(TOGL_VERSION) -load togl[info sharedlibextension]]' | tclsh${TCL_VER} > pkgIndex.tcl + tar: + cd .. ; \ diff --git a/graphics/togl/files/patch-ab b/graphics/togl/files/patch-ab deleted file mode 100644 index 2f47b40f9ffa..000000000000 --- a/graphics/togl/files/patch-ab +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 diff --git a/graphics/togl/pkg-descr b/graphics/togl/pkg-descr index 2c1987b94caa..cd86cedfa735 100644 --- a/graphics/togl/pkg-descr +++ b/graphics/togl/pkg-descr @@ -16,8 +16,4 @@ 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 +WWW: http://togl.sourceforge.net/ diff --git a/graphics/togl/pkg-plist b/graphics/togl/pkg-plist index bcd0d277f395..46775f0d7cdc 100644 --- a/graphics/togl/pkg-plist +++ b/graphics/togl/pkg-plist @@ -1,5 +1,9 @@ -lib/tk8.4/Togl-1.5/Togl.so -lib/tk8.4/Togl-1.5/pkgIndex.tcl -lib/tk8.4/Togl-1.5/togl.h -lib/tk8.4/Togl-1.5/togl.o -@dirrm lib/tk8.4/Togl-1.5 +%%TOGL_INSTDIR%%/double.so +%%TOGL_INSTDIR%%/gears.so +%%TOGL_INSTDIR%%/index.so +%%TOGL_INSTDIR%%/overlay.so +%%TOGL_INSTDIR%%/texture.so +%%TOGL_INSTDIR%%/togl.so +%%TOGL_INSTDIR%%/togl.h +%%TOGL_INSTDIR%%/pkgIndex.tcl +@dirrm %%TOGL_INSTDIR%% |