OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2009 Qi Hardware Inc. |
| 3 | # Author: Xiangfu Liu <xiangfu@qi-hardware.com> |
| 4 | # |
| 5 | # This is free software, licensed under the GNU General Public License v2. |
| 6 | # See /LICENSE for more information. |
| 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/rules.mk |
| 10 | |
| 11 | PKG_NAME:=links |
| 12 | PKG_VERSION:=2.2 |
| 13 | |
| 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 15 | PKG_SOURCE_URL:=http://links.twibright.com/download/ |
| 16 | |
| 17 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 18 | |
| 19 | PKG_INSTALL:=1 |
| 20 | |
| 21 | include $(INCLUDE_DIR)/package.mk |
| 22 | |
| 23 | define Package/links |
| 24 | TITLE:=Text and graphics WWW browser |
| 25 | SUBMENU:=Web |
| 26 | SECTION:=net |
| 27 | CATEGORY:=Network |
| 28 | URL:=http://links.twibright.com/ |
| 29 | DEPENDS:=+libpng +libtiff |
| 30 | endef |
| 31 | |
| 32 | define Package/links/description |
| 33 | Text and graphics WWW browser |
| 34 | endef |
| 35 | |
| 36 | define Build/Prepare |
| 37 | $(call Build/Prepare/Default) |
| 38 | $(CP) $(FILES_DIR)/directfb-config $(PKG_BUILD_DIR) |
| 39 | endef |
| 40 | |
| 41 | CONFIGURE_ARGS += --enable-graphics \ |
| 42 | --enable-debuglevel=0 \ |
| 43 | --without-gpm \ |
| 44 | --without-svgalib \ |
| 45 | --without-pmshell \ |
| 46 | --without-atheos \ |
| 47 | --without-x \ |
| 48 | --without-fb |
| 49 | |
| 50 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/directfb |
| 51 | |
| 52 | CONFIGURE_VARS += \ |
| 53 | DIRECTFB_CONFIG="$(PKG_BUILD_DIR)/directfb-config $(STAGING_DIR)" |
| 54 | #DIRECTFB_CONFIG="$(STAGING_DIR)/root-xburst/usr/bin/directfb-config" |
| 55 | |
| 56 | define Package/links/install |
| 57 | $(INSTALL_DIR) $(1)/usr/bin |
| 58 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/links $(1)/usr/bin/ |
| 59 | endef |
| 60 | |
| 61 | $(eval $(call BuildPackage,links)) |
| 62 |
