libedit-2015_03_21_3.1.recipe revision ae94b127
1SUMMARY="A BSD licensed replacement for the GNU readline library"
2DESCRIPTION="
3This is an autotool- and libtoolized port of the NetBSD Editline library \
4(libedit). This Berkeley-style licensed command line editor library provides \
5generic line editing, history, and tokenization functions, similar to those \
6found in GNU Readline.
7"
8HOMEPAGE="http://www.thrysoee.dk/editline/"
9COPYRIGHT="1992-2014 The NetBSD Foundation, Inc."
10LICENSE="BSD (3-clause)"
11REVISION="9"
12SOURCE_URI="http://www.thrysoee.dk/editline/libedit-20150325-3.1.tar.gz"
13CHECKSUM_SHA256="c88a5e4af83c5f40dda8455886ac98923a9c33125699742603a88a0253fcc8c5"
14SOURCE_DIR="libedit-20150325-3.1"
15PATCHES="libedit-2015_03_25_3.1.patchset"
16
17ARCHITECTURES="x86_gcc2 x86 x86_64"
18SECONDARY_ARCHITECTURES="x86"
19
20PROVIDES="
21	libedit$secondaryArchSuffix = $portVersion
22	lib:libedit$secondaryArchSuffix = 0.0.53 compat >= 0
23	"
24REQUIRES="
25	haiku$secondaryArchSuffix
26	lib:libncurses$secondaryArchSuffix
27	"
28
29PROVIDES_devel="
30	libedit${secondaryArchSuffix}_devel = $portVersion
31	devel:libedit$secondaryArchSuffix = 0.0.53 compat >= 0
32	"
33REQUIRES_devel="
34	libedit$secondaryArchSuffix == $portVersion base
35	"
36
37BUILD_REQUIRES="
38	devel:libncurses$secondaryArchSuffix
39	"
40BUILD_PREREQUIRES="
41	haiku${secondaryArchSuffix}_devel
42	cmd:aclocal
43	cmd:autoreconf
44	cmd:gcc$secondaryArchSuffix
45	cmd:ld$secondaryArchSuffix
46	cmd:libtoolize$secondaryArchSuffix
47	cmd:m4
48	cmd:make
49	cmd:sed
50	"
51
52BUILD()
53{
54	mkdir m4
55	autoreconf --force --install
56	runConfigure ./configure --enable-examples=no --enable-widec
57	make $jobArgs
58}
59
60INSTALL()
61{
62	make install
63
64	# remove libtool file
65	rm $libDir/libedit.la
66
67	prepareInstalledDevelLibs libedit
68	fixPkgconfig
69
70	# devel package
71	packageEntries devel \
72		$developDir \
73		$manDir/man3
74}
75
76TEST()
77{
78	make check
79}
80