libopenmpt-modplug: fix (#6336)

The devel subpackage should include the headers, but they doesn't gets copied, but this headers can conflict with the ones provided by modplug ,so define it as conflicting package.
This commit is contained in:
extrowerk
2021-10-26 21:39:45 +01:00
committed by GitHub
parent ed11128d7e
commit 590328fce8

View File

@@ -6,7 +6,7 @@ HOMEPAGE="https://openmpt.org/"
COPYRIGHT="2004-2020 OpenMPT contributors
1997-2003 Olivier Lapicque"
LICENSE="BSD (3-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://lib.openmpt.org/files/libopenmpt-modplug/libopenmpt-modplug-$portVersion-openmpt1.tar.gz"
CHECKSUM_SHA256="ecce1a0eecfdb0b5824cab89c270dce59596295a2c17c2b043215ecf4d7c4ff7"
SOURCE_DIR="libopenmpt-modplug-$portVersion-openmpt1"
@@ -35,6 +35,9 @@ REQUIRES_devel="
libopenmpt_modplug$secondaryArchSuffix == $portVersion base
devel:libopenmpt$secondaryArchSuffix
"
CONFLICTS_devel="
libmodplug${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
@@ -64,6 +67,10 @@ BUILD()
INSTALL()
{
make install
mkdir -p $includeDir
cp -r libmodplug $includeDir
prepareInstalledDevelLib libopenmpt_modplug
rm $developLibDir/*.la
fixPkgconfig