From 53f9afc3e15c76eda0e6687f157139ae5f255de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 9 Dec 2013 13:41:24 +0100 Subject: [PATCH] Fix ocp recipe Although it doesn't seem to detect SDL.h yet... --- media-sound/ocp/ocp-0.1.21_git.recipe | 66 +++++++++++++++++++++------ 1 file changed, 52 insertions(+), 14 deletions(-) diff --git a/media-sound/ocp/ocp-0.1.21_git.recipe b/media-sound/ocp/ocp-0.1.21_git.recipe index 0abc28e07..fec139bb0 100644 --- a/media-sound/ocp/ocp-0.1.21_git.recipe +++ b/media-sound/ocp/ocp-0.1.21_git.recipe @@ -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"