diff --git a/Mk/Uses/pathfix.mk b/Mk/Uses/pathfix.mk index f191f9ea4026..b587574d76a2 100644 --- a/Mk/Uses/pathfix.mk +++ b/Mk/Uses/pathfix.mk @@ -16,11 +16,23 @@ _INCLUDE_USES_PATHFIX_MK= yes IGNORE= USES=pathfix does not require args .endif +PATHFIX_CMAKELISTSTXT?= CMakeLists.txt PATHFIX_MAKEFILEIN?= Makefile.in PATHFIX_WRKSRC?= ${WRKSRC} _USES_patch+= 190:pathfix pathfix: +.if ${USES:Mcmake*} + @${FIND} ${PATHFIX_WRKSRC} -name "${PATHFIX_CMAKELISTSTXT}" -type f | ${XARGS} ${REINPLACE_CMD} -e \ + 's|[{]CMAKE_INSTALL_LIBDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ + s|[{]INSTALL_LIB_DIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ + s|[{]INSTALL_LIBDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ + s|[{]LIB_DIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ + s|[{]LIB_INSTALL_DIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ + s|[{]LIBRARY_INSTALL_DIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ + s|[{]libdir[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ + s|lib/pkgconfig|libdata/pkgconfig|g' +.else @${FIND} ${PATHFIX_WRKSRC} -name "${PATHFIX_MAKEFILEIN}" -type f | ${XARGS} ${REINPLACE_CMD} -e \ 's|[(]libdir[)]/locale|(prefix)/share/locale|g ; \ s|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \ @@ -31,5 +43,6 @@ pathfix: s|[(]prefix[)]/lib/pkgconfig|(prefix)/libdata/pkgconfig|g ; \ s|[$$][(]localstatedir[)]/scrollkeeper|${SCROLLKEEPER_DIR}|g ; \ s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g' +.endif .endif diff --git a/cad/brlcad/Makefile b/cad/brlcad/Makefile index 8921ee470ed0..8db83dcbcd72 100644 --- a/cad/brlcad/Makefile +++ b/cad/brlcad/Makefile @@ -40,8 +40,6 @@ BROKEN_sparc64= does not compile: invokes i386 assembler post-patch: @${REINPLACE_CMD} "s+-exact Tcl 8\.5\.9+Tcl 8.5+" ${WRKSRC}/src/other/tcl/library/init.tcl - @${REINPLACE_CMD} -e 's|{LIB_DIR}|{prefix}/libdata|' \ - ${WRKSRC}/misc/pkgconfig/CMakeLists.txt pre-install: ${CP} ${FILESDIR}/mged.sh ${WRKSRC} diff --git a/chinese/fcitx/Makefile b/chinese/fcitx/Makefile index 65f5c6641ee0..c45648232442 100644 --- a/chinese/fcitx/Makefile +++ b/chinese/fcitx/Makefile @@ -35,7 +35,7 @@ USE_GNOME= pango intltool libxml2 introspection USE_XORG= x11 xext xkbfile USE_LDCONFIG= yes USES= tar:xz cmake desktop-file-utils execinfo gettext iconv:wchar_t \ - pathfix pkgconfig shared-mime-info + pkgconfig shared-mime-info INSTALLS_ICONS= yes OPTIONS_DEFINE= GTK2 GTK3 QT4 OPENCC TPUNC DOCS diff --git a/chinese/libchewing/files/patch-CMakeLists.txt b/chinese/libchewing/files/patch-CMakeLists.txt index aff7a1607bb1..a365d2f90d4d 100644 --- a/chinese/libchewing/files/patch-CMakeLists.txt +++ b/chinese/libchewing/files/patch-CMakeLists.txt @@ -1,17 +1,15 @@ ---- CMakeLists.txt.orig 2014-04-11 09:25:28.000000000 +0800 -+++ CMakeLists.txt 2015-02-15 11:25:11.959775965 +0800 -@@ -103,8 +103,9 @@ set(TEST_BIN_DIR ${PROJECT_BINARY_DIR}/t - +--- CMakeLists.txt.orig 2014-04-11 01:25:28 UTC ++++ CMakeLists.txt +@@ -104,7 +104,7 @@ set(TEST_BIN_DIR ${PROJECT_BINARY_DIR}/t set(INSTALL_INC_DIR ${CMAKE_INSTALL_PREFIX}/include/chewing) set(INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib) -+set(INSTALL_LIBDATA_DIR ${CMAKE_INSTALL_PREFIX}/libdata) set(INSTALL_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/libchewing) -set(INSTALL_INFO_DIR ${CMAKE_INSTALL_PREFIX}/share/info) +set(INSTALL_INFO_DIR ${CMAKE_INSTALL_PREFIX}/info) set(INFO_SRC ${PROJECT_SOURCE_DIR}/doc/libchewing.texi) set(INFO_BIN ${PROJECT_BINARY_DIR}/doc/libchewing.info) -@@ -166,11 +167,7 @@ if (MAKEINFO) +@@ -166,11 +166,7 @@ if (MAKEINFO) add_custom_target(INFO ALL DEPENDS ${INFO_BIN}) add_dependencies(check INFO) @@ -24,10 +22,3 @@ endif() -@@ -428,5 +425,5 @@ install(FILES ${ALL_DATA} DESTINATION ${ - install(FILES ${ALL_STATIC_DATA} DESTINATION ${INSTALL_DATA_DIR}) - install(FILES ${ALL_INC} DESTINATION ${INSTALL_INC_DIR}) - install(FILES ${PROJECT_BINARY_DIR}/chewing.pc -- DESTINATION ${INSTALL_LIB_DIR}/pkgconfig) -+ DESTINATION ${INSTALL_LIBDATA_DIR}/pkgconfig) - install(TARGETS ${LIBS} DESTINATION ${INSTALL_LIB_DIR}) diff --git a/comms/openobex/Makefile b/comms/openobex/Makefile index 197b7c7b3f07..96b2dc25cd48 100644 --- a/comms/openobex/Makefile +++ b/comms/openobex/Makefile @@ -11,7 +11,7 @@ MAINTAINER= madpilot@FreeBSD.org COMMENT= Open source implementation of the OBEX protocol USE_LDCONFIG= yes -USES= pathfix cmake dos2unix +USES= cmake dos2unix DOS2UNIX_FILES= CMakeLists.txt CMAKE_ARGS+= -DPKGCONFIG_INSTALL_DIR:STRING="${PREFIX}/libdata/pkgconfig" diff --git a/deskutils/cairo-dock/Makefile b/deskutils/cairo-dock/Makefile index 82c9b9cbb491..a368faea8094 100644 --- a/deskutils/cairo-dock/Makefile +++ b/deskutils/cairo-dock/Makefile @@ -25,7 +25,7 @@ GNU_CONFIGURE= yes USE_GNOME= glib20 gtk30 librsvg2 libxml2 USE_LDCONFIG= yes USE_XORG= xrender xtst -USES= cmake gettext pathfix pkgconfig +USES= cmake gettext pkgconfig LDFLAGS+= -L${LOCALBASE}/lib CMAKE_ARGS+= -Dinstall-pc-path:STRING="${LOCALBASE}/libdata/pkgconfig" CMAKE_ARGS+= -DROOT_PREFIX:PATH=${STAGEDIR} diff --git a/devel/libftdi1/Makefile b/devel/libftdi1/Makefile index 3a9aced3b91d..636b02e06c10 100644 --- a/devel/libftdi1/Makefile +++ b/devel/libftdi1/Makefile @@ -19,7 +19,7 @@ OPTIONS_SUB= yes BOOST_DESC= Build with boost PYTHON_DESC= Build Python bindings -USES= pathfix pkgconfig cmake tar:bzip2 +USES= cmake pkgconfig tar:bzip2 USE_LDCONFIG= yes PORTDOCS= COPYING.LIB ChangeLog README diff --git a/devel/libical/Makefile b/devel/libical/Makefile index b4cdaf54bab3..16985cb77a5e 100644 --- a/devel/libical/Makefile +++ b/devel/libical/Makefile @@ -14,7 +14,7 @@ LICENSE= MPL LGPL21 USE_GITHUB= yes GH_TAGNAME= da69aae -USES= cmake gmake pathfix perl5 +USES= cmake pathfix perl5 USE_PERL5= build USE_LDCONFIG= yes diff --git a/devel/libical/files/patch-CMakeLists.txt b/devel/libical/files/patch-CMakeLists.txt deleted file mode 100644 index b92905150a5d..000000000000 --- a/devel/libical/files/patch-CMakeLists.txt +++ /dev/null @@ -1,8 +0,0 @@ ---- CMakeLists.txt.orig 2013-05-04 23:25:27.000000000 +0200 -+++ CMakeLists.txt 2013-12-01 00:16:33.000000000 +0100 -@@ -201,4 +201,4 @@ - set(PTHREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}") - - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libical.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libical.pc @ONLY) --install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libical.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) -+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libical.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig) diff --git a/devel/ucommon/files/patch-CMakeLists.txt b/devel/ucommon/files/patch-CMakeLists.txt index c45d7d419f7e..c659d0a5c017 100644 --- a/devel/ucommon/files/patch-CMakeLists.txt +++ b/devel/ucommon/files/patch-CMakeLists.txt @@ -66,17 +66,3 @@ endforeach() configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config) -@@ -594,11 +611,11 @@ - endif() - - if(NOT WIN32) -- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${INSTALL_LIBDIR}/pkgconfig) -+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION libdata/pkgconfig) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ucommon-config DESTINATION ${INSTALL_BINDIR}) - if(BUILD_STDLIB) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/commoncpp-config DESTINATION ${INSTALL_BINDIR}) -- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/commoncpp.pc DESTINATION ${INSTALL_LIBDIR}/pkgconfig) -+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/commoncpp.pc DESTINATION libdata/pkgconfig) - endif() - endif(NOT WIN32) - diff --git a/graphics/cegui/Makefile b/graphics/cegui/Makefile index ad3797769474..5b800d484801 100644 --- a/graphics/cegui/Makefile +++ b/graphics/cegui/Makefile @@ -17,7 +17,7 @@ CONFIGURE_ENV+= TOLUA_INC="${LUA_INCDIR}" CMAKE_ARGS= -DCEGUI_SAMPLES_ENABLED:BOOL=OFF \ -DCEGUI_BUILD_TESTS=OFF USE_LDCONFIG= yes -USES= compiler:c++11-lib cmake execinfo pathfix pkgconfig tar:bzip2 +USES= compiler:c++11-lib cmake execinfo pkgconfig tar:bzip2 PORTDOCS= * diff --git a/mail/geary/Makefile b/mail/geary/Makefile index 2cd1f360169e..2fea81c37504 100644 --- a/mail/geary/Makefile +++ b/mail/geary/Makefile @@ -21,7 +21,7 @@ LIB_DEPENDS= libgmime-2.6.so:${PORTSDIR}/mail/gmime26 \ libgcr-3.so:${PORTSDIR}/security/gcr USES= cmake desktop-file-utils gettext gmake \ - libtool pathfix pkgconfig shebangfix tar:xz + libtool pkgconfig shebangfix tar:xz USE_GNOME= gnomedocutils gnomeprefix gtk30 intlhack SHEBANG_FILES= desktop/geary-attach USE_LDCONFIG= yes