Bug 186171 - graphics/ImageMagick bug support TrueType font
graphics/ImageMagick bug support TrueType font
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Thomas Zander
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-27 15:00 UTC by vsityz
Modified: 2014-02-02 22:50 UTC (History)
0 users

See Also:


Attachments
file.diff (3.80 KB, patch)
2014-01-27 15:00 UTC, vsityz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vsityz 2014-01-27 15:00:00 UTC
There is a problem when building ImageMagick

buildlog
[...cut...]
-------------------------------------------------------------
checking for FreeType 2.0 ... 
checking for freetype-config... /usr/local/bin/freetype-config
checking for FT_Init_FreeType in -lfreetype... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking for freetype/freetype.h... no
checking if FreeType package is complete... no -- some components failed test
[...cut...]

Port installed without errors.

But TTF font is not supported:
# identify -list format | grep TTF                               
      TTF* ---   TrueType font

Fix: Needed change in sources freetype/freetype.h  => freetype2/freetype.h
With patch 

#identify -list format | grep TTF
      TTF* r--   TrueType font (Freetype 2.5.2)
     ^^^^^^^^^^^

Patch attached with submission follows:
How-To-Repeat: portmaster graphics/ImageMagick
Comment 1 vsjcfm 2014-01-27 15:28:45 UTC
Possible dup of ports/186170.
Comment 2 Thomas Zander freebsd_committer 2014-02-02 16:26:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->riggs

I'll take it.
Comment 3 dfilter freebsd_committer 2014-02-02 22:44:30 UTC
Author: riggs
Date: Sun Feb  2 22:44:22 2014
New Revision: 342371
URL: http://svnweb.freebsd.org/changeset/ports/342371
QAT: https://qat.redports.org/buildarchive/r342371/

Log:
  - Adjust location of freetype headers in ImageMagick sources
  - Bump PORTREVISION
  
  Note that this is a stop-gap to avoid runtime errors with ImageMagick.
  It allows for working pkg builds with default PREFIX/LOCALBASE.
  A more substantial rework and upgrade of the ImageMagick port needs to be conducted.
  
  PR:		ports/186170, ports/186171
  Submitted by:	Vivek Khera <vivek@khera.org>, Alexander Panyushkin <vsityz@gmail.com>
  Approved by:	mentor (thierry)
  MFH:		2014Q1

Modified:
  head/graphics/ImageMagick/Makefile

Modified: head/graphics/ImageMagick/Makefile
==============================================================================
--- head/graphics/ImageMagick/Makefile	Sun Feb  2 22:31:11 2014	(r342370)
+++ head/graphics/ImageMagick/Makefile	Sun Feb  2 22:44:22 2014	(r342371)
@@ -2,7 +2,7 @@
 
 PORTNAME=	ImageMagick
 DISTVERSION=	6.8.0-7
-PORTREVISION=	4
+PORTREVISION=	5
 PORTEPOCH=	1
 CATEGORIES=	graphics perl5
 MASTER_SITES=	http://www.imagemagick.org/download/ \
@@ -397,6 +397,12 @@ post-patch:
 # deprecated gvCleanup
 	@${REINPLACE_CMD} -e "s|gvCleanup|gvFreeContext|g" \
 		${WRKSRC}/coders/dot.c
+# freetype headers are in freetype2/ nowadays
+	@${REINPLACE_CMD} -e "s|freetype/|freetype2/|g" \
+		${WRKSRC}/configure \
+		${WRKSRC}/coders/ttf.c \
+		${WRKSRC}/magick/annotate.c \
+		${WRKSRC}/www/api/MagickCore/annotate_8c.html
 
 pre-configure:
 .if defined(_IMAGEMAGICK_THREADS_PERL_MSG)
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Thomas Zander freebsd_committer 2014-02-02 22:49:34 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!