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="8" SOURCE_URI="https://github.com/icculus/smpeg/archive/refs/tags/release_0_4_5.tar.gz" CHECKSUM_SHA256="e2e53bfd2e6401e2c29e5eb3929be0e8698bc9e4c9d731751f67e77b408f1f74" SOURCE_DIR="smpeg-release_0_4_5" PATCHES="smpeg-$portVersion.patchset" ARCHITECTURES="all" SECONDARY_ARCHITECTURES="x86" PROVIDES=" smpeg$secondaryArchSuffix = 0.4.5 compat >= 0 cmd:glmovie$secondaryArchSuffix = 0.4.5 compat >= 0 cmd:plaympeg$secondaryArchSuffix = 0.4.5 compat >= 0 cmd:smpeg = 0.4.5 compat >= 0 lib:libsmpeg$secondaryArchSuffix = 0.4_0.1.4 compat >= 0.4_0 lib:libsmpeg_0.4$secondaryArchSuffix = 0.1.4 compat >= 0 " REQUIRES=" haiku$secondaryArchSuffix lib:libGL$secondaryArchSuffix lib:libglu$secondaryArchSuffix lib:libSDL_1.2$secondaryArchSuffix " PROVIDES_devel=" smpeg${secondaryArchSuffix}_devel = $portVersion cmd:smpeg_config$secondaryArchSuffix devel:libsmpeg$secondaryArchSuffix = 0.4_0.1.4 compat >= 0.4_0 devel:libsmpeg_0.4$secondaryArchSuffix = 0.1.4 compat >= 0 " REQUIRES_devel=" smpeg$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libglu$secondaryArchSuffix devel:libsdl$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() { rm -f acinclude.m4 rm -f aclocal.m4 echo "AC_CONFIG_MACRO_DIR([acinclude]) > configure.in" libtoolize --copy --force --install aclocal --install -I acinclude automake --foreign --add-missing autoconf chmod +x configure runConfigure ./configure --disable-static make $jobArgs } INSTALL() { make install rm $libDir/libsmpeg.la prepareInstalledDevelLibs libsmpeg \ libsmpeg-0.4 fixDevelopLibDirReferences $binDir/smpeg-config fixPkgconfig # devel package packageEntries devel \ $developDir $binDir/smpeg-config \ $dataDir }