graphite2: fix #2800 by setting INSTALL_NAME_DIR
This commit is contained in:
@@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ pkgconfig freetype cmake ];
|
||||
|
||||
patches = stdenv.lib.optionals stdenv.isDarwin [ ./macosx.patch ];
|
||||
|
||||
meta = {
|
||||
description = "An advanced font engine";
|
||||
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||
|
||||
13
pkgs/development/libraries/silgraphite/macosx.patch
Normal file
13
pkgs/development/libraries/silgraphite/macosx.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -102,7 +102,8 @@ set_target_properties(graphite2 PROPERTIES PUBLIC_HEADER "${GRAPHITE_HEADERS}"
|
||||
VERSION ${GRAPHITE_VERSION}
|
||||
LT_VERSION_CURRENT ${GRAPHITE_API_CURRENT}
|
||||
LT_VERSION_REVISION ${GRAPHITE_API_REVISION}
|
||||
- LT_VERSION_AGE ${GRAPHITE_API_AGE})
|
||||
+ LT_VERSION_AGE ${GRAPHITE_API_AGE}
|
||||
+ INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
|
||||
|
||||
if (${CMAKE_BUILD_TYPE} STREQUAL "ClangASN")
|
||||
set(GRAPHITE_LINK_FLAGS "-fsanitize=address")
|
||||
|
||||
Reference in New Issue
Block a user