mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 03:33:02 +08:00
commit
865f05f859
4
ports/graphite2/CONTROL
Normal file
4
ports/graphite2/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: graphite2
|
||||
Version: 1.3.10
|
||||
Description: Graphite is a "smart font" system developed specifically to handle the complexities of lesser-known languages of the world.
|
||||
Graphite2 is a rework of the original Graphite engine that is faster, smaller, and uses an API that is better suited to the layout architecture of most text-processing applications.
|
21
ports/graphite2/fix-static-build.patch
Normal file
21
ports/graphite2/fix-static-build.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3466c5f..d88b3bc 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -63,11 +63,11 @@ endif (GRAPHITE2_VM_TYPE STREQUAL "direct" AND NOT (CMAKE_COMPILER_IS_GNUCXX OR
|
||||
message(STATUS "Using vm machine type: ${GRAPHITE2_VM_TYPE}")
|
||||
|
||||
add_subdirectory(src)
|
||||
-add_subdirectory(tests)
|
||||
-add_subdirectory(doc)
|
||||
-if (NOT (GRAPHITE2_NSEGCACHE OR GRAPHITE2_NFILEFACE))
|
||||
- add_subdirectory(gr2fonttest)
|
||||
-endif (NOT (GRAPHITE2_NSEGCACHE OR GRAPHITE2_NFILEFACE))
|
||||
+# add_subdirectory(tests)
|
||||
+# add_subdirectory(doc)
|
||||
+# if (NOT (GRAPHITE2_NSEGCACHE OR GRAPHITE2_NFILEFACE))
|
||||
+# add_subdirectory(gr2fonttest)
|
||||
+# endif (NOT (GRAPHITE2_NSEGCACHE OR GRAPHITE2_NFILEFACE))
|
||||
|
||||
set(version 3.0.1)
|
||||
set(libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
|
26
ports/graphite2/portfile.cmake
Normal file
26
ports/graphite2/portfile.cmake
Normal file
@ -0,0 +1,26 @@
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO silnrsi/graphite
|
||||
REF 99658129785a218556929db0595a002a668b40b0
|
||||
SHA512 50cf6f727a2ea13ccbf55b4dad282358c40973aa0a0d97db6d721208b70fe848791aab183062c7bed8ce5b0dc3fecd6b604f6defdd5ae89b46ce267069ee0ed1
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/gr2fonttest.exe)
|
||||
# file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/gr2fonttest.exe)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/graphite2)
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/graphite2 RENAME copyright)
|
Loading…
Reference in New Issue
Block a user