[freetype] use config and the correct alias (#9311)

* use config and the correct alias

@Neumann-A figured out that `add_library(Freetype::Freetype ALIAS freetype)` is defined so instead of Freetype::Freetype use freetype. @qis Also pointed out that freetype uses a cmake config file. Thats why CONFIG parameter is required.

* remove usage

* bump version to 2.10.1-2

* remove faulty line after usage deletion
This commit is contained in:
B4rtware 2020-01-02 23:18:39 +01:00 committed by dan-shaw
parent e510f8708e
commit 0ee4f000bd
3 changed files with 1 additions and 6 deletions

View File

@ -1,5 +1,5 @@
Source: freetype
Version: 2.10.1-1
Version: 2.10.1-2
Build-Depends: zlib, bzip2, libpng
Homepage: https://www.freetype.org/
Description: A library to render fonts.

View File

@ -72,7 +72,6 @@ file(COPY
${SOURCE_PATH}/docs/LICENSE.TXT
${SOURCE_PATH}/docs/FTL.TXT
${SOURCE_PATH}/docs/GPLv2.TXT
${CMAKE_CURRENT_LIST_DIR}/usage
DESTINATION ${CURRENT_PACKAGES_DIR}/share/freetype
)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/freetype/LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/freetype/copyright)

View File

@ -1,4 +0,0 @@
The package freetype is compatible with built-in CMake targets:
find_package(Freetype REQUIRED)
target_link_libraries(main PRIVATE Freetype::Freetype)