0
0
Fork 0
haikuports/media-sound/ocp/ocp-0.1.22~git.recipe

84 lines
2.3 KiB
Bash
Raw Permalink Normal View History

SUMMARY="Open Cubic Player"
2018-02-14 00:41:49 +00:00
DESCRIPTION="ocp - Open Cubic Player, a music player ported from DOS."
HOMEPAGE="https://stian.cubic.org/project-ocp.php"
2018-02-14 00:41:49 +00:00
COPYRIGHT="1994-2016 Niklas Beisert, Stian Skjelstad and others"
LICENSE="GNU GPL v2"
REVISION="2"
2018-08-14 07:17:46 +00:00
srcGitRev="835bf803f590512848282bbf74986ebfaec17da3"
SOURCE_URI="https://sourceforge.net/code-snapshots/git/o/op/opencubicplayer/code.git/opencubicplayer-code-$srcGitRev.zip"
2018-02-14 00:41:49 +00:00
CHECKSUM_SHA256="8691b9fa9f512c98307c6e4fb2723c10a4a8f212da8a3af1b9d15d2fe32764fb"
2018-08-14 07:17:46 +00:00
SOURCE_DIR="opencubicplayer-code-$srcGitRev"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
2018-02-14 00:41:49 +00:00
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
ocp$secondaryArchSuffix = $portVersion
2018-02-14 00:41:49 +00:00
cmd:ocp$commandSuffix = $portVersion
cmd:ocp_${portVersion#~*}$commandSuffix = $portVersion
cmd:ocp_curses = $portVersion
cmd:ocp_sdl = $portVersion
cmd:ultrafix.sh = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
2018-02-14 00:41:49 +00:00
lib:libFLAC$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
2013-12-10 02:50:03 +00:00
lib:libncurses$secondaryArchSuffix
2018-02-14 00:41:49 +00:00
lib:libmad$secondaryArchSuffix >= 0.2.1
lib:libogg$secondaryArchSuffix >= 0.8.0
2018-02-14 00:41:49 +00:00
lib:libSDL_1.2$secondaryArchSuffix >= 0.11.4
lib:libvorbis$secondaryArchSuffix >= 0.4.5
2018-02-14 00:41:49 +00:00
lib:libz$secondaryArchSuffix
"
2018-02-14 00:41:49 +00:00
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
2018-02-14 00:41:49 +00:00
devel:libFLAC$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
2018-02-14 00:41:49 +00:00
devel:libmad$secondaryArchSuffix >= 0.2.1
devel:libogg$secondaryArchSuffix >= 0.8.0
2018-02-14 00:41:49 +00:00
devel:libSDL_1.2$secondaryArchSuffix >= 0.11.4
devel:libvorbis$secondaryArchSuffix >= 0.4.5
2018-02-14 00:41:49 +00:00
devel:libz$secondaryArchSuffix >= 1.2.8
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gettext$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:makeinfo
2018-02-14 00:41:49 +00:00
cmd:libtoolize$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:sdl_config$secondaryArchSuffix
"
2018-02-14 00:41:49 +00:00
PATCH()
{
# Broken, missing headers
sed -i '/playgmi TOPDIR/d' Makefile.in
}
BUILD()
{
2018-02-14 00:41:49 +00:00
libtoolize -vfi
chmod +x configure
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs
2013-03-29 14:04:07 +00:00
}
INSTALL()
{
2013-03-29 14:04:07 +00:00
make install
2018-02-14 00:41:49 +00:00
chmod +x $commandBinDir/{ocp-curses,ocp-sdl,ultrafix.sh}
2013-03-29 14:04:07 +00:00
}