OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
Source at commit a328712f2103693c94d905ac90cc585c4d4cbbfc created 9 years 9 days ago. By kyak, netsurf: update to 2.9 | |
---|---|
1 | # This is free software, licensed under the GNU General Public License v2. |
2 | # See /LICENSE for more information. |
3 | |
4 | include $(TOPDIR)/rules.mk |
5 | |
6 | PKG_NAME:=netsurf |
7 | PKG_VERSION:=2.9 |
8 | PKG_RELEASE:=1 |
9 | |
10 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz |
11 | PKG_SOURCE_URL:=http://www.netsurf-browser.org/downloads/releases/ |
12 | PKG_MD5SUM:=d5d9d21a9a14f7e9cc502cc617298baa |
13 | |
14 | include $(INCLUDE_DIR)/package.mk |
15 | |
16 | define 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 |
24 | endef |
25 | |
26 | define 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. |
28 | endef |
29 | |
30 | MAKE_FLAGS += "TARGET=framebuffer" \ |
31 | "PREFIX=/usr" |
32 | #MAKE_FLAGS += "TARGET=gtk" \ |
33 | # "PREFIX=/usr" |
34 | |
35 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL |
36 | #TARGET_CFLAGS += "-I$(STAGING_DIR)/usr/include/gtk-2.0" |
37 | TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
38 | |
39 | define Build/Prepare |
40 | $(call Build/Prepare/Default) |
41 | $(CP) $(FILES_DIR)/Makefile.config $(PKG_BUILD_DIR) |
42 | endef |
43 | |
44 | define 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 |
63 | endef |
64 | |
65 | define Package/netsurf/postinst |
66 | #!/bin/sh |
67 | mkdir -p $${IPKG_INSTROOT}/root/.netsurf && cp $${IPKG_INSTROOT}/usr/share/netsurf/Choices $${IPKG_INSTROOT}/root/.netsurf/Choices |
68 | endef |
69 | |
70 | $(eval $(call BuildPackage,netsurf)) |
71 |