2 # Copyright (C) 2010-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.greenwoodsoftware.com
/less
16 PKG_MD5SUM
:=935b38aa2e73c888c210dedf8fd94f49
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/less
/Default
26 TITLE
:=Pager program similar to more
27 URL
:=http
://www.greenwoodsoftware.com
/less
/
30 define Package
/less
/Default
/description
31 Full version of GNU less utility
35 $(call Package
/less
/Default
)
40 define Package
/less
/description
41 $(call Package
/less
/Default
/description
)
44 define Package
/less-wide
45 $(call Package
/less
/Default
)
51 define Package
/less-wide
/description
52 $(call Package
/less
/Default
/description
)
53 This package contains the Unicode enabled version of less.
56 ifeq ($(BUILD_VARIANT
),narrow
)
58 ac_cv_lib_ncursesw_initscr
=no
61 ifeq ($(BUILD_VARIANT
),wide
)
63 ac_cv_lib_ncursesw_initscr
=yes
66 define Package
/less
/install
67 $(INSTALL_DIR
) $(1)/bin
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/less
$(1)/bin
/less
71 define Package
/less
/postinst
73 [ -L
"$${IPKG_INSTROOT}/usr/bin/less" ] && rm -f
"$${IPKG_INSTROOT}/usr/bin/less"
77 define Package
/less
/postrm
79 /bin
/busybox less
-h
2>&1 | grep
-q BusyBox
&& ln
-sf ..
/..
/bin
/busybox
/usr
/bin
/less
83 Package
/less-wide
/install = $(Package
/less
/install)
84 Package
/less-wide
/postinst
= $(Package
/less
/postinst
)
85 Package
/less-wide
/postrm
= $(Package
/less
/postrm
)
87 $(eval
$(call BuildPackage
,less
))
88 $(eval
$(call BuildPackage
,less-wide
))