mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:46:19 +08:00
Merge pull request #696 from tobiaskohlbau/master
[pqp] Add PQP portfile
This commit is contained in:
commit
81bb33dc3e
21
ports/pqp/CMakeLists.txt
Normal file
21
ports/pqp/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
project(pqp)
|
||||
|
||||
include_directories(${SOURCE}/src)
|
||||
|
||||
file(GLOB SRCS
|
||||
"${SOURCE}/src/*.cpp")
|
||||
file(GLOB HDRS
|
||||
"${SOURCE}/src/*.h")
|
||||
|
||||
add_library(pqp STATIC ${SRCS})
|
||||
|
||||
install(TARGETS pqp EXPORT pqpConfig
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
|
||||
foreach (file ${HDRS})
|
||||
get_filename_component(dir ${file} DIRECTORY)
|
||||
install(FILES ${file} DESTINATION include/ CONFIGURATIONS Release)
|
||||
endforeach()
|
3
ports/pqp/CONTROL
Normal file
3
ports/pqp/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: pqp
|
||||
Version: 1.3
|
||||
Description: a proximity query package
|
32
ports/pqp/LICENSE
Normal file
32
ports/pqp/LICENSE
Normal file
@ -0,0 +1,32 @@
|
||||
Copyright 1999 University of North Carolina at Chapel Hill.
|
||||
All rights reserved.
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for educational, research, and non-profit purposes, without fee,
|
||||
and without a written agreement is hereby granted, provided that the above
|
||||
copyright notice and the following three paragraphs appear in all copies.
|
||||
|
||||
IN NO EVENT SHALL THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL BE LIABLE TO
|
||||
ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
||||
INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
|
||||
DOCUMENTATION, EVEN IF THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL HAS
|
||||
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL SPECIFICALLY DISCLAIMS ANY
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED
|
||||
HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF NORTH CAROLINA AT
|
||||
CHAPEL HILL HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
|
||||
ENHANCEMENTS, OR MODIFICATIONS.
|
||||
|
||||
The authors may be contacted via:
|
||||
|
||||
US Mail: Eric Larsen, Stefan Gottschalk
|
||||
Department of Computer Science
|
||||
Sitterson Hall, CB #3175
|
||||
University of North Carolina
|
||||
Chapel Hill, NC 27599-3175
|
||||
|
||||
Phone: (919) 962-1749
|
||||
|
||||
Email: geom@cs.unc.edu
|
27
ports/pqp/portfile.cmake
Normal file
27
ports/pqp/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(STATUS "Warning: Dynamic building not supported yet. Building static.")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/pqp-1.3/PQP_v1.3)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://gamma.cs.unc.edu/software/downloads/SSV/pqp-1.3.tar.gz"
|
||||
FILENAME "pqp-1.3.tar.gz"
|
||||
SHA512 baad7b050b13a6d13de5110cdec443048a3543b65b0d3b30d1b5f737b46715052661f762ef71345d39978c0c788a30a3a935717664806b4729722ee3594ebdc1
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DSOURCE=${SOURCE_PATH}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pqp)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/pqp/LICENSE ${CURRENT_PACKAGES_DIR}/share/pqp/copyright)
|
Loading…
Reference in New Issue
Block a user