mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
smjpeg, disable static library, cleanup (#8459)
This commit is contained in:
@@ -6,21 +6,27 @@ on just about any platform. It comes with one sample decoder, smjpeg_decode \
|
||||
HOMEPAGE="http://www.icculus.org/smjpeg"
|
||||
COPYRIGHT="1999-2004 Sam Lantinga, Joe Tennies."
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="ftp://ftp.gameaholic.com/pub/mirrors/ftp.lokigames.com/open-source/smjpeg/smjpeg-0.2.1.tar.gz
|
||||
svn://svn.icculus.org/smjpeg/trunk/"
|
||||
CHECKSUM_SHA256="d0fdbb346e78bde7c9d3dc10097a8d29cedb0d4d0a5959e6b11b78bae2094a32"
|
||||
REVISION="4"
|
||||
SOURCE_URI="https://github.com/icculus/smjpeg/archive/refs/tags/release_0_2_1.tar.gz"
|
||||
CHECKSUM_SHA256="9d4ad0d05474130280ff9ea4195ac5576904422d7d527493cb09dc4895172069"
|
||||
SOURCE_DIR="smjpeg-release_0_2_1"
|
||||
|
||||
ARCHITECTURES="?all x86_gcc2 x86"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
libVersion="0.0.1"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
smjpeg$secondaryArchSuffix = $portVersion compat >= 0
|
||||
cmd:smjpeg_decode$secondaryArchSuffix = $portVersion compat >= 0
|
||||
cmd:smjpeg_encode$secondaryArchSuffix = $portVersion compat >= 0
|
||||
lib:libsmjpeg$secondaryArchSuffix = 0.2_0.0.2 compat >= 0.2_0
|
||||
lib:libsmjpeg_0.2$secondaryArchSuffix = 0.0.2 compat >= 0
|
||||
smjpeg$secondaryArchSuffix = $portVersion
|
||||
lib:libsmjpeg_0.2$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
cmd:smjpeg_decode = $portVersion
|
||||
cmd:smjpeg_encode = 0.1
|
||||
"
|
||||
fi
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
libsdl$secondaryArchSuffix
|
||||
@@ -29,8 +35,8 @@ REQUIRES="
|
||||
|
||||
PROVIDES_devel="
|
||||
smjpeg${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libsmjpeg$secondaryArchSuffix = 0.2_0.0.2 compat >= 0.2_0
|
||||
devel:libsmjpeg_0.2$secondaryArchSuffix = 0.0.2 compat >= 0
|
||||
devel:libsmjpeg$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libsmjpeg_0.2$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
smjpeg$secondaryArchSuffix == $portVersion base
|
||||
@@ -58,7 +64,8 @@ BUILD()
|
||||
aclocal
|
||||
automake --foreign --add-missing
|
||||
autoconf
|
||||
runConfigure ./configure --enable-shared
|
||||
runConfigure ./configure --enable-shared \
|
||||
--disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -66,10 +73,17 @@ INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libsmjpeg
|
||||
# remove libtool file
|
||||
rm -f $libDir/libsmjpeg.la
|
||||
|
||||
prepareInstalledDevelLibs libsmjpeg libsmjpeg-0.2
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
rm -rf $binDir
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user