libxpm, disable x86_gcc2, disable static library (#8579)

This commit is contained in:
Schrijvers Luc
2023-05-04 10:29:58 +02:00
committed by GitHub
parent e0ce709ffd
commit b71268bbff
2 changed files with 17 additions and 123 deletions

View File

@@ -1,108 +0,0 @@
SUMMARY="X.Org Xpm library"
DESCRIPTION="The X.Org project provides an open source implementation of the \
X Window System. \
The development work is being done in conjunction with the freedesktop.org \
community. \
The X.Org Foundation is the educational non-profit corporation whose \
Board serves this effort, and whose Members lead this work."
HOMEPAGE="https://www.x.org/"
COPYRIGHT="1989-95 GROUPE BULL
1998 Arnaud LE HORS
1996 Lorens Younes"
# TODO: check all the licenses in the COPYING file in the next century.
LICENSE="MIT"
REVISION="4"
SOURCE_URI="https://www.x.org/releases/individual/lib/libXpm-$portVersion.tar.gz"
CHECKSUM_SHA256="53ddf924441b7ed2de994d4934358c13d9abf4828b1b16e1255ade5032b31df7"
SOURCE_DIR="libXpm-$portVersion"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libxpm$secondaryArchSuffix = $portVersion
lib:libxpm$secondaryArchSuffix = $portVersion
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:cxpm = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix
lib:libx11$secondaryArchSuffix
lib:libxcb$secondaryArchSuffix
lib:libxau$secondaryArchSuffix
"
PROVIDES_devel="
libxpm${secondaryArchSuffix}_devel = $portVersion
devel:libxpm$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libxpm$secondaryArchSuffix == $portVersion base
devel:libx11$secondaryArchSuffix
devel:libxcb$secondaryArchSuffix
devel:libxau$secondaryArchSuffix
"
# looks like all x11 deps are needed
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libx11$secondaryArchSuffix
devel:util_macros$secondaryArchSuffix
devel:xproto$secondaryArchSuffix
devel:xtrans$secondaryArchSuffix
devel:inputproto$secondaryArchSuffix
devel:kbproto$secondaryArchSuffix
devel:xcb_proto$secondaryArchSuffix
devel:libxslt$secondaryArchSuffix
devel:libpthread_stubs$secondaryArchSuffix
devel:libxcb$secondaryArchSuffix
devel:libxau$secondaryArchSuffix
devel:xextproto$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:automake
cmd:autoconf
cmd:autoreconf
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
libtoolize --force --copy --install
autoreconf -i
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# remove libtool library file
rm $libDir/libXpm.la
prepareInstalledDevelLibs \
libXpm
fixPkgconfig
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir $documentationDir
fi
packageEntries devel \
$developDir
}
TEST()
{
make check
}

View File

@@ -11,21 +11,28 @@ COPYRIGHT="1989-95 GROUPE BULL
1996 Lorens Younes"
# TODO: check all the licenses in the COPYING file in the next century.
LICENSE="MIT"
REVISION="4"
REVISION="5"
SOURCE_URI="https://www.x.org/releases/individual/lib/libXpm-$portVersion.tar.bz2"
CHECKSUM_SHA256="fd6a6de3da48de8d1bb738ab6be4ad67f7cb0986c39bd3f7d51dd24f7854bdec"
SOURCE_DIR="libXpm-$portVersion"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="4.11.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libxpm$secondaryArchSuffix = $portVersion
cmd:cxpm$secondaryArchSuffix
cmd:sxpm$secondaryArchSuffix
cmd:cxpm$commandSuffix
cmd:sxpm$commandSuffix
lib:libXpm$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
@@ -67,7 +74,9 @@ defineDebugInfoPackage libxpm$secondaryArchSuffix \
BUILD()
{
runConfigure ./configure
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
--disable-static
make $jobArgs
}
@@ -75,15 +84,8 @@ INSTALL()
{
make install
if [ -z "$secondaryArchSuffix" ]; then
install -m 0755 -d "$developDocDir"
install -m 0644 -t "$developDocDir" README
#maybe_manDir="$manDir"
else
#rm -rf "$manDir"
rm -rf "$developDir/documentation"
#maybe_manDir=
fi
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" README
# remove libtool library file
rm $libDir/libXpm.la