libXpm, bump revision, cleanup, fix REQUIRES_devel

This commit is contained in:
begasus
2018-08-15 14:50:38 +02:00
committed by waddlesplash
parent 9119268ee1
commit 9ad43bc212

View File

@@ -11,73 +11,63 @@ COPYRIGHT="1989-95 GROUPE BULL
1996 Lorens Younes" 1996 Lorens Younes"
# TODO: check all the licenses in the COPYING file in the next century. # TODO: check all the licenses in the COPYING file in the next century.
LICENSE="MIT" LICENSE="MIT"
REVISION="3" REVISION="4"
SOURCE_URI="https://www.x.org/releases/individual/lib/libXpm-$portVersion.tar.gz" SOURCE_URI="https://www.x.org/releases/individual/lib/libXpm-$portVersion.tar.bz2"
CHECKSUM_SHA256="2523acc780eac01db5163267b36f5b94374bfb0de26fc0b5a7bee76649fd8501" CHECKSUM_SHA256="fd6a6de3da48de8d1bb738ab6be4ad67f7cb0986c39bd3f7d51dd24f7854bdec"
SOURCE_DIR="libXpm-$portVersion" SOURCE_DIR="libXpm-$portVersion"
ARCHITECTURES="?x86_gcc2 x86 x86_64" ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="?x86_gcc2 x86" SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="4.11.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES=" PROVIDES="
libxpm$secondaryArchSuffix = $portVersion libxpm$secondaryArchSuffix = $portVersion
lib:libxpm$secondaryArchSuffix = 4.11.0 compat >= 4 lib:libXpm$secondaryArchSuffix = $libVersionCompat
cmd:cxpm$secondaryArchSuffix
cmd:sxpm$secondaryArchSuffix
" "
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:cxpm = $portVersion
"
fi
REQUIRES=" REQUIRES="
haiku$secondaryArchSuffix haiku$secondaryArchSuffix
lib:libx11$secondaryArchSuffix lib:libintl$secondaryArchSuffix
lib:libxcb$secondaryArchSuffix lib:libX11$secondaryArchSuffix
lib:libxau$secondaryArchSuffix lib:libXext$secondaryArchSuffix
lib:libXt$secondaryArchSuffix
" "
PROVIDES_devel=" PROVIDES_devel="
libxpm${secondaryArchSuffix}_devel = $portVersion libxpm${secondaryArchSuffix}_devel = $portVersion
devel:libxpm$secondaryArchSuffix = 4.11.0 compat >= 4 devel:libXpm$secondaryArchSuffix = $libVersionCompat
" "
REQUIRES_devel=" REQUIRES_devel="
libxpm$secondaryArchSuffix == $portVersion base libxpm$secondaryArchSuffix == $portVersion base
devel:libx11$secondaryArchSuffix devel:libX11$secondaryArchSuffix
devel:libxcb$secondaryArchSuffix
devel:libxau$secondaryArchSuffix
" "
# looks like all x11 deps are needed
BUILD_REQUIRES=" BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel haiku${secondaryArchSuffix}_devel
devel:libx11$secondaryArchSuffix devel:libintl$secondaryArchSuffix
devel:util_macros$secondaryArchSuffix devel:libX11$secondaryArchSuffix
devel:xproto$secondaryArchSuffix devel:libXext$secondaryArchSuffix
devel:xtrans$secondaryArchSuffix devel:libXt$secondaryArchSuffix
devel:inputproto$secondaryArchSuffix devel:util_macros
devel:kbproto$secondaryArchSuffix devel:xtrans
devel:xcb_proto$secondaryArchSuffix
devel:libxslt$secondaryArchSuffix
devel:libpthread_stubs$secondaryArchSuffix
devel:libxcb$secondaryArchSuffix
devel:libxau$secondaryArchSuffix
devel:xextproto$secondaryArchSuffix
" "
BUILD_PREREQUIRES=" BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix cmd:libtoolize$secondaryArchSuffix
cmd:automake
cmd:autoconf
cmd:autoreconf
cmd:make cmd:make
cmd:pkg_config$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix
" "
defineDebugInfoPackage libxpm$secondaryArchSuffix \
$libDir/libXpm.so.$libVersion
BUILD() BUILD()
{ {
libtoolize --force --copy --install
autoreconf -i
runConfigure ./configure runConfigure ./configure
make $jobArgs make $jobArgs
} }
@@ -86,18 +76,23 @@ INSTALL()
{ {
make 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
# remove libtool library file # remove libtool library file
rm $libDir/libXpm.la rm $libDir/libXpm.la
prepareInstalledDevelLibs \ prepareInstalledDevelLib libXpm
libXpm
fixPkgconfig fixPkgconfig
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir $documentationDir
fi
packageEntries devel \ packageEntries devel \
$developDir $developDir
} }