summaryrefslogtreecommitdiff
path: root/netsurf
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
commit9352995934adec8059077af241c35ccd1573bd80 (patch)
tree60286e266b3b31b90b952ac37e12a1ebbcdd2eb6 /netsurf
parentef3b84d78197acbd45d73a9b1ae44b47b5904290 (diff)
parent880bca260c4ce91554a49b2475232cf5c0ffd447 (diff)
downloadqipackages-fork-9352995934adec8059077af241c35ccd1573bd80.tar.gz
Merge branch 'master' of git://projects.qi-hardware.com/openwrt-packagesHEADmaster
Conflicts: links/Makefile
Diffstat (limited to 'netsurf')
-rw-r--r--netsurf/Makefile55
-rw-r--r--netsurf/files/Makefile.config29
2 files changed, 84 insertions, 0 deletions
diff --git a/netsurf/Makefile b/netsurf/Makefile
new file mode 100644
index 0000000..2dc40de
--- /dev/null
+++ b/netsurf/Makefile
@@ -0,0 +1,55 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=netsurf
+PKG_VERSION:=r10948
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.netsurf-browser.org/downloads/development/
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/netsurf
+ SUBMENU:=Web
+ SECTION:=network
+ CATEGORY:=Network
+ TITLE:=netsurf
+ URL:=http://www.netsurf-browser.org/
+ DEPENDS:=+libsdl +libcss +libhubbub +libparserutils +libnsfb +libxml2 +libcurl +libfreetype
+endef
+
+define Package/netsurf/description
+ 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.
+endef
+
+MAKE_FLAGS += "TARGET=framebuffer" \
+ "PREFIX=/usr"
+
+TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
+TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
+
+define Build/Prepare
+ $(call Build/Prepare/Default)
+ $(CP) $(FILES_DIR)/Makefile.config $(PKG_BUILD_DIR)
+endef
+
+define Package/netsurf/install
+ $(INSTALL_DIR) \
+ $(1)/usr/bin $(1)/usr/share/netsurf
+
+ $(INSTALL_BIN) \
+ $(PKG_INSTALL_DIR)/usr/bin/netsurf \
+ $(1)/usr/bin/
+
+ $(INSTALL_DATA) \
+ $(PKG_INSTALL_DIR)/usr/share/netsurf/* \
+ $(1)/usr/share/netsurf/
+endef
+
+$(eval $(call BuildPackage,netsurf))
diff --git a/netsurf/files/Makefile.config b/netsurf/files/Makefile.config
new file mode 100644
index 0000000..1ae1e7c
--- /dev/null
+++ b/netsurf/files/Makefile.config
@@ -0,0 +1,29 @@
+#
+# NetSurf build configuration example
+#
+#
+# To configure NetSurf's build options create a Makefile.config file. This is
+# an example Makefile.config.
+#
+# To see the available config options, look at Makefile.defaults
+
+
+# For example, by default, NetSurf builds with BMP support. If you
+# wish to disable this, then uncomment the following line.
+
+override NETSURF_USE_BMP := NO
+override NETSURF_USE_GIF := NO
+override NETSURF_USE_MNG := NO
+override NETSURF_FB_FONTLIB := freetype
+
+ # freetype compiled in font locations
+override NETSURF_FB_FONT_SANS_SERIF := /usr/share/fonts/ttf-dejavu/DejaVuSans.ttf
+override NETSURF_FB_FONT_SANS_SERIF_BOLD := /usr/share/fonts/ttf-dejavu/DejaVuSans-Bold.ttf
+override NETSURF_FB_FONT_SANS_SERIF_ITALIC := /usr/share/fonts/ttf-dejavu/DejaVuSans-Oblique.ttf
+override NETSURF_FB_FONT_SANS_SERIF_ITALIC_BOLD := /usr/share/fonts/ttf-dejavu/DejaVuSans-BoldOblique.ttf
+override NETSURF_FB_FONT_SERIF := /usr/share/fonts/ttf-dejavu/DejaVuSerif.ttf
+override NETSURF_FB_FONT_SERIF_BOLD := /usr/share/fonts/ttf-dejavu/DejaVuSerif-Bold.ttf
+override NETSURF_FB_FONT_MONOSPACE := /usr/share/fonts/ttf-dejavu/DejaVuSansMono.ttf
+override NETSURF_FB_FONT_MONOSPACE_BOLD := /usr/share/fonts/ttf-dejavu/DejaVuSansMono-Bold.ttf
+override NETSURF_FB_FONT_CURSIVE := /usr/share/fonts/msttcorefonts/Comic_Sans_MS.ttf
+override NETSURF_FB_FONT_FANTASY := /usr/share/fonts/msttcorefonts/Impact.ttf