From 76e9d912d66df97c87f041583b87ab1201c5160e Mon Sep 17 00:00:00 2001 From: Router Gray Date: Sat, 19 Oct 2019 22:02:34 -0500 Subject: [PATCH] [Linux] Drop prebuilt freetype and fontconfig, use system libraries. --- autobuild.xml | 70 ------------------------------ indra/cmake/Copy3rdPartyLibs.cmake | 6 --- indra/cmake/FreeType.cmake | 6 +-- indra/cmake/ViewerMiscLibs.cmake | 8 ++-- 4 files changed, 8 insertions(+), 82 deletions(-) diff --git a/autobuild.xml b/autobuild.xml index 3bb082e87..03b186d47 100644 --- a/autobuild.xml +++ b/autobuild.xml @@ -867,50 +867,6 @@ version 2.00.03.192211300 - fontconfig - - copyright - Copyright (C) 2000,2001,2002,2003,2004,2006,2007 Keith Packard, 2005 Patrick Lam, 2009 Roozbeh Pournader, 2008,2009 Red Hat, Inc., 2008 Danilo Ĺ egan, 2012 Google, Inc. - description - Fontconfig is a library for configuring and customizing font access. - license - bsd - license_file - LICENSES/fontconfig.txt - name - fontconfig - platforms - - linux - - archive - - hash - 2843c48e6c84a51e3d6aa05dace4c8c0 - url - http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3pl_3p-fontconfig-update/rev/290569/arch/Linux/installer/fontconfig-2.11.0-linux-20140602.tar.bz2 - - name - linux - - linux64 - - archive - - hash - 25726244f5bcd05f412514b030098c3c - hash_algorithm - md5 - url - http://depot.alchemyviewer.org/pub/linux64/lib-trusty/fontconfig-2.11.0-linux64-201603241804.tar.bz2 - - name - linux64 - - - version - 2.11.0 - fonts copyright @@ -1017,32 +973,6 @@ name darwin - linux - - archive - - hash - 52f87a65cc61ec4b05721c079d015b19 - url - http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3pl_3p-freetype-update/rev/290557/arch/Linux/installer/freetype-2.4.4-linux-20140602.tar.bz2 - - name - linux - - linux64 - - archive - - hash - b10ba0775b9f1033daf580a2cb55789d - hash_algorithm - md5 - url - http://depot.alchemyviewer.org/pub/linux64/lib-trusty/freetype-2.6.3-linux64-201603241755.tar.bz2 - - name - linux64 - windows archive diff --git a/indra/cmake/Copy3rdPartyLibs.cmake b/indra/cmake/Copy3rdPartyLibs.cmake index b9d12919b..2ee9ca97a 100644 --- a/indra/cmake/Copy3rdPartyLibs.cmake +++ b/indra/cmake/Copy3rdPartyLibs.cmake @@ -179,16 +179,10 @@ elseif(LINUX) libatk-1.0.so libexpat.so libexpat.so.1 - libfreetype.so.6.12.3 - libfreetype.so.6 - libfreetype.so libGLOD.so libgmodule-2.0.so libgobject-2.0.so libopenal.so - libfontconfig.so.1.8.0 - libfontconfig.so.1 - libfontconfig.so ) if (USE_TCMALLOC) diff --git a/indra/cmake/FreeType.cmake b/indra/cmake/FreeType.cmake index 2d6025f3a..da122419d 100644 --- a/indra/cmake/FreeType.cmake +++ b/indra/cmake/FreeType.cmake @@ -1,14 +1,14 @@ # -*- cmake -*- include(Prebuilt) -if (STANDALONE) +if (LINUX) include(FindPkgConfig) pkg_check_modules(FREETYPE REQUIRED freetype2) -else (STANDALONE) +else (LINUX) use_prebuilt_binary(freetype) set(FREETYPE_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/freetype2) set(FREETYPE_LIBRARIES freetype) -endif (STANDALONE) +endif (LINUX) link_directories(${FREETYPE_LIBRARY_DIRS}) diff --git a/indra/cmake/ViewerMiscLibs.cmake b/indra/cmake/ViewerMiscLibs.cmake index 2984f5261..36ee514e9 100644 --- a/indra/cmake/ViewerMiscLibs.cmake +++ b/indra/cmake/ViewerMiscLibs.cmake @@ -3,9 +3,6 @@ include(Prebuilt) if (NOT STANDALONE) use_prebuilt_binary(slvoice) - if(LINUX) - use_prebuilt_binary(fontconfig) - endif(LINUX) else (NOT STANDALONE) # Download there even when using standalone. set(STANDALONE OFF) @@ -16,4 +13,9 @@ else (NOT STANDALONE) set(STANDALONE ON) endif(NOT STANDALONE) +if(LINUX) + include(FindPkgConfig) + pkg_check_modules(FONTCONFIG REQUIRED fontconfig) +endif(LINUX) + use_prebuilt_binary(fonts)