Files
haikuports/www-client/netsurf/netsurf-3.8.recipe
miqlas b61c1f31d7 Netsurf: fix packaging, enable some features (#3589)
* Netsurf: fix packaging, enable some features
2019-01-27 10:44:17 +01:00

100 lines
3.0 KiB
Bash

SUMMARY="A lightweight multi-platform web browser"
DESCRIPTION="NetSurf provides a small, fast, comprehensive multiplatform Web browsing \
solution supporting HTML 4.01 and CSS standards.
NetSurf is an open source web browser which uses its own layout engine. \
Its design goal is to be lightweight and portable. NetSurf provides \
features including tabbed browsing, bookmarks and page thumbnailing."
HOMEPAGE="https://www.netsurf-browser.org/"
COPYRIGHT="2003-2018 The NetSurf Browser project"
LICENSE="GNU GPL v2"
REVISION="2"
# Do NOT use the netsurf-all package. It contains a bunch of subprojects which
# we build as separate packages so they can easily be used by other projects.
SOURCE_URI="https://download.netsurf-browser.org/netsurf/releases/source/netsurf-$portVersion-src.tar.gz"
CHECKSUM_SHA256="a00ee6f3e7ea7ae50c6c1f95c81d381359171bf6874e58891f21c550090c5542"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="x86"
fi
PROVIDES="
netsurf$secondaryArchSuffix = $portVersion
app:NetSurf = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcss$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libdom$secondaryArchSuffix
lib:libexpat$secondaryArchSuffix
lib:libhubbub$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libnsbmp$secondaryArchSuffix
lib:libnsgif$secondaryArchSuffix
lib:libnslog$secondaryArchSuffix
lib:libnspsl$secondaryArchSuffix
lib:libnsutils$secondaryArchSuffix
lib:libparserutils$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libsvgtiny$secondaryArchSuffix
lib:libutf8proc$secondaryArchSuffix
lib:libwapcaplet$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcheck$secondaryArchSuffix
devel:libcss$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libdom$secondaryArchSuffix
devel:libexpat$secondaryArchSuffix
devel:libhubbub$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libnsbmp$secondaryArchSuffix
devel:libnsgif$secondaryArchSuffix
devel:libnslog$secondaryArchSuffix
devel:libnspsl$secondaryArchSuffix
devel:libnsutils$secondaryArchSuffix
devel:libparserutils$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libsvgtiny$secondaryArchSuffix
devel:libutf8proc$secondaryArchSuffix
devel:libwapcaplet$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
html_parser
cmd:bison
cmd:flex
cmd:gcc$secondaryArchSuffix
cmd:git
cmd:gperf
cmd:make
cmd:nsgenbind
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
make TARGET=beos PREFIX=$prefix/ DESTDIR=$appsDir NETSURF_BEOS_BIN="/" \
BUILD=release $jobArgs
}
INSTALL()
{
make TARGET=beos PREFIX=$prefix/ DESTDIR=$appsDir NETSURF_BEOS_BIN="/" \
BUILD=release install
# Resources not needed since 3.6
rm -rf $appsDir/boot
addAppDeskbarSymlink $appsDir/NetSurf
}