Fix pkgconfig files.

PR:		254315
Reported by:	Olga Smirnova
Submitted by:	rodrigo
This commit is contained in:
Tilman Keskinoz 2021-04-12 09:51:30 +02:00
parent ef8598e917
commit efaa198b60
3 changed files with 36 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= lucene++
PORTVERSION= 3.0.8
PORTREVISION= 1
DISTVERSIONPREFIX= rel_
CATEGORIES= textproc

View File

@ -0,0 +1,18 @@
--- src/config/contrib/liblucene++-contrib.pc.in.orig
+++ src/config/contrib/liblucene++-contrib.pc.in
@@ -1,13 +1,12 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}/bin
-libdir=@LIB_DESTINATION@
+libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/include/lucene++
lib=lucene++-contrib
Name: liblucene++-contrib
Description: Contributions for Lucene++ - a C++ search engine, ported from the popular Apache Lucene
Version: @lucene++_VERSION@
-Libs: -L@LIB_DESTINATION@ -l${lib}
+Libs: -L${libdir} -l${lib}
Cflags: -I${includedir}
Requires: liblucene++ = @lucene++_VERSION@
-

View File

@ -0,0 +1,17 @@
--- src/config/core/liblucene++.pc.in.orig
+++ src/config/core/liblucene++.pc.in
@@ -1,12 +1,11 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}/bin
-libdir=@LIB_DESTINATION@
+libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/include/lucene++
lib=lucene++
Name: liblucene++
Description: Lucene++ - a C++ search engine, ported from the popular Apache Lucene
Version: @lucene++_VERSION@
-Libs: -L@LIB_DESTINATION@ -l${lib}
+Libs: -L${libdir} -l${lib}
Cflags: -I${includedir}
-