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:=r10948
8PKG_RELEASE:=1
9
10PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11PKG_SOURCE_URL:=http://www.netsurf-browser.org/downloads/development/
12PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
13
14PKG_INSTALL:=1
15
16include $(INCLUDE_DIR)/package.mk
17
18define Package/netsurf
19    SUBMENU:=Web
20    SECTION:=network
21    CATEGORY:=Network
22    TITLE:=netsurf
23    URL:=http://www.netsurf-browser.org/
24    DEPENDS:=+libsdl +libcss +libhubbub +libparserutils +libnsfb +libxml2 +libcurl +libfreetype
25endef
26
27define Package/netsurf/description
28    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.
29endef
30
31MAKE_FLAGS += "TARGET=framebuffer" \
32              "PREFIX=/usr"
33
34TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
35TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
36
37define Build/Prepare
38    $(call Build/Prepare/Default)
39    $(CP) $(FILES_DIR)/Makefile.config $(PKG_BUILD_DIR)
40endef
41
42define Package/netsurf/install
43    $(INSTALL_DIR) \
44        $(1)/usr/bin $(1)/usr/share/netsurf
45
46    $(INSTALL_BIN) \
47        $(PKG_INSTALL_DIR)/usr/bin/netsurf \
48        $(1)/usr/bin/
49
50    $(INSTALL_DATA) \
51        $(PKG_INSTALL_DIR)/usr/share/netsurf/* \
52        $(1)/usr/share/netsurf/
53endef
54
55$(eval $(call BuildPackage,netsurf))
56

Archive Download this file



interactive