pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cmake fix check for freetype-2.5.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/98ed3079fbb0
branches:  trunk
changeset: 632287:98ed3079fbb0
user:      markd <markd%pkgsrc.org@localhost>
date:      Sat Mar 22 08:39:10 2014 +0000

description:
fix check for freetype-2.5.1
Julian Ospald in http://www.cmake.org/Bug/view.php?id=14601
Bump PKGREVISION

diffstat:

 devel/cmake/Makefile                                 |   4 +-
 devel/cmake/distinfo                                 |   3 +-
 devel/cmake/patches/patch-Modules_FindFreetype.cmake |  44 ++++++++++++++++++++
 3 files changed, 48 insertions(+), 3 deletions(-)

diffs (76 lines):

diff -r 4d5d0ea62659 -r 98ed3079fbb0 devel/cmake/Makefile
--- a/devel/cmake/Makefile      Sat Mar 22 08:19:24 2014 +0000
+++ b/devel/cmake/Makefile      Sat Mar 22 08:39:10 2014 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.86 2014/03/14 22:47:44 asau Exp $
+# $NetBSD: Makefile,v 1.87 2014/03/22 08:39:10 markd Exp $
 
 DISTNAME=      cmake-${CMAKE_API}.12.2
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    devel
 MASTER_SITES=  http://www.cmake.org/files/v${CMAKE_API}/
 
diff -r 4d5d0ea62659 -r 98ed3079fbb0 devel/cmake/distinfo
--- a/devel/cmake/distinfo      Sat Mar 22 08:19:24 2014 +0000
+++ b/devel/cmake/distinfo      Sat Mar 22 08:39:10 2014 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.55 2014/02/01 11:14:06 adam Exp $
+$NetBSD: distinfo,v 1.56 2014/03/22 08:39:10 markd Exp $
 
 SHA1 (cmake-2.8.12.2.tar.gz) = cca70b307aa32a6a32c72e01fdfcecc84c1c2690
 RMD160 (cmake-2.8.12.2.tar.gz) = ee92327c3870f3ae2ea997d0258b0ef141e90525
 Size (cmake-2.8.12.2.tar.gz) = 6068231 bytes
 SHA1 (patch-CMakeLists.txt) = a37825ad9d1704b9cb716a52148c637d26733898
+SHA1 (patch-Modules_FindFreetype.cmake) = 7868ab96cadc011ccb16205382a3cbfa3d159f32
 SHA1 (patch-Modules_FindX11.cmake) = e5c9f5fd382effb85ae75fe603de00e5e58d788a
 SHA1 (patch-Modules_Platform_SunOS.cmake) = 7a53ae3c902dd69ee22ef9fe0ae2a022d5284f16
 SHA1 (patch-Source_kwsys_SystemInformation.cxx) = ee7f56c0f9c4c096e8b7488c7f34cb32ae02a047
diff -r 4d5d0ea62659 -r 98ed3079fbb0 devel/cmake/patches/patch-Modules_FindFreetype.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cmake/patches/patch-Modules_FindFreetype.cmake      Sat Mar 22 08:39:10 2014 +0000
@@ -0,0 +1,44 @@
+$NetBSD: patch-Modules_FindFreetype.cmake,v 1.1 2014/03/22 08:39:10 markd Exp $
+
+fix check for freetype-2.5.1
+Julian Ospald in http://www.cmake.org/Bug/view.php?id=14601
+
+--- Modules/FindFreetype.cmake.orig    2013-11-05 19:07:22.000000000 +0000
++++ Modules/FindFreetype.cmake
+@@ -70,6 +70,19 @@ find_path(FREETYPE_INCLUDE_DIR_freetype2
+   PATH_SUFFIXES include/freetype2 include
+ )
+ 
++if(NOT FREETYPE_INCLUDE_DIR_freetype2)
++  find_path(FREETYPE_INCLUDE_DIR_freetype2 config/ftheader.h
++    HINTS
++      ENV FREETYPE_DIR
++    PATHS
++      /usr/X11R6
++      /usr/local/X11R6
++      /usr/local/X11
++      /usr/freeware
++    PATH_SUFFIXES include/freetype2 include
++  )
++endif()
++
+ find_library(FREETYPE_LIBRARY
+   NAMES freetype libfreetype freetype219
+   HINTS
+@@ -91,8 +104,14 @@ if(FREETYPE_INCLUDE_DIR_ft2build AND FRE
+ endif()
+ set(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}")
+ 
+-if(FREETYPE_INCLUDE_DIR_freetype2 AND EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
+-    file(STRINGS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h" freetype_version_str
++if(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
++  set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h")
++elseif(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
++  set(FREETYPE_H "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
++endif()
++
++if(FREETYPE_INCLUDE_DIR_freetype2 AND FREETYPE_H)
++    file(STRINGS "${FREETYPE_H}" freetype_version_str
+          REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$")
+ 
+     unset(FREETYPE_VERSION_STRING)



Home | Main Index | Thread Index | Old Index