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    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
20    SUBMENU:=Web
21    SECTION:=network
22    CATEGORY:=Network
23    TITLE:=netsurf
24    URL:=http://www.netsurf-browser.org/
25    DEPENDS:=+libsdl +libcss +libhubbub +libparserutils +libnsfb +libxml2 +libcurl +libfreetype
26endef
27
28define Package/netsurf/description
29    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.
30endef
31
32MAKE_FLAGS += "TARGET=framebuffer" \
33              "PREFIX=/usr"
34
35TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
36TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
37
38define Build/Prepare
39    $(call Build/Prepare/Default)
40    $(CP) $(FILES_DIR)/Makefile.config $(PKG_BUILD_DIR)
41endef
42
43define Package/netsurf/install
44    $(INSTALL_DIR) \
45        $(1)/usr/bin $(1)/usr/share/netsurf
46
47    $(INSTALL_BIN) \
48        $(PKG_INSTALL_DIR)/usr/bin/netsurf \
49        $(1)/usr/bin/
50
51    $(INSTALL_DATA) \
52        $(PKG_INSTALL_DIR)/usr/share/netsurf/* \
53        $(1)/usr/share/netsurf/
54endef
55
56$(eval $(call BuildPackage,netsurf))
57

Archive Download this file



interactive