aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2017-02-21 13:39:58 -0800
committerGitHub <noreply@github.com>2017-02-21 13:39:58 -0800
commit81bb33dc3ee677d4167e0480d1f2d522756e7f24 (patch)
tree3d3df8f853ce155d1b9c050cf69cd13c23c9a87d
parentb921dce5fc17bd4c1c206b79eb0a7b8758dcf5bf (diff)
parentf9eb4f98dfcfd23a7cfc2b721ad2273ccdf64158 (diff)
downloadvcpkg-81bb33dc3ee677d4167e0480d1f2d522756e7f24.tar.gz
vcpkg-81bb33dc3ee677d4167e0480d1f2d522756e7f24.zip
Merge pull request #696 from tobiaskohlbau/master
[pqp] Add PQP portfile
-rw-r--r--ports/pqp/CMakeLists.txt21
-rw-r--r--ports/pqp/CONTROL3
-rw-r--r--ports/pqp/LICENSE32
-rw-r--r--ports/pqp/portfile.cmake27
4 files changed, 83 insertions, 0 deletions
diff --git a/ports/pqp/CMakeLists.txt b/ports/pqp/CMakeLists.txt
new file mode 100644
index 000000000..e46f17895
--- /dev/null
+++ b/ports/pqp/CMakeLists.txt
@@ -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() \ No newline at end of file
diff --git a/ports/pqp/CONTROL b/ports/pqp/CONTROL
new file mode 100644
index 000000000..89995bb92
--- /dev/null
+++ b/ports/pqp/CONTROL
@@ -0,0 +1,3 @@
+Source: pqp
+Version: 1.3
+Description: a proximity query package
diff --git a/ports/pqp/LICENSE b/ports/pqp/LICENSE
new file mode 100644
index 000000000..2d4e4817a
--- /dev/null
+++ b/ports/pqp/LICENSE
@@ -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 \ No newline at end of file
diff --git a/ports/pqp/portfile.cmake b/ports/pqp/portfile.cmake
new file mode 100644
index 000000000..3ce851400
--- /dev/null
+++ b/ports/pqp/portfile.cmake
@@ -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)