diff options
author | frueauf <frueauf@pkgsrc.org> | 1999-01-24 11:47:33 +0000 |
---|---|---|
committer | frueauf <frueauf@pkgsrc.org> | 1999-01-24 11:47:33 +0000 |
commit | 0b0fd109d2564933246b25732e385de154016ca7 (patch) | |
tree | bf41e241e9e973ee1eab1cc4856efe2237b2146b /graphics/tgif | |
parent | fa27848471961a79856843e53bd3776bc850613c (diff) | |
download | pkgsrc-0b0fd109d2564933246b25732e385de154016ca7.tar.gz |
Update tgif to 4.0.7, provided in pr 6861 by Dan McMahill.
Diffstat (limited to 'graphics/tgif')
-rw-r--r-- | graphics/tgif/Makefile | 18 | ||||
-rw-r--r-- | graphics/tgif/files/md5 | 4 | ||||
-rw-r--r-- | graphics/tgif/patches/patch-aa | 18 | ||||
-rw-r--r-- | graphics/tgif/patches/patch-ab | 13 | ||||
-rw-r--r-- | graphics/tgif/patches/patch-ac | 118 | ||||
-rw-r--r-- | graphics/tgif/patches/patch-ad | 11 | ||||
-rw-r--r-- | graphics/tgif/patches/patch-ae | 13 | ||||
-rw-r--r-- | graphics/tgif/pkg/COMMENT | 2 | ||||
-rw-r--r-- | graphics/tgif/pkg/DESCR | 6 | ||||
-rw-r--r-- | graphics/tgif/pkg/PLIST | 4 |
10 files changed, 16 insertions, 191 deletions
diff --git a/graphics/tgif/Makefile b/graphics/tgif/Makefile index 4ef1c161ba2..e114765dbe9 100644 --- a/graphics/tgif/Makefile +++ b/graphics/tgif/Makefile @@ -1,20 +1,18 @@ -# $NetBSD: Makefile,v 1.8 1998/10/01 19:29:39 frueauf Exp $ +# $NetBSD: Makefile,v 1.9 1999/01/24 11:47:33 frueauf Exp $ +# -DISTNAME= tgif-3.0-p17 -PKGNAME= tgif-3.0p17x +DISTNAME= tgif-4.0.7 CATEGORIES= graphics -MASTER_SITES= ${MASTER_SITE_XCONTRIB} -MASTER_SITE_SUBDIR= applications/tgif +MASTER_SITES= ftp://bourbon.cs.umd.edu/pub/tgif/ \ + ftp://ftp.cs.ucla.edu/pub/tgif/ MAINTAINER= mcmahill@alum.mit.edu HOMEPAGE= http://bourbon.cs.umd.edu:8001/tgif/tgif.html -CONFLICTS= tgif-3.0p16 - USE_IMAKE= yes -# patch tgif-3.0-patch17x is supplied in the package as -# patches/patch-ac. It fixes a bug that causes imported EPS files -# to print with an offset. +post-patch:: + @${RM} -f ${WRKSRC}/Tgif.tmpl + @${CP} ${WRKSRC}/Tgif.tmpl-netbsd ${WRKSRC}/Tgif.tmpl .include "../../mk/bsd.pkg.mk" diff --git a/graphics/tgif/files/md5 b/graphics/tgif/files/md5 index b1a806eaa47..f6c45be4251 100644 --- a/graphics/tgif/files/md5 +++ b/graphics/tgif/files/md5 @@ -1,3 +1,3 @@ -$NetBSD: md5,v 1.3 1998/08/26 21:18:58 frueauf Exp $ +$NetBSD: md5,v 1.4 1999/01/24 11:47:33 frueauf Exp $ -MD5 (tgif-3.0-p17.tar.gz) = 150d3ccc7ea87e483f63ca769eb2b836 +MD5 (tgif-4.0.7.tar.gz) = 866238ff0c8ee3229e58890edf55a72c diff --git a/graphics/tgif/patches/patch-aa b/graphics/tgif/patches/patch-aa deleted file mode 100644 index b59f4fd6bc9..00000000000 --- a/graphics/tgif/patches/patch-aa +++ /dev/null @@ -1,18 +0,0 @@ -$NetBSD: patch-aa,v 1.3 1998/08/26 21:18:58 frueauf Exp $ - ---- Imakefile.orig Wed Aug 19 09:38:26 1998 -+++ Imakefile Wed Aug 19 10:59:03 1998 -@@ -60,5 +60,6 @@ - -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \@@\ - -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" \@@\ -- -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT -+ -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT \@@\ -+ -D_NO_EXTERN - - XCOMM Things to try to add to the DEFINES line above: -@@ -72,4 +73,5 @@ - XCOMM Linux: - XCOMM FreeBSD: -+XCOMM NetBSD: -D_NO_EXTERN - XCOMM SCO: -D_NO_EXTERN -DPRINT_CMD=\""lp -o raw -o nobanner"\" - diff --git a/graphics/tgif/patches/patch-ab b/graphics/tgif/patches/patch-ab deleted file mode 100644 index 08d373eee72..00000000000 --- a/graphics/tgif/patches/patch-ab +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ab,v 1.1 1998/08/26 21:18:58 frueauf Exp $ - ---- cutpaste.c.orig Wed Aug 19 10:08:28 1998 -+++ cutpaste.c Wed Aug 19 10:09:33 1998 -@@ -31,4 +31,8 @@ - */ - -+/* DAN added the following 2 lines for NetBSD-1.3 */ -+#include <unistd.h> -+#include <stdlib.h> -+ - #include <stdio.h> - #include <string.h> diff --git a/graphics/tgif/patches/patch-ac b/graphics/tgif/patches/patch-ac deleted file mode 100644 index 4b8acd1ac25..00000000000 --- a/graphics/tgif/patches/patch-ac +++ /dev/null @@ -1,118 +0,0 @@ -$NetBSD: patch-ac,v 1.1 1998/08/26 21:18:58 frueauf Exp $ - -*** eps.c.orig Thu Feb 19 13:51:02 1998 ---- eps.c Thu Feb 19 13:47:35 1998 -*************** -*** 671,674 **** ---- 671,675 ---- - int boundingbox_found=FALSE, preview_found=FALSE, found; - int boundingbox_atend=FALSE, tiff_preview_ok=FALSE; -+ int boundingbox_image_w=0, boundingbox_image_h=0; - FILE *fp=NULL; - struct stat stat_buf; -*************** -*** 762,765 **** ---- 763,768 ---- - if (sscanf(&(line[14]), "%f %f %f %f", &llx, &lly, &urx, &ury) == 4) { - boundingbox_found = TRUE; -+ boundingbox_image_w = abs(round(urx-llx)); -+ boundingbox_image_h = abs(round(ury-lly)); - } else if (!boundingbox_found) { - c_ptr = FindChar((int)'(', &(line[14])); -*************** -*** 790,793 **** ---- 793,822 ---- - return BitmapFileInvalid; - } -+ if (boundingbox_found) { -+ /* -+ * If the width and height information in the boundingbox and -+ * the preview bitmap are differ only by one, we consider -+ * this a round-off error and adjust the boundingbox so -+ * that they become identical! -+ */ -+ int diff=0; -+ -+ diff = image_w - boundingbox_image_w; -+ if (diff == 1 || diff == (-1)) { -+ if (urx >= llx) { -+ urx += (float)diff; -+ } else { -+ urx -= (float)diff; -+ } -+ } -+ diff = image_h - boundingbox_image_h; -+ if (diff == 1 || diff == (-1)) { -+ if (ury >= lly) { -+ ury += (float)diff; -+ } else { -+ ury -= (float)diff; -+ } -+ } -+ } - preview_found = TRUE; - if (!ReadPreviewBitmap(fp, image_w, image_h, bps, &bitmap, &image)) { -*** exec.c.orig Thu Feb 19 13:51:02 1998 ---- exec.c Thu Feb 19 13:26:16 1998 -*************** -*** 1344,1349 **** - rc = FALSE; - } else { -! unlink(file_name); -! ReplaceAttrFirstValue(attr_owner_obj, attr_ptr, file_name); - } - return rc; ---- 1344,1368 ---- - rc = FALSE; - } else { -! char *psz=UtilStrRChr(file_name, '/'); -! int changed=FALSE; -! -! if (psz != NULL) { -! for (psz++; *psz != '\0'; psz++) { -! if ((*psz >= '0' && *psz <= '9') || (*psz >= 'a' && *psz <= 'z') || -! (*psz >= 'A' && *psz <= 'Z')) { -! } else { -! *psz = 'Q'; -! changed = TRUE; -! } -! } -! } -! if (changed && mktemp(file_name) == NULL) { -! MsgBox ("Fail to mktemp(). Command execution aborted.", -! TOOL_NAME, INFO_MB); -! rc = FALSE; -! } else { -! unlink(file_name); -! ReplaceAttrFirstValue(attr_owner_obj, attr_ptr, file_name); -! } - } - return rc; -*** xbitmap.c.orig Thu Feb 19 13:51:02 1998 ---- xbitmap.c Thu Feb 19 12:56:15 1998 -*************** -*** 3932,3935 **** ---- 3932,3939 ---- - - memset(&ctm, 0, sizeof(struct XfrmMtrxRec)); -+ (*ObjPtr)->orig_obbox.ltx = ltx; -+ (*ObjPtr)->orig_obbox.lty = lty; -+ (*ObjPtr)->orig_obbox.rbx = rbx; -+ (*ObjPtr)->orig_obbox.rby = rby; - fval = ((float)(rbx-ltx))/((float)image_w)*((float)1000.0); - ctm.m[CTM_SX] = round(fval); -*** http.c.orig Tue Dec 2 15:23:15 1997 ---- http.c Tue Dec 2 15:24:12 1997 -*************** -*** 962,966 **** - } - if (content_type != NULL) free(content_type); -! if (text_type) { - int buf_len=strlen(line_ptr); - char *return_buf; ---- 962,966 ---- - } - if (content_type != NULL) free(content_type); -! if (text_type || content_length == (-1)) { - int buf_len=strlen(line_ptr); - char *return_buf; diff --git a/graphics/tgif/patches/patch-ad b/graphics/tgif/patches/patch-ad deleted file mode 100644 index c769b77bb55..00000000000 --- a/graphics/tgif/patches/patch-ad +++ /dev/null @@ -1,11 +0,0 @@ -$NetBSD: patch-ad,v 1.1 1998/08/26 21:18:58 frueauf Exp $ - ---- version.c.orig Wed Aug 19 20:52:00 1998 -+++ version.c Wed Aug 19 20:53:00 1998 -@@ -46,5 +46,5 @@ - char fullVersionString[MAXSTRING]; - char fullToolName[MAXSTRING]; --char *specialBuild=""; -+char *specialBuild="Patch 17x (eps fix) + dvips fix"; - - void SetFullVersionString() diff --git a/graphics/tgif/patches/patch-ae b/graphics/tgif/patches/patch-ae deleted file mode 100644 index ef458640c97..00000000000 --- a/graphics/tgif/patches/patch-ae +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ae,v 1.1 1998/08/26 21:18:58 frueauf Exp $ - ---- eps.c.orig Tue Aug 25 12:32:15 1998 -+++ eps.c Fri Aug 21 08:59:25 1998 -@@ -1314,4 +1314,8 @@ - fprintf(FP, "/setpagedevice {} def\n"); - fprintf(FP, "/a4 {} def\n"); -+ fprintf(FP, "/bop-hook {} def\n"); -+ fprintf(FP, "/eop-hook {} def\n"); -+ fprintf(FP, "/start-hook {} def\n"); -+ fprintf(FP, "/end-hook {} def\n"); - fprintf(FP, "0 setgray 0 setlinecap 1 setlinewidth\n"); - fprintf(FP, "0 setlinejoin 10 setmiterlimit [] 0 setdash newpath\n"); diff --git a/graphics/tgif/pkg/COMMENT b/graphics/tgif/pkg/COMMENT index 8fdc7985bdb..d4a6d970746 100644 --- a/graphics/tgif/pkg/COMMENT +++ b/graphics/tgif/pkg/COMMENT @@ -1 +1 @@ -X11 Drawing Program. +Full featured X11 drawing program. diff --git a/graphics/tgif/pkg/DESCR b/graphics/tgif/pkg/DESCR index 2875a691281..7aa8a3a2817 100644 --- a/graphics/tgif/pkg/DESCR +++ b/graphics/tgif/pkg/DESCR @@ -1,6 +1,8 @@ -Tgif is a X11 based drawing program. It is based on Xlib -and does not require Motif. +Tgif is a X11 based 2-D drawing program based on Xlib. Tgif is a full featured program including the ability to export (from the menu or command line) PS and EPSF files. In addition libraries of symbols can be created for reuse. + +Capabilities include the creation and browsing of hyper- +structured-graphics. diff --git a/graphics/tgif/pkg/PLIST b/graphics/tgif/pkg/PLIST index 9b8fea09830..a2af7d8ff7b 100644 --- a/graphics/tgif/pkg/PLIST +++ b/graphics/tgif/pkg/PLIST @@ -1,6 +1,5 @@ -@comment $NetBSD: PLIST,v 1.1 1998/03/29 22:16:37 tron Exp $ +@comment $NetBSD: PLIST,v 1.2 1999/01/24 11:47:34 frueauf Exp $ bin/tgif -bin/prtgif lib/X11/tgif/tgif.Xdefaults lib/X11/tgif/tgificon.eps lib/X11/tgif/tgificon.obj @@ -8,6 +7,5 @@ lib/X11/tgif/tgificon.xbm lib/X11/tgif/tgificon.xpm lib/X11/tgif/tangram.sym lib/X11/tgif/keys.obj -man/cat1/prtgif.0 man/cat1/tgif.0 @dirrm lib/X11/tgif |