diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-10-17 13:12:57 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-10-17 13:12:57 -0700 |
| commit | 686f2fe179faf2694599a99402fff668561dbdd2 (patch) | |
| tree | fa3735f0331f6cdc9a6fb5f9eccd01d411c0c8b9 | |
| parent | 4b05d1d333980e473f70e0790ad78226bec8af52 (diff) | |
| parent | daf6405ad1d4bba8490c60413078fb9e25e10119 (diff) | |
| download | vcpkg-686f2fe179faf2694599a99402fff668561dbdd2.tar.gz vcpkg-686f2fe179faf2694599a99402fff668561dbdd2.zip | |
Merge pull request #170 from vlj/physfs
Add physfs.
| -rw-r--r-- | ports/physfs/CONTROL | 3 | ||||
| -rw-r--r-- | ports/physfs/portfile.cmake | 30 |
2 files changed, 33 insertions, 0 deletions
diff --git a/ports/physfs/CONTROL b/ports/physfs/CONTROL new file mode 100644 index 000000000..3e502435f --- /dev/null +++ b/ports/physfs/CONTROL @@ -0,0 +1,3 @@ +Source: physfs +Version: 2.0.3 +Description: a library to provide abstract access to various archives diff --git a/ports/physfs/portfile.cmake b/ports/physfs/portfile.cmake new file mode 100644 index 000000000..463d1b8a7 --- /dev/null +++ b/ports/physfs/portfile.cmake @@ -0,0 +1,30 @@ +# Common Ambient Variables: +# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg> +# TARGET_TRIPLET is the current triplet (x86-windows, etc) +# PORT is the current port name (zlib, etc) +# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT} +# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET} +# + +include(${CMAKE_TRIPLET_FILE}) +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/physfs-2.0.3) +vcpkg_download_distfile(ARCHIVE + URLS "https://icculus.org/physfs/downloads/physfs-2.0.3.tar.bz2" + FILENAME "physfs-2.0.3.tar.bz2" + SHA512 47eff0c81b8dc3bb526766b0a8ad2437d2951867880116d6e6e8f2ec1490e263541fb741867fed6517cc3fa8a9c5651b36e3e02a499f19cfdc5c7261c9707e80 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} +) + +vcpkg_install_cmake() +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/test_physfs.exe) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/test_physfs.exe) + +# Handle copyright +file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/physfs) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/physfs/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/physfs/copyright) |
