aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam-bloom@users.noreply.github.com>2021-01-12 21:11:21 -0700
committerGitHub <noreply@github.com>2021-01-12 20:11:21 -0800
commita5b371b289172bf535509e6b30b112cf1673c4d2 (patch)
treea7f0cb640335fd5bf948b09a65ef3212dd2b1ad6
parente819d336250267bbd31e47e4c3e9056efef516b8 (diff)
downloadvcpkg-a5b371b289172bf535509e6b30b112cf1673c4d2.tar.gz
vcpkg-a5b371b289172bf535509e6b30b112cf1673c4d2.zip
[speexdsp] Configure and install speexdsp.pc (#15585)
* [speexdsp] Configure and install speexdsp.pc * remove blank 'Build-Depends' field
-rw-r--r--ports/speexdsp/CMakeLists.txt13
-rw-r--r--ports/speexdsp/CONTROL3
-rw-r--r--ports/speexdsp/portfile.cmake2
3 files changed, 16 insertions, 2 deletions
diff --git a/ports/speexdsp/CMakeLists.txt b/ports/speexdsp/CMakeLists.txt
index 4f5abea48..6d9658916 100644
--- a/ports/speexdsp/CMakeLists.txt
+++ b/ports/speexdsp/CMakeLists.txt
@@ -101,6 +101,19 @@ set_target_properties(speexdsp PROPERTIES PUBLIC_HEADER "${LIBSPEEXDSP_HEADERS_P
set_target_properties(speexdsp PROPERTIES VERSION "${LIBSPEEXDSP_VERSION}")
set_target_properties(speexdsp PROPERTIES SOVERSION "${LIBSPEEXDSP_SOVERSION}")
+# pkgconfig file
+set(prefix "${CMAKE_INSTALL_PREFIX}")
+set(exec_prefix \${prefix})
+SET(bindir \${exec_prefix}/${CMAKE_INSTALL_BINDIR})
+SET(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR})
+SET(includedir \${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
+if(CMAKE_SYSTEM_NAME MATCHES BSD)
+ set(PKG_CONFIG_RPATH "-Wl,-R\${libdir}")
+endif(CMAKE_SYSTEM_NAME MATCHES BSD)
+set(PACKAGE_VERSION "${LIBSPEEXDSP_VERSION}")
+configure_file(speexdsp.pc.in speexdsp.pc @ONLY)
+install(FILES ${PROJECT_BINARY_DIR}/speexdsp.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+
install(TARGETS speexdsp
ARCHIVE DESTINATION "lib"
RUNTIME DESTINATION "bin"
diff --git a/ports/speexdsp/CONTROL b/ports/speexdsp/CONTROL
index 59ba0f4c0..89d842c47 100644
--- a/ports/speexdsp/CONTROL
+++ b/ports/speexdsp/CONTROL
@@ -1,6 +1,5 @@
Source: speexdsp
Version: 1.2.0
-Port-Version: 4
+Port-Version: 5
Homepage: https://speex.org/
Description: A patent-free, Open Source/Free Software DSP library.
-Build-Depends:
diff --git a/ports/speexdsp/portfile.cmake b/ports/speexdsp/portfile.cmake
index 429b2f213..445bc2aca 100644
--- a/ports/speexdsp/portfile.cmake
+++ b/ports/speexdsp/portfile.cmake
@@ -41,6 +41,8 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
vcpkg_copy_pdbs()
+vcpkg_fixup_pkgconfig()
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")