2012-02-23 21:30:08 +00:00
|
|
|
# Template build file for 'netsurf'.
|
|
|
|
pkgname=netsurf
|
2014-02-04 21:31:43 +00:00
|
|
|
version=3.0
|
|
|
|
revision=1
|
|
|
|
hostmakedepends="pkg-config perl gperf flex nsgenbind"
|
|
|
|
makedepends="
|
|
|
|
libjpeg-turbo-devel libmng-devel libpng-devel>=1.6 libxml2-devel libcurl-devel
|
2014-02-03 08:56:34 +00:00
|
|
|
lcms-devel libwebp-devel>=0.4.0 libparserutils-devel libwapcaplet-devel
|
2014-02-05 08:22:57 +00:00
|
|
|
libhubbub-devel>=0.2.0 libcss-devel libnsbmp-devel libnsgif-devel
|
|
|
|
libdom-devel>=1:0.0.1 gtk+-devel js-devel desktop-file-utils shared-mime-info"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="desktop-file-utils shared-mime-info"
|
2014-02-04 21:31:43 +00:00
|
|
|
short_desc="Free, open source web browser written in C"
|
2012-02-23 21:30:08 +00:00
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2012-02-23 23:50:53 +00:00
|
|
|
license="GPL-2, MIT"
|
2012-06-06 11:02:05 +00:00
|
|
|
homepage="http://www.netsurf-browser.org"
|
2014-02-04 21:31:43 +00:00
|
|
|
distfiles="http://download.netsurf-browser.org/netsurf/releases/source/${pkgname}-${version}-src.tar.gz"
|
|
|
|
checksum=7c6a48d3cc3e9a3e3a51b532ddf60f7697e97bf8b61a6d3b2ced1a2e89fbccc6
|
2012-02-23 21:30:08 +00:00
|
|
|
|
|
|
|
do_build() {
|
2014-02-04 21:31:43 +00:00
|
|
|
make ${makejobs} \
|
|
|
|
PREFIX=/usr \
|
|
|
|
NETSURF_USE_BMP=YES \
|
|
|
|
NETSURF_USE_WEBP=YES \
|
|
|
|
NETSURF_USE_VIDEO=NO \
|
|
|
|
NETSURF_USE_MOZJS=YES \
|
|
|
|
NETSURF_USE_HARU_PDF=NO
|
2012-02-23 21:30:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-02-04 21:31:43 +00:00
|
|
|
make ${makejobs} \
|
|
|
|
PREFIX=/usr \
|
|
|
|
NETSURF_USE_BMP=YES \
|
|
|
|
NETSURF_USE_WEBP=YES \
|
|
|
|
NETSURF_USE_VIDEO=NO \
|
|
|
|
NETSURF_USE_MOZJS=YES \
|
|
|
|
NETSURF_USE_HARU_PDF=NO \
|
|
|
|
DESTDIR=${DESTDIR} install
|
2012-02-23 21:30:08 +00:00
|
|
|
|
2012-02-23 23:25:30 +00:00
|
|
|
# Install app icon (from Ubuntu)
|
2014-02-04 21:31:43 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.png 0644 usr/share/pixmaps
|
2012-02-23 21:30:08 +00:00
|
|
|
|
|
|
|
# Install .desktop file (from Arch)
|
2014-02-04 21:31:43 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.desktop 0644 usr/share/applications
|
2012-02-23 21:30:08 +00:00
|
|
|
|
|
|
|
# Install license
|
2014-02-04 21:31:43 +00:00
|
|
|
vinstall COPYING 0644 usr/share/licenses/${pkgname}
|
|
|
|
|
|
|
|
# Install wrapper for proper localization.
|
|
|
|
mv ${DESTDIR}/usr/bin/netsurf ${DESTDIR}/usr/bin/netsurf.elf
|
|
|
|
vinstall ${FILESDIR}/netsurf.sh 755 usr/bin netsurf
|
2012-02-23 21:30:08 +00:00
|
|
|
}
|