Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/pathfix.mk
Show All 22 Lines | |||||
PATHFIX_MAKEFILEIN?= Makefile.in | PATHFIX_MAKEFILEIN?= Makefile.in | ||||
.endif | .endif | ||||
PATHFIX_WRKSRC?= ${WRKSRC} | PATHFIX_WRKSRC?= ${WRKSRC} | ||||
_USES_patch+= 190:pathfix | _USES_patch+= 190:pathfix | ||||
pathfix: | pathfix: | ||||
.if ${USES:Mcmake*} | .if ${USES:Mcmake*} | ||||
.for file in ${PATHFIX_CMAKELISTSTXT} | .for file in ${PATHFIX_CMAKELISTSTXT} | ||||
@${FIND} ${PATHFIX_WRKSRC} -name "${file}" -type f | ${XARGS} ${REINPLACE_CMD} -e \ | @${FIND} ${PATHFIX_WRKSRC} -name "${file}" -type f | ${XARGS} ${FRAMEWORK_REINPLACE_CMD} -e \ | ||||
's|[{]CMAKE_INSTALL_LIBDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | 's|[{]CMAKE_INSTALL_LIBDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | ||||
s|[{]CMAKE_INSTALL_DATAROOTDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | s|[{]CMAKE_INSTALL_DATAROOTDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | ||||
s|[{]INSTALL_LIB_DIR[}]/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|[{]INSTALL_LIBDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | ||||
s|[{]LIB_DESTINATION[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | s|[{]LIB_DESTINATION[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | ||||
s|[{]LIB_DIR[}]/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|[{]LIB_INSTALL_DIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | ||||
s|[{]KDE_INSTALL_LIBDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | s|[{]KDE_INSTALL_LIBDIR[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | ||||
s|[{]LIBRARY_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|[{]libdir[}]/pkgconfig|{CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|g ; \ | ||||
s|lib/pkgconfig|libdata/pkgconfig|g' | s|lib/pkgconfig|libdata/pkgconfig|g' | ||||
.endfor | .endfor | ||||
.else | .else | ||||
.for file in ${PATHFIX_MAKEFILEIN} | .for file in ${PATHFIX_MAKEFILEIN} | ||||
@${FIND} ${PATHFIX_WRKSRC} -name "${file}" -type f | ${XARGS} ${REINPLACE_CMD} -e \ | @${FIND} ${PATHFIX_WRKSRC} -name "${file}" -type f | ${XARGS} ${FRAMEWORK_REINPLACE_CMD} -e \ | ||||
's|[(]libdir[)]/locale|(prefix)/share/locale|g ; \ | 's|[(]libdir[)]/locale|(prefix)/share/locale|g ; \ | ||||
s|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \ | s|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \ | ||||
s|[(]LIBDIR[)]/pkgconfig|(PREFIX)/libdata/pkgconfig|g ; \ | s|[(]LIBDIR[)]/pkgconfig|(PREFIX)/libdata/pkgconfig|g ; \ | ||||
s|@libdir@/locale|@prefix@/share/locale|g ; \ | s|@libdir@/locale|@prefix@/share/locale|g ; \ | ||||
s|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|g ; \ | s|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|g ; \ | ||||
s|[{]libdir[}]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \ | s|[{]libdir[}]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \ | ||||
s|[{]LIBDIR[}]/pkgconfig|(PREFIX)/libdata/pkgconfig|g ; \ | s|[{]LIBDIR[}]/pkgconfig|(PREFIX)/libdata/pkgconfig|g ; \ | ||||
s|[(]datadir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \ | s|[(]datadir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \ | ||||
Show All 9 Lines |