Root/netsurf/Makefile

1# This is free software, licensed under the GNU General Public License v2.
2# See /LICENSE for more information.
3
4include $(TOPDIR)/rules.mk
5
6PKG_NAME:=netsurf
7PKG_VERSION:=2.9
8PKG_RELEASE:=1
9
10PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
11PKG_SOURCE_URL:=http://www.netsurf-browser.org/downloads/releases/
12PKG_MD5SUM:=d5d9d21a9a14f7e9cc502cc617298baa
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/netsurf
17    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
18    SUBMENU:=Web
19    SECTION:=network
20    CATEGORY:=Network
21    TITLE:=netsurf
22    URL:=http://www.netsurf-browser.org/
23    DEPENDS:=+libsdl +libcss +libhubbub +libparserutils +libnsfb +libxml2 +libcurl +libfreetype +libnsbmp +libnsgif
24endef
25
26define Package/netsurf/description
27    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.
28endef
29
30MAKE_FLAGS += "TARGET=framebuffer" \
31              "PREFIX=/usr"
32#MAKE_FLAGS += "TARGET=gtk" \
33# "PREFIX=/usr"
34
35TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
36#TARGET_CFLAGS += "-I$(STAGING_DIR)/usr/include/gtk-2.0"
37TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
38
39define Build/Prepare
40    $(call Build/Prepare/Default)
41    $(CP) $(FILES_DIR)/Makefile.config $(PKG_BUILD_DIR)
42endef
43
44define Package/netsurf/install
45    $(INSTALL_DIR) \
46        $(1)/usr/bin $(1)/usr/share/netsurf
47
48    $(INSTALL_BIN) \
49        $(PKG_BUILD_DIR)/nsfb \
50        $(1)/usr/bin/netsurf
51
52    cp -rfL \
53        $(PKG_BUILD_DIR)/framebuffer/res/* \
54        $(1)/usr/share/netsurf/
55
56    $(INSTALL_DATA) \
57        $(FILES_DIR)/Choices \
58        $(1)/usr/share/netsurf/
59
60    #That's really dirty... For some reason overriding font paths from Makefile doesn't work
61    mkdir -p $(1)/usr/share/netsurf/usr/share/fonts
62    ln -s ../../../../fonts/ttf-dejavu $(1)/usr/share/netsurf/usr/share/fonts/ttf-dejavu
63endef
64
65define Package/netsurf/postinst
66#!/bin/sh
67mkdir -p $${IPKG_INSTROOT}/root/.netsurf && cp $${IPKG_INSTROOT}/usr/share/netsurf/Choices $${IPKG_INSTROOT}/root/.netsurf/Choices
68endef
69
70$(eval $(call BuildPackage,netsurf))
71

Archive Download this file



interactive