2009-11-02 09:28:48 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 Qi Hardware Inc.
|
|
|
|
# Author: Xiangfu Liu <xiangfu@qi-hardware.com>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=w3m
|
2011-03-27 00:36:04 +02:00
|
|
|
PKG_VERSION:=0.5.3
|
|
|
|
PKG_RELEASE:=1
|
2009-11-02 09:28:48 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-09-25 21:15:48 +03:00
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2011-03-27 00:36:04 +02:00
|
|
|
PKG_MD5SUM:=1b845a983a50b8dec0169ac48479eacc
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
2009-11-02 09:28:48 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-25 21:41:33 +02:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2009-11-02 09:28:48 +02:00
|
|
|
|
|
|
|
define Package/w3m
|
|
|
|
TITLE:=w3m
|
2010-09-25 21:15:48 +03:00
|
|
|
SUBMENU:=Web
|
2009-11-02 09:28:48 +02:00
|
|
|
SECTION:=network
|
|
|
|
CATEGORY:=Network
|
|
|
|
URL:=http://w3m.sourceforge.net/
|
2012-10-12 21:57:52 +03:00
|
|
|
DEPENDS:=+libopenssl +gc +libncurses +PACKAGE_libncursesw:libncursesw +gtk2
|
2009-11-02 09:28:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/w3m/description
|
|
|
|
w3m is a text-based web browser
|
|
|
|
endef
|
|
|
|
|
2010-09-25 21:15:48 +03:00
|
|
|
CONFIGURE_ARGS += --with-ssl=$(STAGING_DIR)/usr \
|
2011-02-18 08:29:39 +02:00
|
|
|
--with-gc=$(STAGING_DIR)/usr/lib \
|
|
|
|
--disable-xface \
|
2011-02-25 21:41:33 +02:00
|
|
|
--with-imagelib="gtk2" \
|
2011-03-27 00:36:04 +02:00
|
|
|
--enable-image="fb" \
|
|
|
|
--with-termlib="ncurses"
|
2010-09-25 21:15:48 +03:00
|
|
|
|
2013-01-04 09:41:36 +02:00
|
|
|
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -liconv
|
2010-09-25 21:15:48 +03:00
|
|
|
|
2011-03-27 00:36:04 +02:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default)
|
|
|
|
(mkdir $(PKG_BUILD_DIR)/host && \
|
|
|
|
cd $(PKG_BUILD_DIR)/host && \
|
|
|
|
$(HOSTCC) -DDUMMY -c -o dummy.o ../entity.c && \
|
|
|
|
$(HOSTCC) -o mktable ../mktable.c dummy.o ../Str.c ../hash.c ../myctype.c -Wl,-rpath="$(STAGING_DIR_HOST)/lib" -L$(STAGING_DIR_HOST)/lib -I$(STAGING_DIR_HOST)/include -lgc)
|
|
|
|
endef
|
2010-09-25 21:15:48 +03:00
|
|
|
|
2009-11-02 09:28:48 +02:00
|
|
|
define Package/w3m/install
|
2011-02-25 21:41:33 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/w3m
|
2010-09-25 21:15:48 +03:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/w3m $(1)/usr/bin/
|
2011-03-27 00:36:04 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/w3mimgdisplay $(1)/usr/lib/w3m/
|
2009-11-02 09:28:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,w3m))
|