proj/proj_pkgconfig.patch
Troy Dawson 7f688b39f3 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/proj#427b10b2e57375ba6cc9a025f10313fd0e200730
2020-11-16 13:23:05 -08:00

23 lines
978 B
Diff

diff -rupN proj-7.2.0/CMakeLists.txt proj-7.2.0-new/CMakeLists.txt
--- proj-7.2.0/CMakeLists.txt 2020-10-28 12:22:26.000000000 +0100
+++ proj-7.2.0-new/CMakeLists.txt 2020-11-05 07:27:39.486134481 +0100
@@ -277,3 +277,18 @@ add_subdirectory(cmake)
if(BUILD_TESTING)
add_subdirectory(test)
endif()
+
+################################################################################
+# pkgconfig file
+################################################################################
+SET(prefix ${CMAKE_INSTALL_PREFIX})
+SET(exec_prefix ${CMAKE_INSTALL_PREFIX})
+SET(libdir ${CMAKE_INSTALL_PREFIX}/${LIBDIR})
+SET(includedir ${CMAKE_INSTALL_PREFIX}/${INCLUDEDIR})
+SET(datarootdir ${CMAKE_INSTALL_PREFIX}/${DATADIR})
+SET(VERSION ${PROJ_VERSION})
+SET(SQLITE3_LIBS ${SQLITE3_LIBRARY})
+SET(TIFF_LIBS ${TIFF_LIBRARY})
+SET(CURL_LIBS ${CURL_LIBRARY})
+CONFIGURE_FILE(proj.pc.in proj.pc @ONLY)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/proj.pc DESTINATION ${LIBDIR}/pkgconfig)