aboutsummaryrefslogtreecommitdiff
path: root/ports/sqlite3/portfile.cmake
blob: 9cdb67bb650feb87ba372824a73b893010983862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include(vcpkg_common_functions)
vcpkg_download_distfile(ARCHIVE
    URL "http://www.sqlite.org/2016/sqlite-amalgamation-3120200.zip"
    FILENAME "sqlite-amalgamation-3120200.zip"
    SHA512 92e1cc09dc4d4e9dd4c189e4a5061664f11971eb3e14c4c59e1f489f201411b08a31dae9e6fc50fffd49bb72f88ac3d99b7c7cd5e334b3079c165ee1c4f5a16e
)
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()