graphics/podofo: Convert REINPLACE_CMD to patch file

This commit is contained in:
Po-Chuan Hsieh 2021-11-01 21:23:57 +08:00
parent a9a4218ac9
commit 3e0e341fb5
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 9 additions and 4 deletions

View file

@ -42,8 +42,4 @@ PNG_LIB_DEPENDS= libpng.so:graphics/png
TIFF_CMAKE_BOOL= WANT_TIFF
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
post-patch:
@${REINPLACE_CMD} -e 's|$${LIBDIRNAME}/pkgconfig|${PREFIX}/libdata/pkgconfig|' ${WRKSRC}/src/podofo/CMakeLists.txt
@${REINPLACE_CMD} -e '/^Libs: / s|-@PODOFO_VERSION_MAJOR@||' ${WRKSRC}/src/podofo/libpodofo.pc.in
.include <bsd.port.mk>

View file

@ -22,3 +22,12 @@
CLEAN_DIRECT_OUTPUT 1
OUTPUT_NAME "podofo"
COMPILE_FLAGS "-DBUILDING_PODOFO"
@@ -320,7 +320,7 @@ IF(PODOFO_BUILD_SHARED)
@ONLY)
INSTALL(
FILES "${PoDoFo_BINARY_DIR}/libpodofo.pc"
- DESTINATION "${LIBDIRNAME}/pkgconfig")
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig")
ELSE(PKG_CONFIG_FOUND)
MESSAGE("Pkg-config not found. No pkg-config file will be created.")
ENDIF(PKG_CONFIG_FOUND)