graphics/podofo: Convert REINPLACE_CMD to patch file
This commit is contained in:
parent
a9a4218ac9
commit
3e0e341fb5
2 changed files with 9 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue