summaryrefslogtreecommitdiff
path: root/netsurf/Makefile
diff options
context:
space:
mode:
authorDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
committerDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
commit9aaeb4623d3ff5746e665bc17914eefd292b7dcd (patch)
tree370db60ffdc2ef840b7d1124d5a392f93bba3c9d /netsurf/Makefile
downloadqipackages-fork-9aaeb4623d3ff5746e665bc17914eefd292b7dcd.tar.gz
New OpenWrt package for GNU Octave. Experimental/probably still broken.grafted
Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days.
Diffstat (limited to 'netsurf/Makefile')
-rw-r--r--netsurf/Makefile55
1 files changed, 55 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))