aboutsummaryrefslogtreecommitdiff
path: root/ports/pixman
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-09-11 13:11:51 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-09-24 18:08:52 -0700
commitb35f75d646e8e66ac515a0836e9a808bee54c7ba (patch)
treedbee7e5df3473f5aac764dc851318545ce8a82d8 /ports/pixman
parentfd5fe4132c1ea2e5b4277a7ebe2f34f0bfce19fd (diff)
downloadvcpkg-b35f75d646e8e66ac515a0836e9a808bee54c7ba.tar.gz
vcpkg-b35f75d646e8e66ac515a0836e9a808bee54c7ba.zip
[cairo][expat][fontconfig][graphicsmagick][libjpeg-turbo][pixman][tiff] Add unofficial targets and usage information
Diffstat (limited to 'ports/pixman')
-rw-r--r--ports/pixman/CMakeLists.txt12
-rw-r--r--ports/pixman/CONTROL2
-rw-r--r--ports/pixman/portfile.cmake17
3 files changed, 23 insertions, 8 deletions
diff --git a/ports/pixman/CMakeLists.txt b/ports/pixman/CMakeLists.txt
index 8dc9940cb..d355fe8c6 100644
--- a/ports/pixman/CMakeLists.txt
+++ b/ports/pixman/CMakeLists.txt
@@ -46,14 +46,14 @@ file(GLOB SOURCES
)
add_library(pixman-1 ${SOURCES})
+target_include_directories(pixman-1 PUBLIC $<INSTALL_INTERFACE:include>)
# pixman requires the three PACKAGE* definitions in order to compile. The USE_SSE2 definition lets it use SSE2 instructions for speed. Every target machine should have SSE2 these days.
target_compile_definitions(pixman-1
- PUBLIC
+ PRIVATE
PACKAGE="pixman-1"
PACKAGE_VERSION="0.34.0"
PACKAGE_BUGREPORT=""
- PRIVATE
USE_SSE2
)
@@ -63,7 +63,15 @@ if(MSVC)
endif()
install(TARGETS pixman-1
+ EXPORT pixman-targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
+
+install(
+ EXPORT pixman-targets
+ NAMESPACE unofficial::pixman::
+ FILE unofficial-pixman-config.cmake
+ DESTINATION share/unofficial-pixman
+)
diff --git a/ports/pixman/CONTROL b/ports/pixman/CONTROL
index 0deb60d33..d3a5cede7 100644
--- a/ports/pixman/CONTROL
+++ b/ports/pixman/CONTROL
@@ -1,3 +1,3 @@
Source: pixman
-Version: 0.34.0-3
+Version: 0.34.0-4
Description: Pixman is a low-level software library for pixel manipulation, providing features such as image compositing and trapezoid rasterization.
diff --git a/ports/pixman/portfile.cmake b/ports/pixman/portfile.cmake
index 4fb37f6d9..83daa9a51 100644
--- a/ports/pixman/portfile.cmake
+++ b/ports/pixman/portfile.cmake
@@ -1,13 +1,16 @@
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/pixman-0.34.0)
-
+set(PIXMAN_VERSION 0.34.0)
vcpkg_download_distfile(ARCHIVE
- URLS "https://www.cairographics.org/releases/pixman-0.34.0.tar.gz"
- FILENAME "pixman-0.34.0.tar.gz"
+ URLS "https://www.cairographics.org/releases/pixman-${PIXMAN_VERSION}.tar.gz"
+ FILENAME "pixman-${PIXMAN_VERSION}.tar.gz"
SHA512 81caca5b71582b53aaac473bc37145bd66ba9acebb4773fa8cdb51f4ed7fbcb6954790d8633aad85b2826dd276bcce725e26e37997a517760e9edd72e2669a6d
)
-vcpkg_extract_source_archive(${ARCHIVE})
+vcpkg_extract_source_archive_ex(
+ OUT_SOURCE_PATH SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
+ REF ${PIXMAN_VERSION}
+)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/pixman)
@@ -18,6 +21,8 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-pixman TARGET_PATH share/unofficial-pixman)
+
# Copy the appropriate header files.
file(COPY
"${SOURCE_PATH}/pixman/pixman.h"
@@ -36,3 +41,5 @@ file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/pixma
file(RENAME ${CURRENT_PACKAGES_DIR}/share/pixman/COPYING ${CURRENT_PACKAGES_DIR}/share/pixman/copyright)
vcpkg_copy_pdbs()
+
+vcpkg_test_cmake(PACKAGE_NAME unofficial-pixman)