Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2007 11:56:52 GMT
From:      Roderick van Domburg <r.s.a.vandomburg@nedforce.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/114036: [PATCH] graphics/GraphicsMagick: add WITHOUT_SYMBOL_PREFIX knob & fix webfonts path
Message-ID:  <200706261156.l5QBuqWu008679@www.freebsd.org>
Resent-Message-ID: <200706261200.l5QC08U1029967@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         114036
>Category:       ports
>Synopsis:       [PATCH] graphics/GraphicsMagick: add WITHOUT_SYMBOL_PREFIX knob & fix webfonts path
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 26 12:00:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Roderick van Domburg
>Release:        FreeBSD/i386 6.2
>Organization:
Nedforce
>Environment:
>Description:
The GraphicsMagick port has been set to compile with the 'Gm' symbol prefix as of July 31st, 2006. Even after a year not all depending packages have been updated to work with that and, indeed, it is not always trivial to do so (ruby-rmagick being one example).

This patch adds a WITHOUT_SYMBOL_PREFIX knob to compile it The Old Way to guarantee compatibility with non-updated packages. By having this as a knob instead of an option, it serves for expert use only.

(Also see the ruby-rmagick update I will be submitting next.)

While we're there, also fix the default path to the webfonts.
>How-To-Repeat:
1. Install GraphicsMagick
2. Try to install ruby-rmagick with GraphicsMagick

>Fix:
--- GraphicsMagick-symbol-prefix-knob.patch begins here ---
diff -ru /usr/ports/graphics/GraphicsMagick/Makefile GraphicsMagick/Makefile
--- /usr/ports/graphics/GraphicsMagick/Makefile Mon Jun 25 22:43:05 2007
+++ GraphicsMagick/Makefile     Tue Jun 26 13:16:37 2007
@@ -42,14 +42,17 @@

 .ifndef WINDOWS_FONT_DIR
 # Use fonts installed by x11-fonts/webfonts by default
-WINDOWS_FONT_DIR=${X11BASE}/lib/X11/webfonts
+WINDOWS_FONT_DIR=${X11BASE}/lib/X11/fonts/webfonts
 .endif

 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ARGS=        --without-perl --with-windows-font-dir=${WINDOWS_FONT_DIR} \
-               --enable-shared --enable-static --without-threads \
-               --enable-symbol-prefix
+               --enable-shared --enable-static --without-threads
 USE_LDCONFIG=  yes
+
+.if !defined(WITHOUT_SYMBOL_PREFIX)
+CONFIGURE_ARGS+=       --enable-symbol-prefix
+.endif

 .if !defined(NOPORTDOCS)
 INSTALL_TARGET=        install install-data-html
--- GraphicsMagick-symbol-prefix-knob.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706261156.l5QBuqWu008679>