aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2018-02-26 00:59:52 -0800
committerGitHub <noreply@github.com>2018-02-26 00:59:52 -0800
commitdc166b21ae196bd4b3fe3c47a9ee205319b128e8 (patch)
tree5afbfee3af5be1023b46a1431e48be7b2977ccc0
parente66bd10cd6dacae04dd98fb69c9cf8f10bc3bbec (diff)
parent05e53332449f5fad3a335e65fc6b848d423f76d1 (diff)
downloadvcpkg-dc166b21ae196bd4b3fe3c47a9ee205319b128e8.tar.gz
vcpkg-dc166b21ae196bd4b3fe3c47a9ee205319b128e8.zip
Merge pull request #2860 from cmpute/x265
Add x265 package
-rw-r--r--ports/x265/CONTROL3
-rw-r--r--ports/x265/portfile.cmake29
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/x265/CONTROL b/ports/x265/CONTROL
new file mode 100644
index 000000000..c59410bd9
--- /dev/null
+++ b/ports/x265/CONTROL
@@ -0,0 +1,3 @@
+Source: x265
+Version: 2.7
+Description: x265 is a H.265 / HEVC video encoder application library, designed to encode video or images into an H.265 / HEVC encoded bitstream.
diff --git a/ports/x265/portfile.cmake b/ports/x265/portfile.cmake
new file mode 100644
index 000000000..6f4f7cd6d
--- /dev/null
+++ b/ports/x265/portfile.cmake
@@ -0,0 +1,29 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_bitbucket(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO multicoreware/x265
+ REF 2.7
+ SHA512 fd2f43830bbe4fa0ac98ac6d8e3689d0a8a5142da9d67c0dd16fbbde40500c52a370c5c5a30e93195c2e998660a51abab76b09baed87378c9e366cf2f694f2b9
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}/source
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+
+# remove duplicated include files
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/x265)
+file(RENAME ${CURRENT_PACKAGES_DIR}/bin/x265.exe ${CURRENT_PACKAGES_DIR}/tools/x265/x265.exe)
+file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/x265.exe)
+vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/x265)
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/x265)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/x265/COPYING ${CURRENT_PACKAGES_DIR}/share/x265/copyright) \ No newline at end of file