mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Fix ocp recipe
Although it doesn't seem to detect SDL.h yet...
This commit is contained in:
@@ -1,28 +1,66 @@
|
||||
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"
|
||||
STATUS_HAIKU="stable"
|
||||
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
|
||||
MESSAGE="This port requires gcc4"
|
||||
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: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:sdl_config
|
||||
"
|
||||
|
||||
|
||||
SOURCE_DIR="code"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd code
|
||||
autoconf
|
||||
CPPFLAGS=-I/boot/common/include LDFLAGS=-L/boot/common/lib ./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
./configure --prefix=$prefix
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd code
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="1994-2012 Niklas Beisert, Stian Skjelstad and others"
|
||||
|
||||
Reference in New Issue
Block a user