mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
w3m: add support for x86 secondary arch.
Also disable x86_gcc2 because w3m needs libgc (from boehm_gc) which is not available on that arch.
This commit is contained in:
@@ -13,43 +13,51 @@ SOURCE_URI="http://downloads.sf.net/w3m/w3m-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3"
|
||||
PATCHES="w3m-$portVersion.patch"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64 ?arm ?ppc"
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm ?ppc"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
w3m = $portVersion
|
||||
w3m$secondaryArchSuffix = $portVersion
|
||||
cmd:w3m = $portVersion
|
||||
cmd:w3mman = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libgc
|
||||
lib:libssl
|
||||
lib:libcrypto
|
||||
lib:libncurses
|
||||
lib:libintl
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgc$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
cmd:nano
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libgc
|
||||
devel:libncurses
|
||||
devel:libssl
|
||||
devel:libintl
|
||||
devel:libgc$secondaryArchSuffix
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel
|
||||
cmd:libtoolize
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:autoconf
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize -fci
|
||||
autoconf
|
||||
runConfigure ./configure \
|
||||
runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir" \
|
||||
--with-editor=${portPackageLinksDir}/cmd~nano/bin/nano \
|
||||
--with-browser=open
|
||||
make
|
||||
|
||||
Reference in New Issue
Block a user