mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
90 lines
2.1 KiB
Bash
90 lines
2.1 KiB
Bash
SUMMARY="An implementation of the smjpeg decoding library"
|
|
DESCRIPTION="smjpeg is short for the SDL Motion JPEG library, originally \
|
|
developed by Loki Software, It is used to playback motion JPEGs and runs \
|
|
on just about any platform. It comes with one sample decoder, smjpeg_decode \
|
|
(console, no UI)."
|
|
HOMEPAGE="http://www.icculus.org/smjpeg"
|
|
COPYRIGHT="1999-2004 Sam Lantinga, Joe Tennies."
|
|
LICENSE="GNU LGPL v2"
|
|
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
|
|
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
|
|
lib:libGL$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
smjpeg${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libsmjpeg$secondaryArchSuffix = $libVersionCompat
|
|
devel:libsmjpeg_0.2$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
smjpeg$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libsdl$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
rm -f aclocal.m4
|
|
rm -f acinclude.m4
|
|
libtoolize --force --copy --install
|
|
aclocal
|
|
automake --foreign --add-missing
|
|
autoconf
|
|
runConfigure ./configure --enable-shared \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# 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
|
|
}
|