mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
netsurf: build on x86 and x86_64
* fix dependencies and build system * check doesn't build correctly with haikuporter on x86_64 beause of a Python bug (hard link extraction in tar files)
This commit is contained in:
@@ -3,44 +3,41 @@ DESCRIPTION="
|
||||
LibCSS is a CSS (Cascading Style Sheet) parser and selection engine.
|
||||
"
|
||||
HOMEPAGE="http://www.netsurf-browser.org/projects/libcss/"
|
||||
SRC_URI="http://download.netsurf-browser.org/libs/releases/libcss-0.3.0-src.tar.gz"
|
||||
COPYRIGHT="2007-2014 J-M Bell"
|
||||
LICENSE="MIT"
|
||||
SRC_URI="http://download.netsurf-browser.org/libs/releases/libcss-$portVersion-src.tar.gz"
|
||||
CHECKSUM_SHA256="4065dbfdfc9926e14a2f0f2c600fc72abac97bd20769ac6a908ac50226e95e1a"
|
||||
REVISION="2"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="2007-2014 J-M Bell"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PATCHES="libcss-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
libcss$secondaryArchSuffix = $portVersion
|
||||
lib:libcss$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libparserutils${secondaryArchSuffix}
|
||||
lib:libwapcaplet${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libparserutils${secondaryArchSuffix} >= 0.1.1
|
||||
devel:libwapcaplet${secondaryArchSuffix} >= 0.1.1
|
||||
netsurf_buildsystem >= 0
|
||||
|
||||
|
||||
devel:libiconv
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:perl
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
netsurf_buildsystem >= 0
|
||||
"
|
||||
|
||||
PATCHES="libcss-0.3.0.patchset"
|
||||
BUILD()
|
||||
{
|
||||
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem
|
||||
@@ -50,10 +47,15 @@ INSTALL()
|
||||
{
|
||||
make install PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem
|
||||
mkdir -p $prefix/develop/lib
|
||||
mkdir -p $(dirname $includeDir)
|
||||
mv $prefix/include $includeDir
|
||||
|
||||
prepareInstalledDevelLib libcss
|
||||
fixPkgconfig libcss
|
||||
packageEntries devel $developDir
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
@@ -62,7 +64,12 @@ TEST()
|
||||
LDFLAGS="-liconv -lwapcaplet -lparserutils"
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
libcss${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libcss$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libcss$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user