2010-11-18 16:51:37 +02:00
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := netsurf
2012-04-04 07:55:31 +03:00
PKG_VERSION := 2.9
2010-11-18 16:51:37 +02:00
PKG_RELEASE := 1
2012-04-04 07:55:31 +03:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) -src.tar.gz
PKG_SOURCE_URL := http://www.netsurf-browser.org/downloads/releases/
PKG_MD5SUM := d5d9d21a9a14f7e9cc502cc617298baa
2010-11-20 13:44:08 +02:00
2010-11-18 16:51:37 +02:00
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / n e t s u r f
2011-01-17 05:39:00 +02:00
MAINTAINER:= "Xiangfu Liu" <xiangfu@sharism.cc>
2010-11-18 16:51:37 +02:00
SUBMENU:= Web
SECTION:= network
CATEGORY:= Network
TITLE:= netsurf
URL:= http://www.netsurf-browser.org/
2012-04-04 07:55:31 +03:00
DEPENDS:= +libsdl +libcss +libhubbub +libparserutils +libnsfb +libxml2 +libcurl +libfreetype +libnsbmp +libnsgif
2010-11-18 16:51:37 +02:00
e n d e f
d e f i n e P a c k a g e / n e t s u r f / d e s c r i p t i o n
NetSurf is a free, open source web browser. It is written in C and released under the GNU Public Licence version 2. NetSurf has its own layout and rendering engine entirely written from scratch. It is small and capable of handling many of the web standards in use today.
e n d e f
2010-11-20 13:44:08 +02:00
MAKE_FLAGS += "TARGET=framebuffer" \
"PREFIX=/usr"
2012-04-04 07:55:31 +03:00
#MAKE_FLAGS += "TARGET=gtk" \
# "PREFIX=/usr"
2010-11-20 13:44:08 +02:00
2010-11-18 16:51:37 +02:00
TARGET_CFLAGS += -I$( STAGING_DIR) /usr/include/SDL
2012-04-04 07:55:31 +03:00
#TARGET_CFLAGS += "-I$(STAGING_DIR)/usr/include/gtk-2.0"
2010-11-20 13:44:08 +02:00
TARGET_LDFLAGS += -Wl,-rpath-link= $( STAGING_DIR) /usr/lib
2010-11-18 16:51:37 +02:00
d e f i n e B u i l d / P r e p a r e
$( call Build/Prepare/Default)
$( CP) $( FILES_DIR) /Makefile.config $( PKG_BUILD_DIR)
e n d e f
d e f i n e P a c k a g e / n e t s u r f / i n s t a l l
$( INSTALL_DIR) \
2010-11-20 13:44:08 +02:00
$( 1) /usr/bin $( 1) /usr/share/netsurf
2010-11-18 16:51:37 +02:00
$( INSTALL_BIN) \
2012-04-04 07:55:31 +03:00
$( PKG_BUILD_DIR) /nsfb \
$( 1) /usr/bin/netsurf
cp -rfL \
$( PKG_BUILD_DIR) /framebuffer/res/* \
$( 1) /usr/share/netsurf/
2010-11-20 13:44:08 +02:00
$( INSTALL_DATA) \
2012-04-04 07:55:31 +03:00
$( FILES_DIR) /Choices \
2010-11-20 13:44:08 +02:00
$( 1) /usr/share/netsurf/
2012-04-04 07:55:31 +03:00
#That's really dirty... For some reason overriding font paths from Makefile doesn't work
mkdir -p $( 1) /usr/share/netsurf/usr/share/fonts
ln -s ../../../../fonts/ttf-dejavu $( 1) /usr/share/netsurf/usr/share/fonts/ttf-dejavu
e n d e f
d e f i n e P a c k a g e / n e t s u r f / p o s t i n s t
#!/bin/sh
m k d i r - p $$ { I P K G _ I N S T R O O T } / r o o t / . n e t s u r f & & c p $$ { I P K G _ I N S T R O O T } / u s r / s h a r e / n e t s u r f / C h o i c e s $$ { I P K G _ I N S T R O O T } / r o o t / . n e t s u r f / C h o i c e s
2010-11-18 16:51:37 +02:00
e n d e f
$( eval $ ( call BuildPackage ,netsurf ) )