]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/readline/readline.nm
430f0b591511b50d1577fcd4585431ac6480d026
[people/ms/ipfire-3.x.git] / pkgs / readline / readline.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = readline
28 PKG_VER = 6.2
29 PKG_REL = 3
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = System/Libraries
33 PKG_URL = ftp://ftp.gnu.org/gnu/readline/
34 PKG_LICENSE = GPLv3+
35 PKG_SUMMARY = A library for editing typed command lines.
36
37 PKG_PACKAGES += $(PKG_NAME_REAL)-devel
38
39 PKG_BUILD_DEPS+= audit-devel ncurses-devel
40
41 define PKG_DESCRIPTION
42 The Readline library provides a set of functions that allow users to \
43 edit command lines. Both Emacs and vi editing modes are available. \
44 The Readline library includes additional functions for maintaining a \
45 list of previously-entered command lines for recalling or editing \
46 those lines, and for performing csh-like history expansion on \
47 previous commands.
48 endef
49
50 PKG_TARBALL = $(THISAPP).tar.gz
51
52 STAGE_BUILD_TARGETS += SHLIB_LIBS=-lncurses
53
54 CONFIGURE_OPTIONS += \
55 --libdir=/lib \
56
57 define STAGE_INSTALL_CMDS
58 # Remove a bunch of *.c files
59 rm -rfv $(BUILDROOT)/usr/share/readline
60
61 -mkdir -pv $(BUILDROOT)/usr/lib
62 rm -fv $(BUILDROOT)/lib/lib{readline,history}.so
63 ln -sfv ../../lib/libreadline.so.6 $(BUILDROOT)/usr/lib/libreadline.so
64 ln -sfv ../../lib/libhistory.so.6 $(BUILDROOT)/usr/lib/libhistory.so
65
66 -mkdir -pv $(BUILDROOT)/etc/profile.d
67 cp -vf $(DIR_SOURCE)/readline.sh $(BUILDROOT)/etc/profile.d/
68
69 cp -vf $(DIR_SOURCE)/inputrc $(BUILDROOT)/etc/
70 endef