-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
77 lines (58 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# Copyright (C) 2007-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=links
PKG_VERSION:=2.20.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://links.twibright.com/download
PKG_MAINTAINER:=commar <[email protected]>
PKG_LICENSE:=GPL
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
define Package/links/Default
SUBMENU:=Network
URL:=http://links.twibright.com/
endef
define Package/links
$(call Package/links/Default)
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libbz2 xz zlib libevent2 libopenssl
TITLE:=links - console web browser
endef
define Package/links/description
links - minimal web browser for console
endef
TARGET_CFLAGS += \
$(FPIC) \
$(TARGET_LDFLAGS)
CONFIGURE_ARGS += --prefix=/usr
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)" \
all
define Build/InstallDev
endef
define Package/links/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/links $(1)/usr/bin/links
endef
HOST_CFLAGS += \
$(FPIC) \
$(HOST_LDFLAGS)
HOST_MAKE_FLAGS+= \
CFLAGS="$(HOST_CFLAGS)" \
all
HOST_CONFIGURE_ARGS+= \
--prefix=$(STAGING_DIR_HOST)
define Host/Install
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
$(INSTALL_BIN) $(STAGING_DIR_HOST)/bin/links
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,links))