Root/w3m/Makefile

Source at commit a6504b848bee984b6c6f7312b0c62098f77303eb created 9 years 8 months ago.
By kyak, w3m: fix build
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=w3m
11PKG_VERSION:=0.5.3
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16PKG_MD5SUM:=1b845a983a50b8dec0169ac48479eacc
17
18PKG_FIXUP:=autoreconf
19
20include $(INCLUDE_DIR)/package.mk
21include $(INCLUDE_DIR)/nls.mk
22
23define Package/w3m
24    TITLE:=w3m
25    SUBMENU:=Web
26    SECTION:=network
27    CATEGORY:=Network
28    URL:=http://w3m.sourceforge.net/
29    DEPENDS:=+libopenssl +gc +libncurses +PACKAGE_libncursesw:libncursesw +gtk2
30endef
31
32define Package/w3m/description
33    w3m is a text-based web browser
34endef
35
36CONFIGURE_ARGS += --with-ssl=$(STAGING_DIR)/usr \
37          --with-gc=$(STAGING_DIR)/usr/lib \
38          --disable-xface \
39          --with-imagelib="gtk2" \
40          --enable-image="fb" \
41          --with-termlib="ncurses"
42
43TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -liconv
44
45define Build/Configure
46    $(call Build/Configure/Default)
47    (mkdir $(PKG_BUILD_DIR)/host && \
48    cd $(PKG_BUILD_DIR)/host && \
49    $(HOSTCC) -DDUMMY -c -o dummy.o ../entity.c && \
50    $(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)
51endef
52
53define Package/w3m/install
54    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/w3m
55    $(INSTALL_BIN) $(PKG_BUILD_DIR)/w3m $(1)/usr/bin/
56    $(INSTALL_BIN) $(PKG_BUILD_DIR)/w3mimgdisplay $(1)/usr/lib/w3m/
57endef
58
59$(eval $(call BuildPackage,w3m))
60

Archive Download this file



interactive