Root/links/Makefile

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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=links
12PKG_VERSION:=2.3pre1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://links.twibright.com/download/
16
17PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/links
24    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
25    TITLE:=Text and graphics WWW browser
26    SUBMENU:=Web
27    SECTION:=net
28    CATEGORY:=Network
29    URL:=http://links.twibright.com/
30    DEPENDS:=+libpng +libtiff +libopenssl +directfb +svgalib +libjpeg
31endef
32
33define Package/links/description
34    Text and graphics WWW browser
35endef
36
37define Build/Prepare
38    $(call Build/Prepare/Default)
39    $(CP) $(FILES_DIR)/directfb-config $(PKG_BUILD_DIR)
40endef
41
42CONFIGURE_ARGS += --enable-graphics \
43  --enable-debuglevel=0 \
44  --without-gpm \
45  --without-pmshell \
46  --without-atheos \
47  --without-x
48
49TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/directfb
50
51CONFIGURE_VARS += \
52    DIRECTFB_CONFIG="$(PKG_BUILD_DIR)/directfb-config $(STAGING_DIR)"
53#DIRECTFB_CONFIG="$(STAGING_DIR)/root-xburst/usr/bin/directfb-config"
54
55define Package/links/install
56    $(INSTALL_DIR) $(1)/usr/bin
57    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/links $(1)/usr/bin/
58endef
59
60$(eval $(call BuildPackage,links))
61

Archive Download this file



interactive