Files
haikuports/media-sound/ocp/ocp-0.1.21_git.recipe
François Revol ef7b9215e7 ocp: prerequire pkg_config*
OCP actually uses pkg-config to detect SDL, so we require the
secondary arch version of it to make sure it searches the correct
pc files.

Tested on x86.
2013-12-11 09:43:49 +01:00

70 lines
1.8 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"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="1994-2012 Niklas Beisert, Stian Skjelstad and others"
#DEPEND="media-libs/libvorbis >= 1.3.1
# media-libs/libogg >= 1.2.2
# sys-devel/gettext >= 0.18.1.1
# media-libs/libsdl >= 1.2.14"
## 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
"
REQUIRES="
haiku$secondaryArchSuffix
libsdl$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libogg$secondaryArchSuffix >= 0.8.0
lib:libvorbis$secondaryArchSuffix >= 0.4.5
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libsdl_1.2$secondaryArchSuffix >= 0.10
devel:libiconv$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libz$secondaryArchSuffix >= 1.2.8
devel:libogg$secondaryArchSuffix >= 0.8.0
devel:libvorbis$secondaryArchSuffix >= 0.4.5
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:sdl_config$secondaryArchSuffix
"
SOURCE_DIR="code"
# TODO: fix configure.ac to use sdl-config
# XXX: dwmixfa_8087.c:39:2: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
BUILD()
{
autoconf
./configure --prefix=$prefix
make
}
INSTALL()
{
make install
}