Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] patches from pkgsrc for discussion, based on 1.6.1

I have updated pkgsrc to 1.6.1.  Thanks for the many cmake adjustments
-- the packaging is much simplified.  I am sending notes about remaining
patches (that aren't about accomodating ways pkgsrc differs from
normal), and will send them one issue per email.

The following patch adjusts where pkgconfig files go, so they end up in
/usr/pkg/lib/pkgconfig rather than /usr/pkg/share/pkgconfig.   As I
understand it, pc files normally go in lib/pkgconfig.

I am not sure where they go on GNU/Linux if LIBDIR is lib64.  (On
pkgsrc, even on GNU/Linux, we use lib for native libraries always.)


$NetBSD$

Adjust pkgconfig installation location to lib, not share.

--- CMakeLists.txt.orig	2019-04-26 16:07:59.000000000 +0000
+++ CMakeLists.txt
@@ -108,9 +114,9 @@ install(FILES mosquitto.conf aclfile.exa
 # ========================================
 
 configure_file(libmosquitto.pc.in libmosquitto.pc @ONLY)
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libmosquitto.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/pkgconfig")
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libmosquitto.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
 configure_file(libmosquittopp.pc.in libmosquittopp.pc @ONLY)
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libmosquittopp.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/pkgconfig")
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libmosquittopp.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
 
 # ========================================
 # Testing





Back to the top