mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-25 21:36:15 +02:00
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
#
|
|
# 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
|
|
PKG_VERSION:=0.5.2
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
|
PKG_MD5SUM:=ba06992d3207666ed1bf2dcf7c72bf58
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
define Package/w3m
|
|
TITLE:=w3m
|
|
SUBMENU:=Web
|
|
SECTION:=network
|
|
CATEGORY:=Network
|
|
URL:=http://w3m.sourceforge.net/
|
|
DEPENDS:=+libopenssl +gc +libncursesw +gtk2
|
|
endef
|
|
|
|
define Package/w3m/description
|
|
w3m is a text-based web browser
|
|
endef
|
|
|
|
define Build/Prepare
|
|
$(call Build/Prepare/Default)
|
|
$(CP) $(FILES_DIR)/functable.c $(PKG_BUILD_DIR)
|
|
$(CP) $(FILES_DIR)/tagtable.c $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
CONFIGURE_ARGS += --with-ssl=$(STAGING_DIR)/usr \
|
|
--with-gc=$(STAGING_DIR)/usr/lib \
|
|
--disable-xface \
|
|
--with-imagelib="gtk2" \
|
|
--enable-image="fb"
|
|
|
|
CONFIGURE_VARS += ac_cv_lib_gc_GC_init=yes
|
|
|
|
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/glib-2.0 \
|
|
-I$(STAGING_DIR)/usr/include/gtk-2.0 \
|
|
-I$(STAGING_DIR)/usr/include/pango-1.0 \
|
|
-I$(STAGING_DIR)/usr/include/cairo
|
|
|
|
TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
|
$(INTL_LDFLAGS) $(ICONV_LDFLAGS) \
|
|
-lintl -lglib-2.0 -liconv -lgdk_pixbuf-2.0
|
|
|
|
define Package/w3m/install
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/w3m
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/w3m $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/w3mimgdisplay $(1)/usr/lib/w3m
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,w3m))
|