diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-18 20:50:08 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-18 20:54:03 -0700 |
| commit | ccca198c1b1730b0241911cb56dc8e3504958b2a (patch) | |
| tree | a2dd9b8b087a09afdcecc5cbb3377bed15127eb2 /ports | |
| download | vcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.tar.gz vcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.zip | |
Initial commit
Diffstat (limited to 'ports')
60 files changed, 2188 insertions, 0 deletions
diff --git a/ports/boost/CONTROL b/ports/boost/CONTROL new file mode 100644 index 000000000..8307022f0 --- /dev/null +++ b/ports/boost/CONTROL @@ -0,0 +1,3 @@ +Source: boost +Version: 1.60 +Description: Peer-reviewed portable C++ source libraries diff --git a/ports/boost/portfile.cmake b/ports/boost/portfile.cmake new file mode 100644 index 000000000..acdfb9379 --- /dev/null +++ b/ports/boost/portfile.cmake @@ -0,0 +1,93 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE_FILE + URL "http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.bz2" + FILENAME "boost_1_60_0.tar.bz2" + MD5 65a840e1a0b13a558ff19eeb2c4f0cbe +) +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0/b2.exe) + message(STATUS "Bootstrapping") + vcpkg_execute_required_process( + COMMAND "${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0/bootstrap.bat" + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0 + LOGNAME bootstrap + ) +endif() +message(STATUS "Bootstrapping done") + +set(B2_OPTIONS + --toolset=msvc + -j$ENV{NUMBER_OF_PROCESSORS} + -q + --without-python + threading=multi + link=shared + runtime-link=shared + --debug-configuration +) +if(TRIPLET_SYSTEM_ARCH MATCHES "x64") + list(APPEND B2_OPTIONS address-model=64) +endif() +if(TRIPLET_SYSTEM_NAME MATCHES "WindowsStore") + list(APPEND B2_OPTIONS windows-api=store) + set(ENV{BOOST_BUILD_PATH} ${CMAKE_CURRENT_LIST_DIR}) +endif() + +message(STATUS "Building ${TARGET_TRIPLET}-rel") +vcpkg_execute_required_process( + COMMAND "${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0/b2.exe" + --stagedir=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/stage + --build-dir=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel + ${B2_OPTIONS} + variant=release + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0 + LOGNAME build-${TARGET_TRIPLET}-rel +) +message(STATUS "Building ${TARGET_TRIPLET}-rel done") +message(STATUS "Building ${TARGET_TRIPLET}-dbg") +vcpkg_execute_required_process( + COMMAND "${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0/b2.exe" + --stagedir=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/stage + --build-dir=${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg + ${B2_OPTIONS} + variant=debug + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0 + LOGNAME build-${TARGET_TRIPLET}-dbg +) +message(STATUS "Building ${TARGET_TRIPLET}-dbg done") + +message(STATUS "Packaging headers") +file( + COPY ${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0/boost + DESTINATION ${CURRENT_PACKAGES_DIR}/include + PATTERN "config/user.hpp" EXCLUDE +) +file(COPY ${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0/boost/config/user.hpp + DESTINATION ${CURRENT_PACKAGES_DIR}/include/boost/config/ +) +file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp + "\n#define BOOST_ALL_DYN_LINK\n" +) +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/boost_1_60_0/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost RENAME copyright) +message(STATUS "Packaging headers done") + +message(STATUS "Packaging ${TARGET_TRIPLET}-rel") +file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/stage/lib/ + DESTINATION ${CURRENT_PACKAGES_DIR}/lib + FILES_MATCHING PATTERN "*.lib") +file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/stage/lib/ + DESTINATION ${CURRENT_PACKAGES_DIR}/bin + FILES_MATCHING PATTERN "*.dll") +message(STATUS "Packaging ${TARGET_TRIPLET}-rel done") + +message(STATUS "Packaging ${TARGET_TRIPLET}-dbg") +file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/stage/lib/ + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib + FILES_MATCHING PATTERN "*.lib") +file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/stage/lib/ + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin + FILES_MATCHING PATTERN "*.dll") +message(STATUS "Packaging ${TARGET_TRIPLET}-dbg done") + +vcpkg_copy_pdbs()
\ No newline at end of file diff --git a/ports/boost/user-config.jam b/ports/boost/user-config.jam new file mode 100644 index 000000000..58184920a --- /dev/null +++ b/ports/boost/user-config.jam @@ -0,0 +1,10 @@ +using msvc : 14.0 : : +<compileflags>"\"/AIC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\LIB\\store\\references\"" +<linkflags>/appcontainer +<linkflags>/nodefaultlibs +<linkflags>WindowsApp.lib +<variant>release:<linkflags>vcruntime.lib +<variant>debug:<linkflags>vcruntimed.lib +<variant>release:<linkflags>ucrt.lib +<variant>debug:<linkflags>ucrtd.lib +; diff --git a/ports/cocos2d/portfile.cmake b/ports/cocos2d/portfile.cmake new file mode 100644 index 000000000..b39180b40 --- /dev/null +++ b/ports/cocos2d/portfile.cmake @@ -0,0 +1,47 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE_FILE + URL "https://github.com/cocos2d/cocos2d-x/archive/cocos2d-x-3.10.tar.gz" + FILENAME "cocos2d-x-3.10.tar.gz" + MD5 7c67068675ad28374448e844b0e463ff +) +vcpkg_download_distfile(DEPS_ARCHIVE_FILE + URL "https://github.com/cocos2d/cocos2d-x-3rd-party-libs-bin/archive/v3-deps-79.zip" + FILENAME "cocos2d-x-v3-deps-79.zip" + MD5 5d88ff867205080b9ee8da532437e891 +) + +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/external/unzip) + message(STATUS "Extracting dependencies ${DEPS_ARCHIVE_FILE}") + file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/deps) + vcpkg_execute_required_process( + COMMAND ${CMAKE_COMMAND} -E tar xjf ${DEPS_ARCHIVE_FILE} + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/deps + LOGNAME extract-deps + ) + file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/external) + file(RENAME ${CURRENT_BUILDTREES_DIR}/deps/cocos2d-x-3rd-party-libs-bin-3-deps-79 ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/external) +endif() +message(STATUS "Extracting dependencies done") + +file(REMOVE ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/cmake/Modules/FindGLFW3.cmake) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10 + OPTIONS + -DUSE_CHIPMUNK=OFF + -DUSE_BOX2D=OFF + -DUSE_BULLET=OFF + -DUSE_RECAST=OFF + -DUSE_WEBP=OFF + -DBUILD_SHARED_LIBS=ON + -DUSE_PREBUILT_LIBS=OFF +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/cocos2d-x-cocos2d-x-3.10/licenses/LICENSE_cocos2d-x.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/cocos2d-x RENAME copyright) +vcpkg_copy_pdbs() + diff --git a/ports/cpprestsdk/0001-Use-find_package-on-Windows.-Enable-install-target-f.patch b/ports/cpprestsdk/0001-Use-find_package-on-Windows.-Enable-install-target-f.patch new file mode 100644 index 000000000..40e6a5ce3 --- /dev/null +++ b/ports/cpprestsdk/0001-Use-find_package-on-Windows.-Enable-install-target-f.patch @@ -0,0 +1,107 @@ +From cc9d3ca4d1d16134a1976b89b58b11372a2798d5 Mon Sep 17 00:00:00 2001 +From: Robert Schumacher <roschuma@microsoft.com> +Date: Wed, 4 May 2016 21:37:23 -0700 +Subject: [PATCH] Use find_package on Windows. Enable 'install' target for all + systems. + +--- + Release/CMakeLists.txt | 48 ++++++++++++++-------------------------------- + Release/src/CMakeLists.txt | 13 +++++++------ + 2 files changed, 21 insertions(+), 40 deletions(-) + +diff --git a/Release/CMakeLists.txt b/Release/CMakeLists.txt +index cbe840b..3045948 100644 +--- a/Release/CMakeLists.txt ++++ b/Release/CMakeLists.txt +@@ -89,15 +89,6 @@ elseif(UNIX) # This includes OSX + + option(BUILD_SHARED_LIBS "Build shared Libraries." ON) + option(BUILD_SAMPLES "Build samples." ON) +- option(CASA_INSTALL_HEADERS "Install header files." ON) +- if(CASA_INSTALL_HEADERS) +- file(GLOB CASA_HEADERS_CPPREST include/cpprest/*.hpp include/cpprest/*.h include/cpprest/*.dat) +- install(FILES ${CASA_HEADERS_CPPREST} DESTINATION include/cpprest) +- file(GLOB CASA_HEADERS_PPLX include/pplx/*.hpp include/pplx/*.h) +- install(FILES ${CASA_HEADERS_PPLX} DESTINATION include/pplx) +- file(GLOB CASA_HEADERS_DETAILS include/cpprest/details/*.hpp include/cpprest/details/*.h include/cpprest/details/*.dat) +- install(FILES ${CASA_HEADERS_DETAILS} DESTINATION include/cpprest/details) +- endif() + elseif(WIN32) + option(BUILD_SHARED_LIBS "Build shared Libraries." ON) + option(BUILD_SAMPLES "Build samples." ON) +@@ -114,36 +105,25 @@ elseif(WIN32) + endif() + add_definitions(${Casablanca_DEFINITIONS} -D_WINSOCK_DEPRECATED_NO_WARNINGS -DWIN32) + +- if (NOT CPPREST_EXCLUDE_WEBSOCKETS) +- set(NUGET_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../packages") +- set(PACKAGE_PATHS) +- list(APPEND PACKAGE_PATHS "${NUGET_PATH}/boost.1.58.0.0/") +- list(APPEND PACKAGE_PATHS "${NUGET_PATH}/boost_system-vc140.1.58.0-vs140rc/") +- list(APPEND PACKAGE_PATHS "${NUGET_PATH}/boost_date_time-vc140.1.58.0-vs140rc/") +- list(APPEND PACKAGE_PATHS "${NUGET_PATH}/boost_regex-vc140.1.58.0-vs140rc/") +- list(APPEND PACKAGE_PATHS "${NUGET_PATH}/openssl.v140.windesktop.msvcstl.static.rt-dyn.x64.1.0.2.1/") +- list(APPEND PACKAGE_PATHS "${NUGET_PATH}/zlib.v140.windesktop.msvcstl.static.rt-dyn.1.2.8.8/") +- +- if (NOT WINDOWS_STORE AND NOT WINDOWS_PHONE) +- find_library(Boost_SYSTEM_LIBRARY libboost_system-vc140-mt-gd-1_58.lib PATHS ${PACKAGE_PATHS} PATH_SUFFIXES lib/native/address-model-64/lib) +- find_library(Boost_DATE_TIME_LIBRARY libboost_date_time-vc140-mt-gd-1_58.lib PATHS ${PACKAGE_PATHS} PATH_SUFFIXES lib/native/address-model-64/lib) +- find_library(Boost_REGEX_LIBRARY libboost_regex-vc140-mt-gd-1_58.lib PATHS ${PACKAGE_PATHS} PATH_SUFFIXES lib/native/address-model-64/lib) +- set(Boost_LIBRARIES ${Boost_REGEX_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_DATE_TIME_LIBRARY}) +- +- find_library(OpenSSL_libeay_LIBRARY libeay32.lib PATHS ${PACKAGE_PATHS} PATH_SUFFIXES lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/debug) +- find_library(OpenSSL_ssleay_LIBRARY ssleay32.lib PATHS ${PACKAGE_PATHS} PATH_SUFFIXES lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/debug) +- find_library(ZLIB_LIBRARY zlibstaticd.lib PATHS ${PACKAGE_PATHS} PATH_SUFFIXES lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/debug) +- set(OPENSSL_LIBRARIES ${OpenSSL_ssleay_LIBRARY} ${OpenSSL_libeay_LIBRARY} ${ZLIB_LIBRARY}) +- +- set(OPENSSL_INCLUDE_DIR "${NUGET_PATH}/openssl.v140.windesktop.msvcstl.static.rt-dyn.x64.1.0.2.1/build/native/include") +- endif() +- +- set(Boost_INCLUDE_DIR "${NUGET_PATH}/boost.1.58.0.0/lib/native/include") ++ if (NOT CPPREST_EXCLUDE_WEBSOCKETS AND NOT WINDOWS_STORE) ++ find_package(ZLIB REQUIRED) ++ find_package(OpenSSL REQUIRED) ++ find_package(Boost REQUIRED COMPONENTS regex system date_time) + endif() + else() + message(FATAL_ERROR "-- Unsupported Build Platform.") + endif() + ++option(CASA_INSTALL_HEADERS "Install header files." ON) ++if(CASA_INSTALL_HEADERS) ++ file(GLOB CASA_HEADERS_CPPREST include/cpprest/*.hpp include/cpprest/*.h include/cpprest/*.dat) ++ install(FILES ${CASA_HEADERS_CPPREST} DESTINATION include/cpprest) ++ file(GLOB CASA_HEADERS_PPLX include/pplx/*.hpp include/pplx/*.h) ++ install(FILES ${CASA_HEADERS_PPLX} DESTINATION include/pplx) ++ file(GLOB CASA_HEADERS_DETAILS include/cpprest/details/*.hpp include/cpprest/details/*.h include/cpprest/details/*.dat) ++ install(FILES ${CASA_HEADERS_DETAILS} DESTINATION include/cpprest/details) ++endif() ++ + # Compiler (not platform) specific settings + if(ANDROID) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-strict-aliasing") +diff --git a/Release/src/CMakeLists.txt b/Release/src/CMakeLists.txt +index cf086ed..3e5fffa 100644 +--- a/Release/src/CMakeLists.txt ++++ b/Release/src/CMakeLists.txt +@@ -144,10 +144,11 @@ elseif(ANDROID) + else() + set_target_properties(cpprest PROPERTIES + SOVERSION ${CPPREST_VERSION_MAJOR}.${CPPREST_VERSION_MINOR}) +- +- install( +- TARGETS cpprest +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib +- ) + endif() ++ ++install( ++ TARGETS cpprest ++ RUNTIME DESTINATION bin ++ LIBRARY DESTINATION lib ++ ARCHIVE DESTINATION lib ++ ) +-- +2.8.1.windows.1 + diff --git a/ports/cpprestsdk/CONTROL b/ports/cpprestsdk/CONTROL new file mode 100644 index 000000000..eca83755b --- /dev/null +++ b/ports/cpprestsdk/CONTROL @@ -0,0 +1,4 @@ +Source: cpprestsdk +Version: 2.8 +Description: C++11 JSON, REST, and OAuth library + The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
\ No newline at end of file diff --git a/ports/cpprestsdk/portfile.cmake b/ports/cpprestsdk/portfile.cmake new file mode 100644 index 000000000..ba9ea77e3 --- /dev/null +++ b/ports/cpprestsdk/portfile.cmake @@ -0,0 +1,50 @@ +include(vcpkg_common_functions) +find_program(GIT git) + +set(GIT_URL "https://github.com/Microsoft/cpprestsdk") +set(GIT_REF "3542f07") + +if(NOT EXISTS "${DOWNLOADS}/cpprestsdk.git") + message(STATUS "Cloning") + vcpkg_execute_required_process( + COMMAND ${GIT} clone --bare ${GIT_URL} ${DOWNLOADS}/cpprestsdk.git + WORKING_DIRECTORY ${DOWNLOADS} + LOGNAME clone + ) +endif() +message(STATUS "Cloning done") + +if(NOT EXISTS "${CURRENT_BUILDTREES_DIR}/src/.git") + message(STATUS "Adding worktree and patching") + file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}) + vcpkg_execute_required_process( + COMMAND ${GIT} worktree add -f --detach ${CURRENT_BUILDTREES_DIR}/src ${GIT_REF} + WORKING_DIRECTORY ${DOWNLOADS}/cpprestsdk.git + LOGNAME worktree + ) + message(STATUS "Patching") + vcpkg_execute_required_process( + COMMAND ${GIT} apply ${CMAKE_CURRENT_LIST_DIR}/0001-Use-find_package-on-Windows.-Enable-install-target-f.patch --ignore-whitespace --whitespace=fix + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src + LOGNAME patch + ) +endif() +message(STATUS "Adding worktree and patching done") + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/Release + OPTIONS + -DBUILD_TESTS=OFF + -DBUILD_SAMPLES=OFF + -DCPPREST_EXCLUDE_WEBSOCKETS=ON + OPTIONS_DEBUG + -DCASA_INSTALL_HEADERS=OFF +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(COPY ${CURRENT_BUILDTREES_DIR}/src/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/cpprestsdk) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/cpprestsdk/license.txt ${CURRENT_PACKAGES_DIR}/share/cpprestsdk/copyright) +vcpkg_copy_pdbs() + diff --git a/ports/curl/CONTROL b/ports/curl/CONTROL new file mode 100644 index 000000000..259803ab7 --- /dev/null +++ b/ports/curl/CONTROL @@ -0,0 +1,3 @@ +Source: curl +Version: 7.48.0 +Description: A library for transferring data with URLs
\ No newline at end of file diff --git a/ports/curl/portfile.cmake b/ports/curl/portfile.cmake new file mode 100644 index 000000000..fc1115741 --- /dev/null +++ b/ports/curl/portfile.cmake @@ -0,0 +1,24 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE_FILE + URL "https://curl.haxx.se/download/curl-7.48.0.tar.bz2" + FILENAME "curl-7.48.0.tar.bz2" + MD5 d42e0fc34a5cace5739631cc040974fe +) +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/curl-7.48.0 + OPTIONS + -DBUILD_CURL_TESTS=OFF + -DBUILD_CURL_EXE=OFF + -DENABLE_MANUAL=OFF + OPTIONS_DEBUG + -DENABLE_DEBUG=ON +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/curl-7.48.0/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/curl RENAME copyright) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +vcpkg_copy_pdbs()
\ No newline at end of file diff --git a/ports/expat/CONTROL b/ports/expat/CONTROL new file mode 100644 index 000000000..86d446529 --- /dev/null +++ b/ports/expat/CONTROL @@ -0,0 +1,3 @@ +Source: expat +Version: 2.1.1 +Description: XML parser library written in C
\ No newline at end of file diff --git a/ports/expat/portfile.cmake b/ports/expat/portfile.cmake new file mode 100644 index 000000000..9a396774d --- /dev/null +++ b/ports/expat/portfile.cmake @@ -0,0 +1,22 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE_FILE + URL "http://downloads.sourceforge.net/project/expat/expat/2.1.1/expat-2.1.1.tar.bz2" + FILENAME "expat-2.1.1.tar.bz2" + MD5 7380a64a8e3a9d66a9887b01d0d7ea81 +) +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/expat-2.1.1 + OPTIONS + -DBUILD_examples=OFF + -DBUILD_tests=OFF + -DBUILD_tools=OFF +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/lib/pkgconfig) +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/expat-2.1.1/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/expat RENAME copyright) +vcpkg_copy_pdbs()
\ No newline at end of file diff --git a/ports/freetype/0001-Support-Windows-DLLs-via-CMAKE_WINDOWS_EXPORT_ALL_SY.patch b/ports/freetype/0001-Support-Windows-DLLs-via-CMAKE_WINDOWS_EXPORT_ALL_SY.patch new file mode 100644 index 000000000..34318ad61 --- /dev/null +++ b/ports/freetype/0001-Support-Windows-DLLs-via-CMAKE_WINDOWS_EXPORT_ALL_SY.patch @@ -0,0 +1,25 @@ +From 7286c233834117404f400e3cfd5500610ca56d9a Mon Sep 17 00:00:00 2001 +From: Robert Schumacher <roschuma@microsoft.com> +Date: Sat, 7 May 2016 02:10:45 -0700 +Subject: [PATCH] Support Windows DLLs via CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f02ee51..774737d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -115,7 +115,7 @@ project(freetype) + + + if (WIN32 AND NOT MINGW AND BUILD_SHARED_LIBS) +- message(FATAL_ERROR "Building shared libraries on Windows needs MinGW") ++ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) + endif () + + # Disallow in-source builds +-- +2.8.1.windows.1 + diff --git a/ports/freetype/CONTROL b/ports/freetype/CONTROL new file mode 100644 index 000000000..87454460e --- /dev/null +++ b/ports/freetype/CONTROL @@ -0,0 +1,3 @@ +Source: freetype +Version: 2.6.3 +Description: A library to render fonts.
\ No newline at end of file diff --git a/ports/freetype/portfile.cmake b/ports/freetype/portfile.cmake new file mode 100644 index 000000000..641d2e5f9 --- /dev/null +++ b/ports/freetype/portfile.cmake @@ -0,0 +1,41 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "http://download.savannah.gnu.org/releases/freetype/freetype-2.6.3.tar.bz2" + FILENAME "freetype-2.6.3.tar.bz2" + MD5 0037b25a8c090bc8a1218e867b32beb1 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_apply_patches( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3 + PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001-Support-Windows-DLLs-via-CMAKE_WINDOWS_EXPORT_ALL_SY.patch +) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3 + OPTIONS + -DBUILD_SHARED_LIBS=ON +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include) +file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include ${CURRENT_PACKAGES_DIR}/share) +file(RENAME ${CURRENT_PACKAGES_DIR}/debug/include/freetype2/freetype ${CURRENT_PACKAGES_DIR}/include/freetype2) +file(RENAME ${CURRENT_PACKAGES_DIR}/debug/include/freetype2/ft2build.h ${CURRENT_PACKAGES_DIR}/include/freetype2/ft2build.h) +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cmake/freetype ${CURRENT_PACKAGES_DIR}/share/freetype) +file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/cmake/freetype/freetype-config-debug.cmake ${CURRENT_PACKAGES_DIR}/share/freetype/freetype-config-debug.cmake) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(COPY + ${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3/docs/LICENSE.TXT + ${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3/docs/FTL.TXT + ${CURRENT_BUILDTREES_DIR}/src/freetype-2.6.3/docs/GPLv2.TXT + DESTINATION ${CURRENT_PACKAGES_DIR}/share/freetype +) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/freetype/LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/freetype/copyright) +vcpkg_copy_pdbs() + diff --git a/ports/glew/CONTROL b/ports/glew/CONTROL new file mode 100644 index 000000000..f38f2dc40 --- /dev/null +++ b/ports/glew/CONTROL @@ -0,0 +1,3 @@ +Source: glew +Version: 1.13.0 +Description: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.
\ No newline at end of file diff --git a/ports/glew/portfile.cmake b/ports/glew/portfile.cmake new file mode 100644 index 000000000..320db8043 --- /dev/null +++ b/ports/glew/portfile.cmake @@ -0,0 +1,53 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE_FILE + URL "http://downloads.sourceforge.net/project/glew/glew/1.13.0/glew-1.13.0.tgz" + FILENAME "glew-1.13.0.tgz" + MD5 7cbada3166d2aadfc4169c4283701066 +) +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/build/vc12/glew_shared14.vcxproj) + message(STATUS "Upgrading projects") + file(READ ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/build/vc12/glew_shared.vcxproj PROJ) + string(REPLACE + "<PlatformToolset>v120</PlatformToolset>" + "<PlatformToolset>v140</PlatformToolset>" + PROJ ${PROJ}) + string(REPLACE + "opengl32.lib%" + "opengl32.lib\;%" + PROJ ${PROJ}) + file(WRITE ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/build/vc12/glew_shared14.vcxproj ${PROJ}) +endif() +message(STATUS "Upgrading projects done") + +vcpkg_build_msbuild( + PROJECT_PATH ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/build/vc12/glew_shared14.vcxproj +) + +message(STATUS "Installing") +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/bin/Debug/Win32/glew32d.dll + ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/bin/Debug/Win32/glew32d.pdb + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin +) +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/bin/Release/Win32/glew32.dll + ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/bin/Release/Win32/glew32.pdb + DESTINATION ${CURRENT_PACKAGES_DIR}/bin +) +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/lib/Debug/Win32/glew32d.lib + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib +) +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/lib/Release/Win32/glew32.lib + DESTINATION ${CURRENT_PACKAGES_DIR}/lib +) +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/include/GL + DESTINATION ${CURRENT_PACKAGES_DIR}/include +) +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/glew-1.13.0/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glew RENAME copyright) +vcpkg_copy_pdbs() +message(STATUS "Installing done") diff --git a/ports/glfw3/CONTROL b/ports/glfw3/CONTROL new file mode 100644 index 000000000..0015a9105 --- /dev/null +++ b/ports/glfw3/CONTROL @@ -0,0 +1,3 @@ +Source: glfw3 +Version: 3.1.2 +Description: GLFW is a free, Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan application development. It provides a simple, platform-independent API for creating windows, contexts and surfaces, reading input, handling events, etc.
\ No newline at end of file diff --git a/ports/glfw3/portfile.cmake b/ports/glfw3/portfile.cmake new file mode 100644 index 000000000..cbfa6134d --- /dev/null +++ b/ports/glfw3/portfile.cmake @@ -0,0 +1,58 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/glfw/glfw/releases/download/3.1.2/glfw-3.1.2.zip" + FILENAME "glfw-3.1.2.zip" + MD5 8023327bfe979b3fe735e449e2f54842 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/patch.stamp) + file(READ ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2/src/glfw3Config.cmake.in CONFIG) + string(REPLACE "\"@GLFW_LIB_NAME@\"" "NAMES @GLFW_LIB_NAME@ @GLFW_LIB_NAME@dll" + CONFIG ${CONFIG} + ) + string(REPLACE "@PACKAGE_CMAKE_INSTALL_PREFIX@" "@PACKAGE_CMAKE_INSTALL_PREFIX@/../.." + CONFIG ${CONFIG} + ) + file(WRITE ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2/src/glfw3Config.cmake.in ${CONFIG}) + file(APPEND ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2/src/glfw3Config.cmake.in "set(GLFW3_LIBRARIES \${GLFW3_LIBRARY})\n") + file(WRITE ${CURRENT_BUILDTREES_DIR}/patch.stamp) +endif() + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2 + OPTIONS + -DBUILD_SHARED_LIBS=ON + -DGLFW_BUILD_EXAMPLES=OFF + -DGLFW_BUILD_TESTS=OFF + -DGLFW_BUILD_DOCS=OFF + -DPACKAGE_CMAKE_INSTALL_PREFIX=\${CMAKE_CURRENT_LIST_DIR}/../.. + # OPTIONS_RELEASE -DOPTIMIZE=1 + # OPTIONS_DEBUG -DDEBUGGABLE=1 +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(MAKE_DIRECTORY + ${CURRENT_PACKAGES_DIR}/bin + ${CURRENT_PACKAGES_DIR}/debug/bin + ${CURRENT_PACKAGES_DIR}/share +) +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/glfw3.dll ${CURRENT_PACKAGES_DIR}/bin/glfw3.dll) +file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/glfw3.dll ${CURRENT_PACKAGES_DIR}/debug/bin/glfw3.dll) + +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cmake/glfw ${CURRENT_PACKAGES_DIR}/share/glfw3) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/cmake/glfw/glfwTargets-debug.cmake ${CURRENT_PACKAGES_DIR}/share/glfw3/glfwTargets-debug.cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/glfw3.lib) +file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/glfw3.lib) + +file(COPY ${CURRENT_BUILDTREES_DIR}/src/glfw-3.1.2/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glfw3) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/glfw3/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/glfw3/copyright) +vcpkg_copy_pdbs() + diff --git a/ports/libjpeg-turbo/CONTROL b/ports/libjpeg-turbo/CONTROL new file mode 100644 index 000000000..9c5ee1d07 --- /dev/null +++ b/ports/libjpeg-turbo/CONTROL @@ -0,0 +1,3 @@ +Source: libjpeg-turbo +Version: 1.4.90-1 +Description: libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2, NEON, AltiVec) to accelerate baseline JPEG compression and decompression on x86, x86-64, ARM, and PowerPC systems. diff --git a/ports/libjpeg-turbo/add-options-for-exes-docs-headers.patch b/ports/libjpeg-turbo/add-options-for-exes-docs-headers.patch new file mode 100644 index 000000000..5be2594c7 --- /dev/null +++ b/ports/libjpeg-turbo/add-options-for-exes-docs-headers.patch @@ -0,0 +1,201 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bfb7661..5373cd7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -55,6 +55,9 @@ option(WITH_JAVA "Build Java wrapper for the TurboJPEG library" FALSE) + option(WITH_12BIT "Encode/decode JPEG images with 12-bit samples (implies WITH_SIMD=0 WITH_TURBOJPEG=0 WITH_ARITH_ENC=0 WITH_ARITH_DEC=0)" FALSE) + option(ENABLE_STATIC "Build static libraries" TRUE) + option(ENABLE_SHARED "Build shared libraries" TRUE) ++option(ENABLE_EXECUTABLES "Build executables" TRUE) ++option(INSTALL_DOCS "Install doc files" TRUE) ++option(INSTALL_HEADERS "Install header files" TRUE) + + if(WITH_12BIT) + set(WITH_SIMD FALSE) +@@ -264,14 +267,16 @@ if(WITH_TURBOJPEG) + target_link_libraries(turbojpeg jpeg-static) + set_target_properties(turbojpeg PROPERTIES LINK_INTERFACE_LIBRARIES "") + +- add_executable(tjunittest tjunittest.c tjutil.c) +- target_link_libraries(tjunittest turbojpeg) ++ if(ENABLE_EXECUTABLES) ++ add_executable(tjunittest tjunittest.c tjutil.c) ++ target_link_libraries(tjunittest turbojpeg) + +- add_executable(tjbench tjbench.c bmp.c tjutil.c rdbmp.c rdppm.c wrbmp.c +- wrppm.c) +- target_link_libraries(tjbench turbojpeg jpeg-static) +- set_property(TARGET tjbench PROPERTY COMPILE_FLAGS +- "-DBMP_SUPPORTED -DPPM_SUPPORTED") ++ add_executable(tjbench tjbench.c bmp.c tjutil.c rdbmp.c rdppm.c wrbmp.c ++ wrppm.c) ++ target_link_libraries(tjbench turbojpeg jpeg-static) ++ set_property(TARGET tjbench PROPERTY COMPILE_FLAGS ++ "-DBMP_SUPPORTED -DPPM_SUPPORTED") ++ endif() + endif() + + if(ENABLE_STATIC) +@@ -284,14 +289,16 @@ if(WITH_TURBOJPEG) + add_dependencies(turbojpeg-static simd) + endif() + +- add_executable(tjunittest-static tjunittest.c tjutil.c) +- target_link_libraries(tjunittest-static turbojpeg-static) ++ if(ENABLE_EXECUTABLES) ++ add_executable(tjunittest-static tjunittest.c tjutil.c) ++ target_link_libraries(tjunittest-static turbojpeg-static) + +- add_executable(tjbench-static tjbench.c bmp.c tjutil.c rdbmp.c rdppm.c +- wrbmp.c wrppm.c) +- target_link_libraries(tjbench-static turbojpeg-static jpeg-static) +- set_property(TARGET tjbench-static PROPERTY COMPILE_FLAGS +- "-DBMP_SUPPORTED -DPPM_SUPPORTED") ++ add_executable(tjbench-static tjbench.c bmp.c tjutil.c rdbmp.c rdppm.c ++ wrbmp.c wrppm.c) ++ target_link_libraries(tjbench-static turbojpeg-static jpeg-static) ++ set_property(TARGET tjbench-static PROPERTY COMPILE_FLAGS ++ "-DBMP_SUPPORTED -DPPM_SUPPORTED") ++ endif() + endif() + endif() + +@@ -303,7 +310,7 @@ else() + set(DJPEG_BMP_SOURCES wrbmp.c wrtarga.c) + endif() + +-if(ENABLE_STATIC) ++if(ENABLE_STATIC AND ENABLE_EXECUTABLES) + add_executable(cjpeg-static cjpeg.c cdjpeg.c rdgif.c rdppm.c rdswitch.c + ${CJPEG_BMP_SOURCES}) + set_property(TARGET cjpeg-static PROPERTY COMPILE_FLAGS ${COMPILE_FLAGS}) +@@ -319,10 +326,11 @@ if(ENABLE_STATIC) + set_property(TARGET jpegtran-static PROPERTY COMPILE_FLAGS "-DUSE_SETMODE") + endif() + +-add_executable(rdjpgcom rdjpgcom.c) +- +-add_executable(wrjpgcom wrjpgcom.c) ++if(ENABLE_EXECUTABLES) ++ add_executable(rdjpgcom rdjpgcom.c) + ++ add_executable(wrjpgcom wrjpgcom.c) ++endif() + + # + # Tests +@@ -880,24 +888,30 @@ add_custom_target(installer + + if(WITH_TURBOJPEG) + if(ENABLE_SHARED) +- install(TARGETS turbojpeg tjbench ++ install(TARGETS turbojpeg + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib + RUNTIME DESTINATION bin) ++ if(ENABLE_EXECUTABLES) ++ install(TARGETS tjbench ++ RUNTIME DESTINATION bin) ++ endif() + endif() + if(ENABLE_STATIC) + install(TARGETS turbojpeg-static ARCHIVE DESTINATION lib) +- if(NOT ENABLE_SHARED) ++ if(NOT ENABLE_SHARED AND ENABLE_EXECUTABLES) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/tjbench-static.exe + DESTINATION bin RENAME tjbench.exe) + endif() + endif() +- install(FILES ${CMAKE_SOURCE_DIR}/turbojpeg.h DESTINATION include) ++ if(INSTALL_HEADERS) ++ install(FILES ${CMAKE_SOURCE_DIR}/turbojpeg.h DESTINATION include) ++ endif() + endif() + + if(ENABLE_STATIC) + install(TARGETS jpeg-static ARCHIVE DESTINATION lib) +- if(NOT ENABLE_SHARED) ++ if(NOT ENABLE_SHARED AND ENABLE_EXECUTABLES) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cjpeg-static.exe + DESTINATION bin RENAME cjpeg.exe) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/djpeg-static.exe +@@ -907,14 +921,20 @@ if(ENABLE_STATIC) + endif() + endif() + +-install(TARGETS rdjpgcom wrjpgcom RUNTIME DESTINATION bin) ++if(ENABLE_EXECUTABLES) ++ install(TARGETS rdjpgcom wrjpgcom RUNTIME DESTINATION bin) ++endif() + +-install(FILES ${CMAKE_SOURCE_DIR}/README.ijg ${CMAKE_SOURCE_DIR}/README.md +- ${CMAKE_SOURCE_DIR}/example.c ${CMAKE_SOURCE_DIR}/libjpeg.txt +- ${CMAKE_SOURCE_DIR}/structure.txt ${CMAKE_SOURCE_DIR}/usage.txt +- ${CMAKE_SOURCE_DIR}/wizard.txt +- DESTINATION doc) ++if(INSTALL_DOCS) ++ install(FILES ${CMAKE_SOURCE_DIR}/README.ijg ${CMAKE_SOURCE_DIR}/README.md ++ ${CMAKE_SOURCE_DIR}/example.c ${CMAKE_SOURCE_DIR}/libjpeg.txt ++ ${CMAKE_SOURCE_DIR}/structure.txt ${CMAKE_SOURCE_DIR}/usage.txt ++ ${CMAKE_SOURCE_DIR}/wizard.txt ++ DESTINATION doc) ++endif() + +-install(FILES ${CMAKE_BINARY_DIR}/jconfig.h ${CMAKE_SOURCE_DIR}/jerror.h +- ${CMAKE_SOURCE_DIR}/jmorecfg.h ${CMAKE_SOURCE_DIR}/jpeglib.h +- DESTINATION include) ++if(INSTALL_HEADERS) ++ install(FILES ${CMAKE_BINARY_DIR}/jconfig.h ${CMAKE_SOURCE_DIR}/jerror.h ++ ${CMAKE_SOURCE_DIR}/jmorecfg.h ${CMAKE_SOURCE_DIR}/jpeglib.h ++ DESTINATION include) ++endif() +diff --git a/sharedlib/CMakeLists.txt b/sharedlib/CMakeLists.txt +index d423cce..9da7c6e 100644 +--- a/sharedlib/CMakeLists.txt ++++ b/sharedlib/CMakeLists.txt +@@ -50,24 +50,31 @@ else() + set(DJPEG_BMP_SOURCES ../wrbmp.c ../wrtarga.c) + endif() + +-add_executable(cjpeg ../cjpeg.c ../cdjpeg.c ../rdgif.c ../rdppm.c +- ../rdswitch.c ${CJPEG_BMP_SOURCES}) +-set_property(TARGET cjpeg PROPERTY COMPILE_FLAGS ${COMPILE_FLAGS}) +-target_link_libraries(cjpeg jpeg) ++if(ENABLE_EXECUTABLES) ++ add_executable(cjpeg ../cjpeg.c ../cdjpeg.c ../rdgif.c ../rdppm.c ++ ../rdswitch.c ${CJPEG_BMP_SOURCES}) ++ set_property(TARGET cjpeg PROPERTY COMPILE_FLAGS ${COMPILE_FLAGS}) ++ target_link_libraries(cjpeg jpeg) + +-add_executable(djpeg ../djpeg.c ../cdjpeg.c ../rdcolmap.c ../rdswitch.c +- ../wrgif.c ../wrppm.c ${DJPEG_BMP_SOURCES}) +-set_property(TARGET djpeg PROPERTY COMPILE_FLAGS ${COMPILE_FLAGS}) +-target_link_libraries(djpeg jpeg) ++ add_executable(djpeg ../djpeg.c ../cdjpeg.c ../rdcolmap.c ../rdswitch.c ++ ../wrgif.c ../wrppm.c ${DJPEG_BMP_SOURCES}) ++ set_property(TARGET djpeg PROPERTY COMPILE_FLAGS ${COMPILE_FLAGS}) ++ target_link_libraries(djpeg jpeg) + +-add_executable(jpegtran ../jpegtran.c ../cdjpeg.c ../rdswitch.c ../transupp.c) +-target_link_libraries(jpegtran jpeg) +-set_property(TARGET jpegtran PROPERTY COMPILE_FLAGS "-DUSE_SETMODE") ++ add_executable(jpegtran ../jpegtran.c ../cdjpeg.c ../rdswitch.c ../transupp.c) ++ target_link_libraries(jpegtran jpeg) ++ set_property(TARGET jpegtran PROPERTY COMPILE_FLAGS "-DUSE_SETMODE") + +-add_executable(jcstest ../jcstest.c) +-target_link_libraries(jcstest jpeg) ++ add_executable(jcstest ../jcstest.c) ++ target_link_libraries(jcstest jpeg) + +-install(TARGETS jpeg cjpeg djpeg jpegtran ++ install(TARGETS cjpeg djpeg jpegtran ++ ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION lib ++ RUNTIME DESTINATION bin) ++endif() ++ ++install(TARGETS jpeg + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib + RUNTIME DESTINATION bin) diff --git a/ports/libjpeg-turbo/portfile.cmake b/ports/libjpeg-turbo/portfile.cmake new file mode 100644 index 000000000..82e5c6ab1 --- /dev/null +++ b/ports/libjpeg-turbo/portfile.cmake @@ -0,0 +1,38 @@ +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libjpeg-turbo-1.4.90) + +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/1.4.90.zip" + FILENAME "libjpeg-turbo-1.4.90.zip" + MD5 dcd49a7100e41870faae988f608471af +) +vcpkg_extract_source_archive(${ARCHIVE}) +vcpkg_apply_patches( + SOURCE_PATH ${SOURCE_PATH} + PATCHES "${CMAKE_CURRENT_LIST_DIR}/add-options-for-exes-docs-headers.patch" +) + +vcpkg_find_acquire_program(NASM) +get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY) +set(ENV{PATH} "${NASM_EXE_PATH};$ENV{PATH}") + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DENABLE_STATIC=OFF + -DWITH_CRT_DLL=ON + -DENABLE_EXECUTABLES=OFF + -DINSTALL_DOCS=OFF + # OPTIONS_RELEASE -DOPTIMIZE=1 + OPTIONS_DEBUG -DINSTALL_HEADERS=OFF +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(COPY + ${SOURCE_PATH}/LICENSE.md + DESTINATION ${CURRENT_PACKAGES_DIR}/share/libjpeg-turbo +) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/libjpeg-turbo/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/libjpeg-turbo/copyright) +vcpkg_copy_pdbs() diff --git a/ports/libpng/CONTROL b/ports/libpng/CONTROL new file mode 100644 index 000000000..239fa0cb2 --- /dev/null +++ b/ports/libpng/CONTROL @@ -0,0 +1,4 @@ +Source: libpng +Version: 1.6.24-1 +Build-Depends: zlib +Description: libpng is a library implementing an interface for reading and writing PNG (Portable Network Graphics) format files.
\ No newline at end of file diff --git a/ports/libpng/portfile.cmake b/ports/libpng/portfile.cmake new file mode 100644 index 000000000..a5e506585 --- /dev/null +++ b/ports/libpng/portfile.cmake @@ -0,0 +1,47 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "http://download.sourceforge.net/libpng/libpng-1.6.24.tar.xz" + FILENAME "libpng-1.6.24.tar.xz" + MD5 ffcdbd549814787fa8010c372e35ff25 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +find_program(GIT git) +vcpkg_execute_required_process( + COMMAND ${GIT} init + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src/libpng-1.6.24 + LOGNAME git-init +) +execute_process( + COMMAND ${GIT} apply "${CMAKE_CURRENT_LIST_DIR}/use-abort-on-all-platforms.patch" --ignore-whitespace --whitespace=nowarn + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src/libpng-1.6.24 +) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libpng-1.6.24 + OPTIONS + -DPNG_STATIC=OFF + -DPNG_TESTS=OFF + -DSKIP_INSTALL_PROGRAMS=ON + -DSKIP_INSTALL_EXECUTABLES=ON + -DSKIP_INSTALL_FILES=ON + OPTIONS_DEBUG + -DSKIP_INSTALL_HEADERS=ON +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE_RECURSE + ${CURRENT_PACKAGES_DIR}/debug/share +) +file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share) +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/libpng ${CURRENT_PACKAGES_DIR}/share/libpng) +file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libpng/libpng16-debug.cmake ${CURRENT_PACKAGES_DIR}/share/libpng/libpng16-debug.cmake) +file(REMOVE_RECURSE + ${CURRENT_PACKAGES_DIR}/debug/lib/libpng +) +file(COPY ${CURRENT_BUILDTREES_DIR}/src/libpng-1.6.24/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libpng) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/libpng/LICENSE ${CURRENT_PACKAGES_DIR}/share/libpng/copyright) +vcpkg_copy_pdbs() + diff --git a/ports/libpng/use-abort-on-all-platforms.patch b/ports/libpng/use-abort-on-all-platforms.patch new file mode 100644 index 000000000..0a629e059 --- /dev/null +++ b/ports/libpng/use-abort-on-all-platforms.patch @@ -0,0 +1,17 @@ +diff --git a/pngpriv.h b/pngpriv.h +index fe3355d..5a049b5 100644 +--- a/pngpriv.h ++++ b/pngpriv.h +@@ -457,11 +457,7 @@ + + /* Memory model/platform independent fns */ + #ifndef PNG_ABORT +-# ifdef _WINDOWS_ +-# define PNG_ABORT() ExitProcess(0) +-# else +-# define PNG_ABORT() abort() +-# endif ++# define PNG_ABORT() abort() + #endif + + /* These macros may need to be architecture dependent. */ diff --git a/ports/libuv/CONTROL b/ports/libuv/CONTROL new file mode 100644 index 000000000..32d44cf39 --- /dev/null +++ b/ports/libuv/CONTROL @@ -0,0 +1,3 @@ +Source: libuv +Version: 1.9.1 +Description: libuv is a multi-platform support library with a focus on asynchronous I/O.
\ No newline at end of file diff --git a/ports/libuv/portfile.cmake b/ports/libuv/portfile.cmake new file mode 100644 index 000000000..0a830b8e4 --- /dev/null +++ b/ports/libuv/portfile.cmake @@ -0,0 +1,105 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/libuv/libuv/archive/v1.9.1.zip" + FILENAME "libuv-v1.9.1.zip" + MD5 4d1e74197920455203954cd8b75f0a2f +) + +if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src) + message(STATUS "Extracting source ${ARCHIVE}") + file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src) + vcpkg_execute_required_process( + COMMAND ${CMAKE_COMMAND} -E tar xzf ${ARCHIVE} + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src + LOGNAME extract-${TARGET_TRIPLET} + ) +endif() + +find_program(PYTHON2 + NAMES python2 python + PATHS C:/python27 ENV PYTHON +) +if(NOT PYTHON2 MATCHES "NOTFOUND") + execute_process( + COMMAND ${PYTHON2} --version + OUTPUT_VARIABLE PYTHON_VER_CHECK_OUT + ERROR_VARIABLE PYTHON_VER_CHECK_ERR + ) + set(PYTHON_VER_CHECK "${PYTHON_VER_CHECK_OUT}${PYTHON_VER_CHECK_ERR}") + debug_message("PYTHON_VER_CHECK=${PYTHON_VER_CHECK}") + if(NOT PYTHON_VER_CHECK MATCHES "Python 2.7") + set(PYTHON2 PYTHON2-NOTFOUND) + find_program(PYTHON2 + NAMES python2 python + PATHS C:/python27 ENV PYTHON + NO_SYSTEM_ENVIRONMENT_PATH + ) + endif() +endif() + +if(PYTHON2 MATCHES "NOTFOUND") + message(FATAL_ERROR "libuv uses the GYP build system, which requires Python 2.7.\n" + "Python 2.7 was not found in the path or by searching inside C:\\Python27.\n" + "There is no portable redistributable for Python 2.7, so you will need to install the MSI located at:\n" + " https://www.python.org/ftp/python/2.7.11/python-2.7.11.amd64.msi\n" + ) +endif() + +set(ENV{GYP_MSVS_VERSION} 2015) +set(ENV{PYTHON} ${PYTHON2}) + +if(TRIPLET_SYSTEM_ARCH MATCHES "x86|x64") + message(STATUS "Building Release") + vcpkg_execute_required_process( + COMMAND cmd /c vcbuild.bat release ${TRIPLET_SYSTEM_ARCH} shared + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1 + LOGNAME ${TARGET_TRIPLET}-build-rel + ) + message(STATUS "Building Debug") + vcpkg_execute_required_process( + COMMAND cmd /c vcbuild.bat debug ${TRIPLET_SYSTEM_ARCH} shared + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1 + LOGNAME ${TARGET_TRIPLET}-build-dbg + ) +else() + message(FATAL_ERROR "Unsupported platform") +endif() + +file(MAKE_DIRECTORY + ${CURRENT_PACKAGES_DIR}/include + ${CURRENT_PACKAGES_DIR}/lib + ${CURRENT_PACKAGES_DIR}/bin + ${CURRENT_PACKAGES_DIR}/debug/lib + ${CURRENT_PACKAGES_DIR}/debug/bin + ${CURRENT_PACKAGES_DIR}/share/libuv + ) + +file(COPY + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/tree.h + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv.h + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv-version.h + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv-errno.h + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv-threadpool.h + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/include/uv-win.h + DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +file(COPY + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/Debug/libuv.dll + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) +file(COPY + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/Debug/libuv.lib + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) +file(COPY + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/Release/libuv.dll + DESTINATION ${CURRENT_PACKAGES_DIR}/bin) +file(COPY + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/Release/libuv.lib + DESTINATION ${CURRENT_PACKAGES_DIR}/lib) +file(COPY + ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src/libuv-1.9.1/LICENSE + DESTINATION ${CURRENT_PACKAGES_DIR}/share/libuv) + +file(RENAME + ${CURRENT_PACKAGES_DIR}/share/libuv/LICENSE + ${CURRENT_PACKAGES_DIR}/share/libuv/copyright) +vcpkg_copy_pdbs() diff --git a/ports/libwebsockets/CONTROL b/ports/libwebsockets/CONTROL new file mode 100644 index 000000000..866c0ccbc --- /dev/null +++ b/ports/libwebsockets/CONTROL @@ -0,0 +1,4 @@ +Source: libwebsockets +Version: 2.0.0 +Build-Depends: zlib, openssl +Description: Libwebsockets is a lightweight pure C library built to use minimal CPU and memory resources, and provide fast throughput in both directions as client or server.
\ No newline at end of file diff --git a/ports/libwebsockets/portfile.cmake b/ports/libwebsockets/portfile.cmake new file mode 100644 index 000000000..5aa1e3ff5 --- /dev/null +++ b/ports/libwebsockets/portfile.cmake @@ -0,0 +1,35 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/warmcat/libwebsockets/archive/v2.0.0.zip" + FILENAME "libwebsockets-v2.0.0.zip" + MD5 1947a1887dda5b5f9624048f4b6b1507 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0 + OPTIONS + -DLWS_WITH_STATIC=OFF + -DLWS_USE_BUNDLED_ZLIB=OFF + -DLWS_WITHOUT_TESTAPPS=ON + -DLWS_IPV6=ON + -DLWS_HTTP2=ON + # OPTIONS_RELEASE -DOPTIMIZE=1 + # OPTIONS_DEBUG -DDEBUGGABLE=1 +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share) +file(RENAME ${CURRENT_PACKAGES_DIR}/cmake ${CURRENT_PACKAGES_DIR}/share/libwebsockets) +file(RENAME + ${CURRENT_PACKAGES_DIR}/debug/cmake/LibwebsocketsTargets-debug.cmake + ${CURRENT_PACKAGES_DIR}/share/libwebsockets/LibwebsocketsTargets-debug.cmake +) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake) + +file(COPY ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libwebsockets) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/libwebsockets/LICENSE ${CURRENT_PACKAGES_DIR}/share/libwebsockets/copyright) +vcpkg_copy_pdbs() diff --git a/ports/mpg123/0001-Modify-2010-libmpg123.vcxproj-to-use-VS-2015-along-w.patch b/ports/mpg123/0001-Modify-2010-libmpg123.vcxproj-to-use-VS-2015-along-w.patch new file mode 100644 index 000000000..7c68789e7 --- /dev/null +++ b/ports/mpg123/0001-Modify-2010-libmpg123.vcxproj-to-use-VS-2015-along-w.patch @@ -0,0 +1,244 @@ +From aa43d3193302cd545ae2a45079b12af62bf13b38 Mon Sep 17 00:00:00 2001 +From: Robert Schumacher <roschuma@microsoft.com> +Date: Sat, 7 May 2016 00:47:10 -0700 +Subject: [PATCH] Modify 2010/libmpg123.vcxproj to use VS 2015, along with + reverting #undef MPG123_EXPORT + +--- + ports/MSVC++/2010/libmpg123/libmpg123.vcxproj | 54 +++++++++++++++++++-------- + src/libmpg123/mpg123.h.in | 2 - + 2 files changed, 38 insertions(+), 18 deletions(-) + +diff --git a/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj b/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj +index afa7de2..84c8d25 100644 +--- a/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj ++++ b/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj +@@ -47,6 +47,10 @@ + <RootNamespace>libmpg123</RootNamespace> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> ++ <PropertyGroup> ++ <UseOfMfc>false</UseOfMfc> ++ <PlatformToolset>v140</PlatformToolset> ++ </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_x86_Dll_Minimal|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>Unicode</CharacterSet> +@@ -154,7 +158,7 @@ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_Generic|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;OPT_GENERIC;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <MinimalRebuild>false</MinimalRebuild> + <ExceptionHandling> +@@ -178,7 +182,7 @@ + <IntrinsicFunctions>true</IntrinsicFunctions> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <OmitFramePointers>true</OmitFramePointers> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;OPT_GENERIC;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ExceptionHandling> + </ExceptionHandling> +@@ -200,7 +204,7 @@ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_Generic_Dll|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;OPT_GENERIC;_DEBUG;BUILD_MPG123_DLL;ACCURATE_ROUNDING;IEEE_FLOAT;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <MinimalRebuild>false</MinimalRebuild> + <ExceptionHandling> +@@ -231,7 +235,7 @@ + <IntrinsicFunctions>true</IntrinsicFunctions> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <OmitFramePointers>true</OmitFramePointers> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;OPT_GENERIC;BUILD_MPG123_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ExceptionHandling> + </ExceptionHandling> +@@ -258,7 +262,7 @@ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_x86|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <MinimalRebuild>false</MinimalRebuild> + <ExceptionHandling> +@@ -278,6 +282,9 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S" /nologo > "$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.o" "$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm" + ++cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_sse.S" /nologo > "$(ProjectDir)..\libmpg123\Debug\dct36_sse.asm" ++yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Debug\dct36_sse.o" "$(ProjectDir)..\libmpg123\Debug\dct36_sse.asm" ++ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S" /nologo > "$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.o" "$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm" + +@@ -337,7 +344,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + </Command> + </PreLinkEvent> + <Lib> +- <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> ++ <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct36_sse.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(ProjectDir)Debug\$(ProjectName).lib</OutputFile> + <AdditionalLibraryDirectories>$(ProjectDir)\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + </Lib> +@@ -349,7 +356,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + <IntrinsicFunctions>true</IntrinsicFunctions> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <OmitFramePointers>true</OmitFramePointers> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ExceptionHandling> + </ExceptionHandling> +@@ -371,6 +378,9 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S" /nologo > "$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.o" "$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm" + ++cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_sse.S" /nologo > "$(ProjectDir)..\libmpg123\Release\dct36_sse.asm" ++yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Release\dct36_sse.o" "$(ProjectDir)..\libmpg123\Release\dct36_sse.asm" ++ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S" /nologo > "$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Release\dct64_3dnow.o" "$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm" + +@@ -430,7 +440,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + </Command> + </PreLinkEvent> + <Lib> +- <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> ++ <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct36_sse.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(ProjectDir)Release\$(ProjectName).lib</OutputFile> + <AdditionalLibraryDirectories>$(ProjectDir)\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + </Lib> +@@ -438,7 +448,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_x86_Dll|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_DEBUG;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE;_BIND_TO_CURRENT_VCLIBS_VERSION=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <MinimalRebuild>false</MinimalRebuild> + <ExceptionHandling> +@@ -460,6 +470,9 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S" /nologo > "$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.o" "$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm" + ++cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_sse.S" /nologo > "$(ProjectDir)..\libmpg123\Debug\dct36_sse.asm" ++yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Debug\dct36_sse.o" "$(ProjectDir)..\libmpg123\Debug\dct36_sse.asm" ++ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S" /nologo > "$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.o" "$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm" + +@@ -519,7 +532,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + </Command> + </PreLinkEvent> + <Link> +- <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> ++ <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct36_sse.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(ProjectDir)Debug\$(ProjectName).dll</OutputFile> + <AdditionalLibraryDirectories>$(ProjectDir)\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + <GenerateDebugInformation>true</GenerateDebugInformation> +@@ -540,7 +553,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + <IntrinsicFunctions>true</IntrinsicFunctions> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <OmitFramePointers>true</OmitFramePointers> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE;_BIND_TO_CURRENT_VCLIBS_VERSION=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ExceptionHandling> + </ExceptionHandling> +@@ -563,6 +576,9 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S" /nologo > "$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.o" "$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm" + ++cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_sse.S" /nologo > "$(ProjectDir)..\libmpg123\Release\dct36_sse.asm" ++yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Release\dct36_sse.o" "$(ProjectDir)..\libmpg123\Release\dct36_sse.asm" ++ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S" /nologo > "$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Release\dct64_3dnow.o" "$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm" + +@@ -622,7 +638,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + </Command> + </PreLinkEvent> + <Link> +- <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> ++ <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct36_sse.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(ProjectDir)Release\$(ProjectName).dll</OutputFile> + <AdditionalLibraryDirectories>$(ProjectDir)\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + <GenerateDebugInformation>true</GenerateDebugInformation> +@@ -638,7 +654,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_x86_Dll_Minimal|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_DEBUG;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE;NO_STRING;NO_ID3V2;NO_ICY;NO_DOWNSAMPLE;_BIND_TO_CURRENT_VCLIBS_VERSION=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <MinimalRebuild>false</MinimalRebuild> + <ExceptionHandling> +@@ -660,6 +676,9 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S" /nologo > "$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.o" "$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm" + ++cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_sse.S" /nologo > "$(ProjectDir)..\libmpg123\Debug\dct36_sse.asm" ++yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Debug\dct36_sse.o" "$(ProjectDir)..\libmpg123\Debug\dct36_sse.asm" ++ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S" /nologo > "$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.o" "$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm" + +@@ -719,7 +738,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + </Command> + </PreLinkEvent> + <Link> +- <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> ++ <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct36_sse.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(ProjectDir)Debug\$(ProjectName).dll</OutputFile> + <AdditionalLibraryDirectories>$(ProjectDir)\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + <GenerateDebugInformation>true</GenerateDebugInformation> +@@ -740,7 +759,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + <IntrinsicFunctions>true</IntrinsicFunctions> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <OmitFramePointers>true</OmitFramePointers> +- <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>../..;../../../../src/libmpg123;../../../../src;../../../../src/compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE;NO_STRING;NO_ID3V2;NO_ICY;NO_DOWNSAMPLE;_BIND_TO_CURRENT_VCLIBS_VERSION=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ExceptionHandling> + </ExceptionHandling> +@@ -763,6 +782,9 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S" /nologo > "$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.o" "$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm" + ++cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct36_sse.S" /nologo > "$(ProjectDir)..\libmpg123\Release\dct36_sse.asm" ++yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Release\dct36_sse.o" "$(ProjectDir)..\libmpg123\Release\dct36_sse.asm" ++ + cl /I "..\.." /EP /TC "$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S" /nologo > "$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm" + yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\Release\dct64_3dnow.o" "$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm" + +@@ -822,7 +844,7 @@ yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(ProjectDir)..\libmpg123\ + </Command> + </PreLinkEvent> + <Link> +- <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> ++ <AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct36_sse.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(ProjectDir)Release\$(ProjectName).dll</OutputFile> + <AdditionalLibraryDirectories>$(ProjectDir)\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + <GenerateDebugInformation>true</GenerateDebugInformation> +diff --git a/src/libmpg123/mpg123.h.in b/src/libmpg123/mpg123.h.in +index a25d4d1..d95e41d 100644 +--- a/src/libmpg123/mpg123.h.in ++++ b/src/libmpg123/mpg123.h.in +@@ -1404,6 +1404,4 @@ MPG123_EXPORT int mpg123_replace_reader_handle( mpg123_handle *mh + } + #endif + +-#undef MPG123_EXPORT +- + #endif +-- +2.8.1.windows.1 + diff --git a/ports/mpg123/CONTROL b/ports/mpg123/CONTROL new file mode 100644 index 000000000..0c4a746a0 --- /dev/null +++ b/ports/mpg123/CONTROL @@ -0,0 +1,3 @@ +Source: mpg123 +Version: 1.23.3 +Description: mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers 1, 2 and 3 (MPEG 1.0 layer 3 also known as MP3).
\ No newline at end of file diff --git a/ports/mpg123/portfile.cmake b/ports/mpg123/portfile.cmake new file mode 100644 index 000000000..d7abb9bf8 --- /dev/null +++ b/ports/mpg123/portfile.cmake @@ -0,0 +1,54 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "http://downloads.sourceforge.net/project/mpg123/mpg123/1.23.3/mpg123-1.23.3.tar.bz2" + FILENAME "mpg123-1.23.3.tar.bz2" + MD5 84e838650c4c593f4e66d1256e0468db +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_find_acquire_program(YASM) +get_filename_component(YASM_EXE_PATH ${YASM} DIRECTORY) +set(ENV{PATH} "${YASM_EXE_PATH};$ENV{PATH}") + +vcpkg_apply_patches( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3 + PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001-Modify-2010-libmpg123.vcxproj-to-use-VS-2015-along-w.patch +) + +vcpkg_build_msbuild( + PROJECT_PATH ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj + RELEASE_CONFIGURATION Release_x86_Dll + DEBUG_CONFIGURATION Debug_x86_Dll +) + +message(STATUS "Installing") +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Debug/libmpg123.dll + ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Debug/libmpg123.pdb + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin +) +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Release/libmpg123.dll + ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Release/libmpg123.pdb + DESTINATION ${CURRENT_PACKAGES_DIR}/bin +) +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Debug/libmpg123.lib + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib +) +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/2010/libmpg123/Release/libmpg123.lib + DESTINATION ${CURRENT_PACKAGES_DIR}/lib +) +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/ports/MSVC++/mpg123.h + DESTINATION ${CURRENT_PACKAGES_DIR}/include +) +file(INSTALL + ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/src/libmpg123/mpg123.h.in + DESTINATION ${CURRENT_PACKAGES_DIR}/include +) +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/mpg123-1.23.3/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpg123 RENAME copyright) +vcpkg_copy_pdbs() + +message(STATUS "Installing done") diff --git a/ports/openal-soft/CONTROL b/ports/openal-soft/CONTROL new file mode 100644 index 000000000..e54c98e64 --- /dev/null +++ b/ports/openal-soft/CONTROL @@ -0,0 +1,3 @@ +Source: openal-soft +Version: 1.17.2 +Description: OpenAL Soft is an LGPL-licensed, cross-platform, software implementation of the OpenAL 3D audio API.
\ No newline at end of file diff --git a/ports/openal-soft/portfile.cmake b/ports/openal-soft/portfile.cmake new file mode 100644 index 000000000..5e24d1630 --- /dev/null +++ b/ports/openal-soft/portfile.cmake @@ -0,0 +1,27 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "http://openal-soft.org/openal-releases/openal-soft-1.17.2.tar.bz2" + FILENAME "openal-soft-1.17.2.tar.bz2" + MD5 1764e0d8fec499589b47ebc724e0913d +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openal-soft-1.17.2 + OPTIONS + -DALSOFT_UTILS=OFF + -DALSOFT_NO_CONFIG_UTIL=ON + -DALSOFT_EXAMPLES=OFF + -DALSOFT_TESTS=OFF + -DALSOFT_CONFIG=OFF + -DALSOFT_HRTF_DEFS=OFF +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(COPY ${CURRENT_BUILDTREES_DIR}/src/openal-soft-1.17.2/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/openal-soft) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/openal-soft/COPYING ${CURRENT_PACKAGES_DIR}/share/openal-soft/copyright) +vcpkg_copy_pdbs() + diff --git a/ports/opencv/0001-OpenCV-should-follow-FHS-like-conventions.patch b/ports/opencv/0001-OpenCV-should-follow-FHS-like-conventions.patch new file mode 100644 index 000000000..1824aa339 --- /dev/null +++ b/ports/opencv/0001-OpenCV-should-follow-FHS-like-conventions.patch @@ -0,0 +1,156 @@ +From e396a74da8e7c9c06f3145de65647d7d48524a07 Mon Sep 17 00:00:00 2001 +From: Robert Schumacher <roschuma@microsoft.com> +Date: Thu, 5 May 2016 04:16:18 -0700 +Subject: [PATCH] OpenCV should follow FHS-like conventions + +--- + CMakeLists.txt | 11 +++++++---- + cmake/OpenCVGenConfig.cmake | 11 +++++------ + cmake/OpenCVGenHeaders.cmake | 8 ++++++-- + cmake/OpenCVModule.cmake | 4 +++- + data/CMakeLists.txt | 6 ++++-- + include/CMakeLists.txt | 6 ++++-- + 6 files changed, 29 insertions(+), 17 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3ee50ff..8e3f57d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -250,6 +250,8 @@ OCV_OPTION(INSTALL_PYTHON_EXAMPLES "Install Python examples" OFF ) + OCV_OPTION(INSTALL_ANDROID_EXAMPLES "Install Android examples" OFF IF ANDROID ) + OCV_OPTION(INSTALL_TO_MANGLED_PATHS "Enables mangled install paths, that help with side by side installs." OFF IF (UNIX AND NOT ANDROID AND NOT APPLE_FRAMEWORK AND BUILD_SHARED_LIBS) ) + OCV_OPTION(INSTALL_TESTS "Install accuracy and performance test binaries and test data" OFF) ++OCV_OPTION(INSTALL_HEADERS "Install header files" ON) ++OCV_OPTION(INSTALL_OTHER "Install other files" ON) + + # OpenCV build options + # =================================================== +@@ -315,7 +317,9 @@ else() + endif() + + if(WIN32 AND CMAKE_HOST_SYSTEM_NAME MATCHES Windows) +- if(DEFINED OpenCV_RUNTIME AND DEFINED OpenCV_ARCH) ++ if(DEFINED OpenCV_DISABLE_ARCH_PATH) ++ set(OpenCV_INSTALL_BINARIES_PREFIX "") ++ elseif(DEFINED OpenCV_RUNTIME AND DEFINED OpenCV_ARCH) + set(OpenCV_INSTALL_BINARIES_PREFIX "${OpenCV_ARCH}/${OpenCV_RUNTIME}/") + else() + message(STATUS "Can't detect runtime and/or arch") +@@ -379,7 +383,7 @@ else() + set(OPENCV_3P_LIB_INSTALL_PATH "${OpenCV_INSTALL_BINARIES_PREFIX}staticlib${LIB_SUFFIX}") + set(OPENCV_SAMPLES_SRC_INSTALL_PATH samples/native) + set(OPENCV_JAR_INSTALL_PATH java) +- set(OPENCV_OTHER_INSTALL_PATH etc) ++ set(OPENCV_OTHER_INSTALL_PATH share/opencv) + else() + set(OPENCV_LIB_INSTALL_PATH lib${LIB_SUFFIX}) + set(OPENCV_3P_LIB_INSTALL_PATH share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH}) +@@ -736,8 +740,7 @@ endif() + # for UNIX it does not make sense as LICENSE and readme will be part of the package automatically + if(ANDROID OR NOT UNIX) + install(FILES ${OPENCV_LICENSE_FILE} +- PERMISSIONS OWNER_READ GROUP_READ WORLD_READ +- DESTINATION ${CMAKE_INSTALL_PREFIX} COMPONENT libs) ++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/opencv RENAME copyright CONFIGURATIONS Release COMPONENT libs) + if(OPENCV_README_FILE) + install(FILES ${OPENCV_README_FILE} + PERMISSIONS OWNER_READ GROUP_READ WORLD_READ +diff --git a/cmake/OpenCVGenConfig.cmake b/cmake/OpenCVGenConfig.cmake +index dbfd7ca..94fc4a9 100644 +--- a/cmake/OpenCVGenConfig.cmake ++++ b/cmake/OpenCVGenConfig.cmake +@@ -139,14 +139,13 @@ if(WIN32) + configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/OpenCVConfig-version.cmake.in" "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig-version.cmake" @ONLY) + if (CMAKE_HOST_SYSTEM_NAME MATCHES Windows) + if(BUILD_SHARED_LIBS) +- install(FILES "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig.cmake" DESTINATION "${OpenCV_INSTALL_BINARIES_PREFIX}lib" COMPONENT dev) +- install(EXPORT OpenCVModules DESTINATION "${OpenCV_INSTALL_BINARIES_PREFIX}lib" FILE OpenCVModules${modules_file_suffix}.cmake COMPONENT dev) ++ install(FILES "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig.cmake" DESTINATION "cmake" COMPONENT dev) ++ install(EXPORT OpenCVModules DESTINATION "cmake" FILE OpenCVModules${modules_file_suffix}.cmake COMPONENT dev) + else() +- install(FILES "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig.cmake" DESTINATION "${OpenCV_INSTALL_BINARIES_PREFIX}staticlib" COMPONENT dev) +- install(EXPORT OpenCVModules DESTINATION "${OpenCV_INSTALL_BINARIES_PREFIX}staticlib" FILE OpenCVModules${modules_file_suffix}.cmake COMPONENT dev) ++ install(FILES "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig.cmake" DESTINATION "cmake" COMPONENT dev) ++ install(EXPORT OpenCVModules DESTINATION "cmake" FILE OpenCVModules${modules_file_suffix}.cmake COMPONENT dev) + endif() +- install(FILES "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig-version.cmake" DESTINATION "${CMAKE_INSTALL_PREFIX}" COMPONENT dev) +- install(FILES "${OpenCV_SOURCE_DIR}/cmake/OpenCVConfig.cmake" DESTINATION "${CMAKE_INSTALL_PREFIX}/" COMPONENT dev) ++ install(FILES "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig-version.cmake" DESTINATION "cmake" COMPONENT dev) + else () + install(FILES "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig.cmake" DESTINATION "${OpenCV_INSTALL_BINARIES_PREFIX}lib/cmake/opencv-${OPENCV_VERSION}" COMPONENT dev) + install(EXPORT OpenCVModules DESTINATION "${OpenCV_INSTALL_BINARIES_PREFIX}lib/cmake/opencv-${OPENCV_VERSION}" FILE OpenCVModules${modules_file_suffix}.cmake COMPONENT dev) +diff --git a/cmake/OpenCVGenHeaders.cmake b/cmake/OpenCVGenHeaders.cmake +index 2988979..810871b 100644 +--- a/cmake/OpenCVGenHeaders.cmake ++++ b/cmake/OpenCVGenHeaders.cmake +@@ -1,7 +1,9 @@ + # platform-specific config file + configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/cvconfig.h.in" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h") + configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/cvconfig.h.in" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/opencv2/cvconfig.h") +-install(FILES "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h" DESTINATION ${OPENCV_INCLUDE_INSTALL_PATH}/opencv2 COMPONENT dev) ++if(INSTALL_HEADERS) ++ install(FILES "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h" DESTINATION ${OPENCV_INCLUDE_INSTALL_PATH}/opencv2 COMPONENT dev) ++endif() + + # ---------------------------------------------------------------------------- + # opencv_modules.hpp based on actual modules list +@@ -25,4 +27,6 @@ set(OPENCV_MODULE_DEFINITIONS_CONFIGMAKE "${OPENCV_MODULE_DEFINITIONS_CONFIGMAKE + #endforeach() + + configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/opencv_modules.hpp.in" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/opencv2/opencv_modules.hpp") +-install(FILES "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/opencv2/opencv_modules.hpp" DESTINATION ${OPENCV_INCLUDE_INSTALL_PATH}/opencv2 COMPONENT dev) ++if(INSTALL_HEADERS) ++ install(FILES "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/opencv2/opencv_modules.hpp" DESTINATION ${OPENCV_INCLUDE_INSTALL_PATH}/opencv2 COMPONENT dev) ++endif() +diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake +index 3385385..530e53f 100644 +--- a/cmake/OpenCVModule.cmake ++++ b/cmake/OpenCVModule.cmake +@@ -879,7 +879,9 @@ macro(_ocv_create_module) + foreach(hdr ${OPENCV_MODULE_${m}_HEADERS}) + string(REGEX REPLACE "^.*opencv2/" "opencv2/" hdr2 "${hdr}") + if(NOT hdr2 MATCHES "opencv2/${m}/private.*" AND hdr2 MATCHES "^(opencv2/?.*)/[^/]+.h(..)?$" ) +- install(FILES ${hdr} OPTIONAL DESTINATION "${OPENCV_INCLUDE_INSTALL_PATH}/${CMAKE_MATCH_1}" COMPONENT dev) ++ if(INSTALL_HEADERS) ++ install(FILES ${hdr} OPTIONAL DESTINATION "${OPENCV_INCLUDE_INSTALL_PATH}/${CMAKE_MATCH_1}" COMPONENT dev) ++ endif() + endif() + endforeach() + endif() +diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt +index 1f0d720..86b9d89 100644 +--- a/data/CMakeLists.txt ++++ b/data/CMakeLists.txt +@@ -1,8 +1,10 @@ + file(GLOB HAAR_CASCADES haarcascades/*.xml) + file(GLOB LBP_CASCADES lbpcascades/*.xml) + +-install(FILES ${HAAR_CASCADES} DESTINATION ${OPENCV_OTHER_INSTALL_PATH}/haarcascades COMPONENT libs) +-install(FILES ${LBP_CASCADES} DESTINATION ${OPENCV_OTHER_INSTALL_PATH}/lbpcascades COMPONENT libs) ++if(INSTALL_OTHER) ++ install(FILES ${HAAR_CASCADES} DESTINATION ${OPENCV_OTHER_INSTALL_PATH}/haarcascades COMPONENT libs) ++ install(FILES ${LBP_CASCADES} DESTINATION ${OPENCV_OTHER_INSTALL_PATH}/lbpcascades COMPONENT libs) ++endif() + + if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH) + install(DIRECTORY "${OPENCV_TEST_DATA_PATH}/" DESTINATION "${OPENCV_TEST_DATA_INSTALL_PATH}" COMPONENT "tests") +diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt +index b4e48e6..58dccc7 100644 +--- a/include/CMakeLists.txt ++++ b/include/CMakeLists.txt +@@ -1,7 +1,9 @@ + file(GLOB old_hdrs "opencv/*.h*") +-install(FILES ${old_hdrs} ++if(INSTALL_HEADERS) ++ install(FILES ${old_hdrs} + DESTINATION ${OPENCV_INCLUDE_INSTALL_PATH}/opencv + COMPONENT dev) +-install(FILES "opencv2/opencv.hpp" ++ install(FILES "opencv2/opencv.hpp" + DESTINATION ${OPENCV_INCLUDE_INSTALL_PATH}/opencv2 + COMPONENT dev) ++endif() +\ No newline at end of file +-- +2.8.1.windows.1 + diff --git a/ports/opencv/CONTROL b/ports/opencv/CONTROL new file mode 100644 index 000000000..a22785929 --- /dev/null +++ b/ports/opencv/CONTROL @@ -0,0 +1,4 @@ +Source: opencv +Version: 3.1.0 +Build-Depends: zlib, libpng, libjpeg-turbo +Description: computer vision library diff --git a/ports/opencv/portfile.cmake b/ports/opencv/portfile.cmake new file mode 100644 index 000000000..9dcf0fdf7 --- /dev/null +++ b/ports/opencv/portfile.cmake @@ -0,0 +1,62 @@ +include(vcpkg_common_functions) + +find_program(GIT git) + +set(GIT_URL "https://github.com/Itseez/opencv") +set(GIT_REF "92387b1ef8fad15196dd5f7fb4931444a68bc93a") + +if(NOT EXISTS "${DOWNLOADS}/opencv.git") + message(STATUS "Cloning") + vcpkg_execute_required_process( + COMMAND ${GIT} clone --bare ${GIT_URL} ${DOWNLOADS}/opencv.git + WORKING_DIRECTORY ${DOWNLOADS} + LOGNAME clone + ) +endif() +message(STATUS "Cloning done") + +if(NOT EXISTS "${CURRENT_BUILDTREES_DIR}/src/.git") + message(STATUS "Adding worktree and patching") + vcpkg_execute_required_process( + COMMAND ${GIT} worktree add -f --detach ${CURRENT_BUILDTREES_DIR}/src ${GIT_REF} + WORKING_DIRECTORY ${DOWNLOADS}/opencv.git + LOGNAME worktree + ) + message(STATUS "Patching") + vcpkg_execute_required_process( + COMMAND ${GIT} am ${CMAKE_CURRENT_LIST_DIR}/0001-OpenCV-should-follow-FHS-like-conventions.patch --ignore-whitespace --whitespace=fix + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src + LOGNAME patch + ) +endif() +message(STATUS "Adding worktree and patching done") + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src + OPTIONS + -DBUILD_ZLIB=OFF + -DINSTALL_CREATE_DISTRIB=ON + -DBUILD_opencv_python2=OFF + -DBUILD_opencv_python3=OFF + -DBUILD_opencv_apps=OFF + -DBUILD_DOCS=OFF + -DBUILD_TESTS=OFF + -DBUILD_PERF_TESTS=OFF + -DOpenCV_DISABLE_ARCH_PATH=ON + -DWITH_FFMPEG=OFF + OPTIONS_DEBUG + -DINSTALL_HEADERS=OFF + -DINSTALL_OTHER=OFF +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/OpenCVConfig-version.cmake ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVConfig-version.cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/OpenCVConfig.cmake ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVConfig.cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/OpenCVModules.cmake ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules.cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/OpenCVModules-release.cmake ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules-release.cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/debug/cmake/OpenCVModules-debug.cmake ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules-debug.cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake) +vcpkg_copy_pdbs() diff --git a/ports/opengl/CONTROL b/ports/opengl/CONTROL new file mode 100644 index 000000000..05546ae5c --- /dev/null +++ b/ports/opengl/CONTROL @@ -0,0 +1,3 @@ +Source: opengl +Version: 10.0.10240.0 +Description: Open Graphics Library (OpenGL)[3][4][5] is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics.
\ No newline at end of file diff --git a/ports/opengl/portfile.cmake b/ports/opengl/portfile.cmake new file mode 100644 index 000000000..60986922a --- /dev/null +++ b/ports/opengl/portfile.cmake @@ -0,0 +1,26 @@ +set(OPENGLPATH "C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.10240.0\\um\\${TRIPLET_SYSTEM_ARCH}\\OpenGL32.Lib") +set(LICENSEPATH "C:\\Program Files (x86)\\Windows Kits\\10\\Licenses\\10.0.10240.0\\sdk_license.rtf") +set(HEADERSPATH "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\um") + +if (NOT EXISTS "${OPENGLPATH}") + message(FATAL_ERROR "Cannot find Windows 10.0.10240.0 SDK. File does not exist: ${OPENGLPATH}") +endif() + +file(MAKE_DIRECTORY + ${CURRENT_PACKAGES_DIR}/include/gl + ${CURRENT_PACKAGES_DIR}/lib + ${CURRENT_PACKAGES_DIR}/debug/lib + ${CURRENT_PACKAGES_DIR}/share/opengl +) + +file(COPY ${LICENSEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/include/gl) +file(COPY + "${HEADERSPATH}\\gl\\GL.h" + "${HEADERSPATH}\\gl\\GLU.h" + DESTINATION ${CURRENT_PACKAGES_DIR}/include + ) +file(COPY ${OPENGLPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/lib) +file(COPY ${OPENGLPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) +file(COPY ${LICENSEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/share/opengl) +file(WRITE ${CURRENT_PACKAGES_DIR}/share/opengl/copyright "See the accompanying sdk_license.rtf") +vcpkg_copy_pdbs() diff --git a/ports/openssl/CMakeLists.txt b/ports/openssl/CMakeLists.txt new file mode 100644 index 000000000..ff034bb9a --- /dev/null +++ b/ports/openssl/CMakeLists.txt @@ -0,0 +1,68 @@ +cmake_minimum_required(VERSION 3.0) +project(openssl NONE) + +include(vcpkg_execute_required_process) + +find_package(ZLIB REQUIRED) +find_program(PERL perl) +find_program(NMAKE nmake) + +message(STATUS "Extracting source ${OPENSSL_SOURCE_ARCHIVE}") +vcpkg_execute_required_process( + COMMAND ${CMAKE_COMMAND} -E tar xjf ${OPENSSL_SOURCE_ARCHIVE} + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + LOGNAME extract-${TARGET_TRIPLET}-rel +) + +set(CONFIGURE_COMMAND ${PERL} Configure + no-idea + no-mdc2 + no-rc5 + no-asm + zlib-dynamic + --with-zlib-include=${ZLIB_INCLUDE_DIRS} +) + +if(TARGET_TRIPLET MATCHES "x86-windows") + set(OPENSSL_ARCH VC-WIN32) + set(OPENSSL_DO "ms\\do_ms.bat") +elseif(TARGET_TRIPLET MATCHES "x64") + set(OPENSSL_ARCH VC-WIN64A) + set(OPENSSL_DO "ms\\do_win64a.bat") +else() + message(FATAL_ERROR "Unsupported target triplet: ${TARGET_TRIPLET}") +endif() + +if(CMAKE_BUILD_TYPE MATCHES "Debug") + set(OPENSSLDIR ${CURRENT_PACKAGES_DIR}/debug) + list(GET ZLIB_LIBRARIES -1 ZLIB_DEBUG_LIBRARY) + list(APPEND CONFIGURE_COMMAND + debug-${OPENSSL_ARCH} + --openssldir=${OPENSSLDIR} + --with-zlib-lib=${ZLIB_DEBUG_LIBRARY} + ) +else() + set(OPENSSLDIR ${CURRENT_PACKAGES_DIR}) + list(APPEND CONFIGURE_COMMAND + ${OPENSSL_ARCH} + --openssldir=${OPENSSLDIR} + --with-zlib-lib=${ZLIB_LIBRARIES} + ) +endif() + +vcpkg_execute_required_process( + COMMAND ${CONFIGURE_COMMAND} + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openssl-${VERSION} + LOGNAME configure-perl-${TARGET_TRIPLET}-${CMAKE_BUILD_TYPE} +) +vcpkg_execute_required_process( + COMMAND ${OPENSSL_DO} + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openssl-${VERSION} + LOGNAME configure-do-${TARGET_TRIPLET}-${CMAKE_BUILD_TYPE} +) + +add_custom_command(OUTPUT ${OPENSSLDIR}/bin/ssleay32.dll ${OPENSSLDIR}/bin/libeay32.dll + COMMAND ${NMAKE} -f ms\\ntdll.mak install + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/openssl-${VERSION} +) +add_custom_target(openssl ALL DEPENDS ${OPENSSLDIR}/bin/ssleay32.dll ${OPENSSLDIR}/bin/libeay32.dll)
\ No newline at end of file diff --git a/ports/openssl/CONTROL b/ports/openssl/CONTROL new file mode 100644 index 000000000..cc539a03e --- /dev/null +++ b/ports/openssl/CONTROL @@ -0,0 +1,4 @@ +Source: openssl +Version: 1.0.2h +Build-Depends: zlib +Description: OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.
\ No newline at end of file diff --git a/ports/openssl/LICENSE b/ports/openssl/LICENSE new file mode 100644 index 000000000..e47d101f1 --- /dev/null +++ b/ports/openssl/LICENSE @@ -0,0 +1,127 @@ + + LICENSE ISSUES + ============== + + The OpenSSL toolkit stays under a dual license, i.e. both the conditions of + the OpenSSL License and the original SSLeay license apply to the toolkit. + See below for the actual license texts. Actually both licenses are BSD-style + Open Source licenses. In case of any license issues related to OpenSSL + please contact openssl-core@openssl.org. + + OpenSSL License + --------------- + +/* ==================================================================== + * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + + Original SSLeay License + ----------------------- + +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + diff --git a/ports/openssl/portfile.cmake b/ports/openssl/portfile.cmake new file mode 100644 index 000000000..1133bf471 --- /dev/null +++ b/ports/openssl/portfile.cmake @@ -0,0 +1,46 @@ +include(vcpkg_common_functions) +vcpkg_find_acquire_program(PERL) +find_program(NMAKE nmake) + +get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY) +set(ENV{PATH} "${PERL_EXE_PATH};$ENV{PATH}") + +vcpkg_download_distfile(OPENSSL_SOURCE_ARCHIVE + URL "https://www.openssl.org/source/openssl-1.0.2h.tar.gz" + FILENAME "openssl-1.0.2h.tar.gz" + MD5 9392e65072ce4b614c1392eefc1f23d0 +) + +file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${CURRENT_BUILDTREES_DIR}/src/openssl-1.0.2h) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openssl-1.0.2h + GENERATOR "NMake Makefiles" + OPTIONS + -DCURRENT_INSTALLED_DIR=${CURRENT_INSTALLED_DIR} + -DCURRENT_PACKAGES_DIR=${CURRENT_PACKAGES_DIR} + -DCURRENT_BUILDTREES_DIR=${CURRENT_BUILDTREES_DIR} + -DOPENSSL_SOURCE_ARCHIVE=${OPENSSL_SOURCE_ARCHIVE} + -DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH} + -DTRIPLET_SYSTEM_ARCH=${TRIPLET_SYSTEM_ARCH} + -DVERSION=1.0.2h + -DTARGET_TRIPLET=${TARGET_TRIPLET} +) + +vcpkg_build_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE + ${CURRENT_PACKAGES_DIR}/debug/bin/openssl.exe + ${CURRENT_PACKAGES_DIR}/bin/openssl.exe + ${CURRENT_PACKAGES_DIR}/debug/openssl.cnf + ${CURRENT_PACKAGES_DIR}/openssl.cnf +) +if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/engines) + file(RENAME ${CURRENT_PACKAGES_DIR}/lib/engines ${CURRENT_PACKAGES_DIR}/bin/engines) +endif() +if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/lib/engines) + file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/engines ${CURRENT_PACKAGES_DIR}/debug/bin/engines) +endif() +file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openssl RENAME copyright) +vcpkg_copy_pdbs() diff --git a/ports/range-v3/CONTROL b/ports/range-v3/CONTROL new file mode 100644 index 000000000..a04b8d3b7 --- /dev/null +++ b/ports/range-v3/CONTROL @@ -0,0 +1,3 @@ +Source: range-v3 +Version: 0.0.0-1 +Description: Range library for C++11/14/17. diff --git a/ports/range-v3/portfile.cmake b/ports/range-v3/portfile.cmake new file mode 100644 index 000000000..e71229d0f --- /dev/null +++ b/ports/range-v3/portfile.cmake @@ -0,0 +1,12 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/Microsoft/Range-V3-VS2015/archive/ede9ad367fd5ec764fecb039c874614bd908e6b6.zip" + FILENAME "range-v3-ede9ad367fd5ec764fecb039c874614bd908e6b6.zip" + MD5 a33fcf63489d5c6d8fa92ef8746648ab +) +vcpkg_extract_source_archive(${ARCHIVE}) + +file(COPY ${CURRENT_BUILDTREES_DIR}/src/Range-V3-VS2015-ede9ad367fd5ec764fecb039c874614bd908e6b6/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/range-v3) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/range-v3/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/range-v3/copyright) +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/Range-V3-VS2015-ede9ad367fd5ec764fecb039c874614bd908e6b6/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp") +vcpkg_copy_pdbs() diff --git a/ports/rapidjson/CONTROL b/ports/rapidjson/CONTROL new file mode 100644 index 000000000..2ef641783 --- /dev/null +++ b/ports/rapidjson/CONTROL @@ -0,0 +1,3 @@ +Source: rapidjson +Version: 1.0.2-1 +Description: A fast JSON parser/generator for C++ with both SAX/DOM style API <http://rapidjson.org/> diff --git a/ports/rapidjson/portfile.cmake b/ports/rapidjson/portfile.cmake new file mode 100644 index 000000000..6d5cdadc6 --- /dev/null +++ b/ports/rapidjson/portfile.cmake @@ -0,0 +1,15 @@ +include(winports_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/miloyip/rapidjson/archive/879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip" + FILENAME "rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip" + MD5 5394c3bc23177b000e1992fb989edc53 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Put the licence file where vcpkg expects it +file(COPY ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidjson) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidjson/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidjson/copyright) + +# Copy the rapidjson header files +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h") +vcpkg_copy_pdbs() diff --git a/ports/sdl2/CONTROL b/ports/sdl2/CONTROL new file mode 100644 index 000000000..5a05183f2 --- /dev/null +++ b/ports/sdl2/CONTROL @@ -0,0 +1,3 @@ +Source: sdl2 +Version: 2.0.4 +Description: Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
\ No newline at end of file diff --git a/ports/sdl2/portfile.cmake b/ports/sdl2/portfile.cmake new file mode 100644 index 000000000..8d5a95feb --- /dev/null +++ b/ports/sdl2/portfile.cmake @@ -0,0 +1,43 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE_FILE + URL "http://libsdl.org/release/SDL2-2.0.4.tar.gz" + FILENAME "SDL2-2.0.4.tar.gz" + MD5 44fc4a023349933e7f5d7a582f7b886e +) +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +if(TRIPLET_SYSTEM_NAME MATCHES "WindowsStore") + vcpkg_build_msbuild( + PROJECT_PATH ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj + ) + + file(COPY + ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Debug/SDL-UWP/SDL2.dll + ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Debug/SDL-UWP/SDL2.pdb + DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) + file(COPY + ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.dll + ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.pdb + DESTINATION ${CURRENT_PACKAGES_DIR}/bin) + file(COPY ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Debug/SDL-UWP/SDL2.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) + file(COPY ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/VisualC-WinRT/UWP_VS2015/Release/SDL-UWP/SDL2.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib) + + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include) + file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include) + file(COPY ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/include DESTINATION ${CURRENT_PACKAGES_DIR}/include) + file(RENAME ${CURRENT_PACKAGES_DIR}/include/include ${CURRENT_PACKAGES_DIR}/include/SDL2) +else() + vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4 + OPTIONS + -DSDL_STATIC=OFF + ) + + vcpkg_build_cmake() + vcpkg_install_cmake() + + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +endif() + +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/SDL2-2.0.4/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/sdl2 RENAME copyright) +vcpkg_copy_pdbs() diff --git a/ports/sqlite3/CMakeLists.txt b/ports/sqlite3/CMakeLists.txt new file mode 100644 index 000000000..3d5f73a4a --- /dev/null +++ b/ports/sqlite3/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.0) +project(sqlite3 C) + +include_directories(${SOURCE}) +add_library(sqlite3 SHARED ${SOURCE}/sqlite3.c) +target_compile_definitions(sqlite3 PRIVATE $<$<CONFIG:Debug>:-DSQLITE_DEBUG> "-DSQLITE_API=__declspec(dllexport)") +if(TRIPLET_SYSTEM_NAME MATCHES "WindowsStore") + target_compile_definitions(sqlite3 PRIVATE -DSQLITE_OS_WINRT=1) +endif() + +install(TARGETS sqlite3 + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) +install(FILES ${SOURCE}/sqlite3.h ${SOURCE}/sqlite3ext.h DESTINATION include CONFIGURATIONS Release) diff --git a/ports/sqlite3/CONTROL b/ports/sqlite3/CONTROL new file mode 100644 index 000000000..886051482 --- /dev/null +++ b/ports/sqlite3/CONTROL @@ -0,0 +1,3 @@ +Source: sqlite3 +Version: 3120200 +Description: SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
\ No newline at end of file diff --git a/ports/sqlite3/portfile.cmake b/ports/sqlite3/portfile.cmake new file mode 100644 index 000000000..b9cc6abe3 --- /dev/null +++ b/ports/sqlite3/portfile.cmake @@ -0,0 +1,19 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "http://www.sqlite.org/2016/sqlite-amalgamation-3120200.zip" + FILENAME "sqlite-amalgamation-3120200.zip" + MD5 e3b10b952f075252169ac613068ccc97 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR} + OPTIONS + -DSOURCE=${CURRENT_BUILDTREES_DIR}/src/sqlite-amalgamation-3120200 +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(WRITE ${CURRENT_PACKAGES_DIR}/share/sqlite3/copyright "SQLite is in the Public Domain.\nhttp://www.sqlite.org/copyright.html\n") +vcpkg_copy_pdbs() diff --git a/ports/tcl/portfile.cmake b/ports/tcl/portfile.cmake new file mode 100644 index 000000000..16f9abdbd --- /dev/null +++ b/ports/tcl/portfile.cmake @@ -0,0 +1,63 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "http://prdownloads.sourceforge.net/tcl/tcl8.6.5-src.tar.gz" + FILENAME "tcl8.6.5-src.tar.gz" + MD5 0e6426a4ca9401825fbc6ecf3d89a326 +) + +find_program(NMAKE nmake) + +if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/x86-windows-rel) + message(STATUS "Extracting source ${ARCHIVE} for Release") + file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-rel) + vcpkg_execute_required_process( + COMMAND ${CMAKE_COMMAND} -E tar xjf ${ARCHIVE} + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-rel + LOGNAME extract-x86-windows-rel + ) +endif() +if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg) + message(STATUS "Extracting source ${ARCHIVE} for Debug") + file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg) + vcpkg_execute_required_process( + COMMAND ${CMAKE_COMMAND} -E tar xjf ${ARCHIVE} + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg + LOGNAME extract-x86-windows-dbg + ) +endif() +message(STATUS "Extracting done") + +message(STATUS "Building x86-windows-rel") +vcpkg_execute_required_process( + COMMAND ${NMAKE} -f makefile.vc release + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-rel/tcl8.6.5/win + LOGNAME build-x86-windows-rel +) +message(STATUS "Building x86-windows-rel done") + +message(STATUS "Building x86-windows-dbg") +vcpkg_execute_required_process( + COMMAND ${NMAKE} -f makefile.vc release OPTS=symbols + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg/tcl8.6.5/win + LOGNAME build-x86-windows-rel +) +message(STATUS "Building x86-windows-dbg done") + +message(STATUS "Installing x86-windows-rel") +vcpkg_execute_required_process( + COMMAND ${NMAKE} -f makefile.vc install INSTALLDIR=${CURRENT_PACKAGES_DIR} SCRIPT_INSTALL_DIR=${CURRENT_PACKAGES_DIR}\\share\\tcltk\\tcl8.6 + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-rel/tcl8.6.5/win + LOGNAME install-x86-windows-rel +) +message(STATUS "Installing x86-windows-rel done") + +message(STATUS "Installing x86-windows-dbg") +vcpkg_execute_required_process( + COMMAND ${NMAKE} -f makefile.vc install INSTALLDIR=${CURRENT_PACKAGES_DIR}\\debug OPTS=symbols SCRIPT_INSTALL_DIR=${CURRENT_PACKAGES_DIR}\\debug\\share\\tcltk\\tcl8.6 + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg/tcl8.6.5/win + LOGNAME install-x86-windows-dbg +) +message(STATUS "Installing x86-windows-dbg done") + +file(INSTALL ${CURRENT_BUILDTREES_DIR}/x86-windows-rel/tcl8.6.5/license.terms DESTINATION ${CURRENT_PACKAGES_DIR}/share/tcl RENAME copyright) +vcpkg_copy_pdbs() diff --git a/ports/tiff/CONTROL b/ports/tiff/CONTROL new file mode 100644 index 000000000..df11c0e9c --- /dev/null +++ b/ports/tiff/CONTROL @@ -0,0 +1,3 @@ +Source: tiff +Version: 4.0.6 +Description: A library that supports the manipulation of TIFF image files
\ No newline at end of file diff --git a/ports/tiff/portfile.cmake b/ports/tiff/portfile.cmake new file mode 100644 index 000000000..9011db7b6 --- /dev/null +++ b/ports/tiff/portfile.cmake @@ -0,0 +1,36 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.6.tar.gz" + FILENAME "tiff-4.0.6.tar.gz" + MD5 d1d2e940dea0b5ad435f21f03d96dd72 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tiff-4.0.6 + OPTIONS -Dcxx=OFF +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE_RECURSE + ${CURRENT_PACKAGES_DIR}/debug/include + ${CURRENT_PACKAGES_DIR}/debug/share + ${CURRENT_PACKAGES_DIR}/share +) +file(COPY + ${CURRENT_BUILDTREES_DIR}/src/tiff-4.0.6/COPYRIGHT + DESTINATION ${CURRENT_PACKAGES_DIR}/share/tiff +) +file(RENAME + ${CURRENT_PACKAGES_DIR}/share/tiff/COPYRIGHT + ${CURRENT_PACKAGES_DIR}/share/tiff/c2 +) +file(RENAME + ${CURRENT_PACKAGES_DIR}/share/tiff/c2 + ${CURRENT_PACKAGES_DIR}/share/tiff/copyright +) +file(GLOB EXES ${CURRENT_PACKAGES_DIR}/bin/*.exe ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe) +file(REMOVE ${EXES}) +vcpkg_copy_pdbs() diff --git a/ports/tinyxml2/CONTROL b/ports/tinyxml2/CONTROL new file mode 100644 index 000000000..b8bf3d76a --- /dev/null +++ b/ports/tinyxml2/CONTROL @@ -0,0 +1,3 @@ +Source: tinyxml2 +Version: 3.0.0 +Description: A simple, small, efficient, C++ XML parser
\ No newline at end of file diff --git a/ports/tinyxml2/portfile.cmake b/ports/tinyxml2/portfile.cmake new file mode 100644 index 000000000..56c86d82a --- /dev/null +++ b/ports/tinyxml2/portfile.cmake @@ -0,0 +1,22 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/leethomason/tinyxml2/archive/3.0.0.zip" + FILENAME "tinyxml2-3.0.0.zip" + MD5 851ffc79097239cdc03a952094ddf437 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0 + # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 + # OPTIONS_RELEASE -DOPTIMIZE=1 + # OPTIONS_DEBUG -DDEBUGGABLE=1 +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(COPY ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0/readme.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml2) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/tinyxml2/readme.md ${CURRENT_PACKAGES_DIR}/share/tinyxml2/copyright) +vcpkg_copy_pdbs() diff --git a/ports/tk/portfile.cmake b/ports/tk/portfile.cmake new file mode 100644 index 000000000..8b5f1f36e --- /dev/null +++ b/ports/tk/portfile.cmake @@ -0,0 +1,63 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "http://prdownloads.sourceforge.net/tcl/tk8.6.5-src.tar.gz" + FILENAME "tk8.6.5-src.tar.gz" + MD5 11dbbd425c3e0201f20d6a51482ce6c4 +) + +find_program(NMAKE nmake) + +if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/x86-windows-rel) + message(STATUS "Extracting source ${ARCHIVE} for Release") + file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-rel) + vcpkg_execute_required_process( + COMMAND ${CMAKE_COMMAND} -E tar xjf ${ARCHIVE} + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-rel + LOGNAME extract-x86-windows-rel + ) +endif() +if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg) + message(STATUS "Extracting source ${ARCHIVE} for Debug") + file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg) + vcpkg_execute_required_process( + COMMAND ${CMAKE_COMMAND} -E tar xjf ${ARCHIVE} + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg + LOGNAME extract-x86-windows-dbg + ) +endif() +message(STATUS "Extracting done") + +message(STATUS "Building x86-windows-rel") +vcpkg_execute_required_process( + COMMAND ${NMAKE} -f makefile.vc release TCLDIR=${CURRENT_BUILDTREES_DIR}\\x86-windows-rel\\tcl8.6.5 + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-rel/tk8.6.5/win + LOGNAME build-x86-windows-rel +) +message(STATUS "Building x86-windows-rel done") + +message(STATUS "Building x86-windows-dbg") +vcpkg_execute_required_process( + COMMAND ${NMAKE} -f makefile.vc release OPTS=symbols TCLDIR=${CURRENT_BUILDTREES_DIR}\\x86-windows-dbg\\tcl8.6.5 + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg/tk8.6.5/win + LOGNAME build-x86-windows-dbg +) +message(STATUS "Building x86-windows-dbg done") + +message(STATUS "Installing x86-windows-rel") +vcpkg_execute_required_process( + COMMAND ${NMAKE} -f makefile.vc install INSTALLDIR=${CURRENT_PACKAGES_DIR} SCRIPT_INSTALL_DIR=${CURRENT_PACKAGES_DIR}\\share\\tcltk\\tk8.6 + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-rel/tk8.6.5/win + LOGNAME install-x86-windows-rel +) +message(STATUS "Installing x86-windows-rel done") + +message(STATUS "Installing x86-windows-dbg") +vcpkg_execute_required_process( + COMMAND ${NMAKE} -f makefile.vc install INSTALLDIR=${CURRENT_PACKAGES_DIR}\\debug OPTS=symbols SCRIPT_INSTALL_DIR=${CURRENT_PACKAGES_DIR}\\debug\\share\\tcltk\\tk8.6 + WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/x86-windows-dbg/tk8.6.5/win + LOGNAME install-x86-windows-dbg +) +message(STATUS "Installing x86-windows-dbg done") + +file(INSTALL ${CURRENT_BUILDTREES_DIR}/x86-windows-rel/tk8.6.5/license.terms DESTINATION ${CURRENT_PACKAGES_DIR}/share/tk RENAME copyright) +vcpkg_copy_pdbs() diff --git a/ports/zlib/CONTROL b/ports/zlib/CONTROL new file mode 100644 index 000000000..482873480 --- /dev/null +++ b/ports/zlib/CONTROL @@ -0,0 +1,3 @@ +Source: zlib +Version: 1.2.8 +Description: A compression library
\ No newline at end of file diff --git a/ports/zlib/LICENSE b/ports/zlib/LICENSE new file mode 100644 index 000000000..9b2f94711 --- /dev/null +++ b/ports/zlib/LICENSE @@ -0,0 +1,20 @@ +Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu
\ No newline at end of file diff --git a/ports/zlib/portfile.cmake b/ports/zlib/portfile.cmake new file mode 100644 index 000000000..cbd942aeb --- /dev/null +++ b/ports/zlib/portfile.cmake @@ -0,0 +1,22 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE_FILE + URL "http://zlib.net/zlib128.zip" + FILENAME "zlib128.zip" + MD5 126f8676442ffbd97884eb4d6f32afb4 +) +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/zlib-1.2.8 + OPTIONS + -DSKIP_INSTALL_FILES=ON + OPTIONS_DEBUG + -DSKIP_INSTALL_HEADERS=ON +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/zlibstatic.lib ${CURRENT_PACKAGES_DIR}/debug/lib/zlibstaticd.lib) +file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/zlib RENAME copyright) +vcpkg_copy_pdbs() |
