Files
haikuports/media-libs/smpeg2/smpeg2-2.0.0.recipe
OscarL 4ea130e96a smpeg2: fix build with modern GCC. (#7687)
* smpeg2: fix build with modern GCC.

Cleaned up the recipe somehow. The resulting "plaympeg" is still
non-functional, at least with the sample files I have:

On 64 bits: Shows a white, empty window.
On 32 bits: Shows a black, empty window.

That after properly recognizing the file as a video file, give
the correct details of resolution and duration, but repeating
the message:

"Warning: picture block before sequence header block".

Previous revisions (smpeg2-2.0.0-4) showed same behavior.
Only difference is that old version (on 64 bits at least) loads
"add-ons/opengl/Software Pipe" and prints:

"GalliumContext: CreateDisplay: Using llvmpipe (LLVM 12.0.1, 128 bits) driver"

* Exclude plaympeg from the package.

Also, removed an spurious "cmd:smpeg2" in PROVIDES.
2022-12-30 09:32:39 +01:00

91 lines
2.3 KiB
Bash

SUMMARY="An MPEG decoding library"
DESCRIPTION="SMPEG is short for the SDL MPEG library originally developed \
by Loki Software. SMPEG uses MPEG-1 standard as a video display library, \
rather than MPEG-2, since only the MPEG-1 standard is unencumbered with \
software patents in the United States."
HOMEPAGE="http://www.icculus.org/smpeg"
COPYRIGHT="1999-2004 Sam Lantinga, Joe Tennies."
LICENSE="GNU LGPL v2"
REVISION="5"
SOURCE_URI="https://www.libsdl.org/projects/smpeg/release/smpeg2-$portVersion.tar.gz"
CHECKSUM_SHA256="979a65b211744a44fa641a9b6e4d64e64a12ff703ae776bafe3c4c4cd85494b3"
PATCHES=""smpeg2-$portVersion.patchset""
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
smpeg2$secondaryArchSuffix = 2.0.0 compat >= 2
# cmd:plaympeg$secondaryArchSuffix = 2.0.0 compat >= 2
lib:libsmpeg2$secondaryArchSuffix = 2.0_0.0.0 compat >= 2.0_0
lib:libsmpeg2_2.0$secondaryArchSuffix = 2.0.0 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl2_2.0$secondaryArchSuffix
"
PROVIDES_devel="
smpeg2${secondaryArchSuffix}_devel = $portVersion
cmd:smpeg2_config$secondaryArchSuffix
devel:libsmpeg2$secondaryArchSuffix = 2.0_0.0.0 compat >= 2.0_0
devel:libsmpeg2_2.0$secondaryArchSuffix = 2.0.0 compat >= 2
"
REQUIRES_devel="
smpeg2$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsdl2_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
libtoolize --copy --force --install
aclocal --install -I acinclude
automake --foreign --add-missing
autoconf
chmod +x configure
runConfigure ./configure \
--disable-dependency-tracking \
--disable-rpath \
--enable-shared \
--disable-static \
--disable-debug \
--disable-sdltest \
# --enable-mmx \
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libsmpeg2.la
# Exclude from the package, for now, as it doesn't seems to work right.
rm $binDir/plaympeg
rm -rf $manDir
prepareInstalledDevelLibs libsmpeg2 libsmpeg2-2.0
fixDevelopLibDirReferences $binDir/smpeg2-config
fixPkgconfig
# devel package
packageEntries devel \
$binDir $dataDir $developDir
}