atom feed1 message in org.freebsd.freebsd-portsports/26599: update to ports/graphics...
FromSent OnAttachments
brem...@unb.caApr 15, 2001 10:01 am 
Subject:ports/26599: update to ports/graphics/ipe
From:brem...@unb.ca (brem@unb.ca)
Date:Apr 15, 2001 10:01:42 am
List:org.freebsd.freebsd-ports

Number: 26599 Category: ports Synopsis: Build problems related to REQUIRES_MOTIF Confidential: no Severity: serious Priority: low Responsible: freebsd-ports State: open Quarter: Keywords: Date-Required: Class: sw-bug Submitter-Id: current-users Arrival-Date: Sun Apr 15 10:10:01 PDT 2001 Closed-Date: Last-Modified: Originator: David Bremner Release: FreeBSD 4.2-STABLE i386 Organization: Univ. of New Brunswick Environment:

Previously the port only built if you had Motif (or lesstif) preinstalled. It now builds and installs open-motif if necessary (tested with open-motif-2.1.30_1)

Description:

For some reason REQUIRES_MOTIF does not seem to work as documented. By peering at bsd.port.mk, I assume that the correct thing to define is USE_MOTIF

How-To-Repeat:

build on a system without Motif or lesstif preinstalled.

Fix:

see attached patch.

This patch also cures the nasty habit of seg faulting when run on colour depths higher than 8 bits. I will forward that (small) patch to the author of the package.

diff -ruN ipe.cvs/Makefile ipe/Makefile --- ipe.cvs/Makefile Sat Apr 7 00:12:08 2001 +++ ipe/Makefile Sat Apr 14 16:01:31 2001 @@ -18,6 +18,6 @@ latex:${PORTSDIR}/print/teTeX

USE_XLIB= yes -REQUIRES_MOTIF= yes +USE_MOTIF= yes

.include <bsd.port.mk> diff -ruN ipe.cvs/files/patch-Ipe ipe/files/patch-Ipe --- ipe.cvs/files/patch-Ipe Sat Apr 7 00:12:08 2001 +++ ipe/files/patch-Ipe Sat Apr 14 17:58:46 2001 @@ -1,6 +1,6 @@ diff -cr ../Ipe-5.0/Ipe/Makefile Ipe/Makefile *** ../Ipe-5.0/Ipe/Makefile Thu Nov 27 16:09:18 1997 ---- Ipe/Makefile Thu Oct 26 14:57:59 2000 +--- Ipe/Makefile Sun Nov 5 14:51:33 2000 *************** *** 26,42 ****

@@ -24,7 +24,7 @@

# define GFLAGS if you use g++ #GFLAGS = -! GFLAGS = -fno-for-scope -g +! GFLAGS = -fno-for-scope

