Files
haikuports/media-sound/ocp/ocp-0.1.21_git.recipe
François Revol 669491a117 ocp: Update recipe and patch
Fix all installation paths, and use proper settings directory.
2014-07-19 11:03:56 +00:00

78 lines
2.0 KiB
Plaintext

SUMMARY="ocp - Open Cubic Player"
DESCRIPTION="
ocp - Open Cubic Player, a music player ported from DOS.
"
HOMEPAGE="http://stian.cubic.org/project-ocp.php"
SRC_URI="git://git.code.sf.net/p/opencubicplayer/code#f97d87f960624de013826e9c2970404f90eef211"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="1994-2012 Niklas Beisert, Stian Skjelstad and others"
## media-libs/flac >= 1.2.1"
## ncurses zlib ... cf. ocp.spec
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
ocp$secondaryArchSuffix = $portVersion
cmd:ocp = $portVersion
cmd:ocp_0.1.21 = $portVersion
cmd:ocp_curses = $portVersion
cmd:ocp_sdl = $portVersion
cmd:ultrafix.sh = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libSDL_1.2$secondaryArchSuffix >= 0.11.4
lib:libiconv$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libogg$secondaryArchSuffix >= 0.8.0
lib:libvorbis$secondaryArchSuffix >= 0.4.5
lib:libFLAC$secondaryArchSuffix
lib:libmad$secondaryArchSuffix >= 0.2.1
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libSDL_1.2$secondaryArchSuffix >= 0.11.4
devel:libiconv$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libz$secondaryArchSuffix >= 1.2.8
devel:libogg$secondaryArchSuffix >= 0.8.0
devel:libvorbis$secondaryArchSuffix >= 0.4.5
devel:libFLAC$secondaryArchSuffix
devel:libmad$secondaryArchSuffix >= 0.2.1
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gettext$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:makeinfo
cmd:pkg_config$secondaryArchSuffix
cmd:sdl_config$secondaryArchSuffix
"
PATCHES="ocp-0.1.21_git.patchset"
SOURCE_DIR="code"
BUILD()
{
autoconf
runConfigure ./configure
make
}
INSTALL()
{
make install
}