mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
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.
This commit is contained in:
@@ -12,7 +12,7 @@ COPYRIGHT="1994-2012 Niklas Beisert, Stian Skjelstad and others"
|
||||
## media-libs/flac >= 1.2.1"
|
||||
## ncurses zlib ... cf. ocp.spec
|
||||
|
||||
ARCHITECTURES="?x86 ?x86_64"
|
||||
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.
|
||||
@@ -20,7 +20,7 @@ if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
else
|
||||
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
ocp$secondaryArchSuffix = $portVersion
|
||||
@@ -48,6 +48,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:sdl_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
@@ -58,7 +59,6 @@ SOURCE_DIR="code"
|
||||
BUILD()
|
||||
{
|
||||
autoconf
|
||||
export CFLAGS="$(sdl-config --cflags)"
|
||||
./configure --prefix=$prefix
|
||||
make
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user