libxml, add missing pkgconfig file (#10669)

This commit is contained in:
Schrijvers Luc
2024-07-07 09:05:37 +02:00
committed by GitHub
parent e19e02c894
commit 98d8a1551d

View File

@@ -8,7 +8,7 @@ document from scratch with C++ objects."
HOMEPAGE="http://www.grinninglizard.com/tinyxml/index.html"
COPYRIGHT="2001-2010 Lee Thomason"
LICENSE="Zlib"
REVISION="5"
REVISION="6"
SOURCE_URI="http://downloads.sourceforge.net/project/tinyxml/tinyxml/$portVersion/tinyxml_2_6_2.tar.gz"
CHECKSUM_SHA256="15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593"
SOURCE_DIR="tinyxml"
@@ -28,10 +28,10 @@ REQUIRES="
PROVIDES_devel="
tinyxml${secondaryArchSuffix}_devel = $portVersion compat >= 2
devel:libtinyxml${secondaryArchSuffix} = $portVersion compat >= 2
devel:libtinyxml$secondaryArchSuffix = $portVersion compat >= 2
"
REQUIRES_devel="
tinyxml${secondaryArchSuffix} == $portVersion base
tinyxml$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
@@ -57,7 +57,22 @@ INSTALL()
cp -R tiny*.h $includeDir
cp libtinyxml.so* $libDir
prepareInstalledDevelLibs libtinyxml
prepareInstalledDevelLib libtinyxml
# add missing pkgconfig file
mkdir -p $developLibDir/pkgconfig
cat > $developLibDir/pkgconfig/tinyxml.pc << EOF
prefix=$prefix
exec_prefix=$prefix
libdir=$libDir
includedir=$includeDir
Name: TinyXML
Description: A simple, small, C++ XML parser
Version: $portVersion
Libs: -L\${libdir} -ltinyxml
Cflags: -I\${includedir}
EOF
# devel package
packageEntries devel \