# Need to find X and Motif ! INCLUDE_DIRS = -I../Plageo -I/usr/X11R6/include @@ -111,7 +111,7 @@ IpeCallback callback DefaultsTo(NIL)); diff -cr ../Ipe-5.0/Ipe/colors.C Ipe/colors.C *** ../Ipe-5.0/Ipe/colors.C Tue May 9 04:36:03 1995 ---- Ipe/colors.C Wed Oct 25 15:19:03 2000 +--- Ipe/colors.C Thu Nov 2 15:31:19 2000 *************** *** 123,129 **** // COLOR I/O @@ -129,6 +129,21 @@ // save color in file { if (!col) +*************** +*** 409,414 **** +--- 409,420 ---- + + // if less than 6 bits, give up and use b&w + ++ if (!bestv[PseudoColor]){ ++ cerr << "No PseudoColor visuals found\n"; ++ monochrome=true; ++ return; ++ } ++ + if (bestv[PseudoColor]->depth < 6) { + monochrome = TRUE; + return; diff -cr ../Ipe-5.0/Ipe/configuration.C Ipe/configuration.C *** ../Ipe-5.0/Ipe/configuration.C Tue May 9 04:36:04 1995 --- Ipe/configuration.C Wed Oct 25 15:24:38 2000 @@ -213,8 +228,6 @@ // popup an (error) message window with one or two lines of text // window stays, and is removed by its OK button { -Only in ../Ipe-5.0/Ipe: ipe -Only in Ipe: ipe.core diff -cr ../Ipe-5.0/Ipe/itypes.h Ipe/itypes.h *** ../Ipe-5.0/Ipe/itypes.h Tue May 9 04:36:00 1995 --- Ipe/itypes.h Wed Oct 25 11:32:14 2000 diff -ruN ipe.cvs/files/patch-Ipe.app-defaults ipe/files/patch-Ipe.app-defaults --- ipe.cvs/files/patch-Ipe.app-defaults Sat Apr 7 00:12:08 2001 +++ ipe/files/patch-Ipe.app-defaults Sat Apr 14 17:58:47 2001 @@ -1,5 +1,5 @@ *** ../Ipe-5.0/Ipe.app-defaults Tue May 9 04:38:01 1995 ---- Ipe.app-defaults Wed Nov 1 11:21:40 2000 +--- Ipe.app-defaults Sun Nov 5 15:31:31 2000 *************** *** 6,13 **** ! @@ -57,7 +57,7 @@ ! INSTALL: Command to start help system ! *helpCommand: \ -! netscape file://localhost/usr/X11R6/lib/ipe/doc/Ipe.html & +! netscape file://localhost/usr/local/lib/ipe/doc/Ipe.html & ! ! ! INSTALL: Directories where Ipe can find Ipe User Macros (IUMs) diff -ruN ipe.cvs/files/patch-Makefile ipe/files/patch-Makefile --- ipe.cvs/files/patch-Makefile Sat Apr 7 00:12:08 2001 +++ ipe/files/patch-Makefile Sat Apr 14 17:58:46 2001 @@ -1,5 +1,5 @@ *** ../Ipe-5.0/Makefile Sat Dec 20 12:05:11 1997 ---- Makefile Fri Oct 27 16:23:21 2000 +--- Makefile Sun Nov 5 14:55:20 2000 *************** *** 1,33 **** ########################################################################### @@ -27,15 +27,15 @@ ! cp html/* $(INSTALL_DIR)/doc/ ! cp Ipe.app-defaults.linux /usr/lib/X11/app-defaults/Ipe ! cp ipe2eps /usr/local/bin/ - -- kitit: -- cd Plageo/ ; rm -r -f *.o -- cd Ipe/ ; rm -r -f *.o -- cd Ium/ ; rm -r -f *.o -- rm -f Ipe-5.0.tar Ipe-5.0.tar.gz -- cd .. ; tar cf Ipe-5.0/Ipe-5.0.tar Ipe-5.0/* -- gzip Ipe-5.0.tar ---- 1,34 ---- +! +! kitit: +! cd Plageo/ ; rm -r -f *.o +! cd Ipe/ ; rm -r -f *.o +! cd Ium/ ; rm -r -f *.o +! rm -f Ipe-5.0.tar Ipe-5.0.tar.gz +! cd .. ; tar cf Ipe-5.0/Ipe-5.0.tar Ipe-5.0/* +! gzip Ipe-5.0.tar +--- 1,33 ---- ########################################################################### # Ipe Makefile for Linux ! # Modfied for FreeBSD ports, David Bremner @@ -69,4 +69,3 @@ ! $(BSD_INSTALL_DATA) tex/ipe_pages.tex ${IPETEXDIR} ! $(BSD_INSTALL_DATA) tex/mipe.cls ${IPETEXDIR} ! ${PREFIX}/bin/texconfig rehash - diff -ruN ipe.cvs/pkg-descr ipe/pkg-descr --- ipe.cvs/pkg-descr Sat Apr 7 00:12:08 2001 +++ ipe/pkg-descr Sun Apr 15 13:26:44 2001 @@ -2,9 +2,11 @@ Ipe has a very nice integration of LaTeX text and PostScript drawings. There are a couple of gotchas that potential installers should be aware of

-1) Unfortunately Ipe only works in 8 bit colour. As far as I know this is -a Motif limitation. Starting in higher colour depth will yield a core -dump. +1) Ipe needs a pseudocolor visual to work optimally. XFree86 +currently only provides this at 8 bit colour depth. If you run Ipe at +a higher colour depth, it reverts to "monochrome mode", which is not +nearly as nice. This falling back to monochrome mode is my +modification, so direct any complaints to me first.

2) The previewing features sensitive to which versions of teTeX and ghostscript are installed. They work with the versions listed in the Makefile, but

Release-Note: Audit-Trail: Unformatted:

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message