diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am')
-rw-r--r-- | meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am b/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am new file mode 100644 index 0000000000..1d163b6c98 --- /dev/null +++ b/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am | |||
@@ -0,0 +1,71 @@ | |||
1 | |||
2 | lib_LTLIBRARIES = libbz2.la | ||
3 | |||
4 | libbz2_la_SOURCES = blocksort.c \ | ||
5 | huffman.c \ | ||
6 | crctable.c \ | ||
7 | randtable.c \ | ||
8 | compress.c \ | ||
9 | decompress.c \ | ||
10 | bzlib.c | ||
11 | |||
12 | bin_PROGRAMS = bzip2 bzip2recover | ||
13 | |||
14 | bzip2_SOURCES = bzip2.c | ||
15 | bzip2_LDADD = libbz2.la | ||
16 | bzip2_DEPENDENCIES = libbz2.la | ||
17 | |||
18 | include_HEADERS = bzlib.h | ||
19 | |||
20 | bzip2recover_SOURCES = bzip2recover.c | ||
21 | bzip2recover_LDADD = libbz2.la | ||
22 | bzip2recover_DEPENDENCIES = libbz2.la | ||
23 | |||
24 | bin_SCRIPTS = bzgrep bzmore bzdiff | ||
25 | |||
26 | man_MANS = bzip2.1 bzgrep.1 bzmore.1 bzdiff.1 | ||
27 | EXTRA_DIST = $(man_MANS) | ||
28 | |||
29 | runtest: | ||
30 | ./bzip2 -1 < sample1.ref > sample1.rb2 | ||
31 | ./bzip2 -2 < sample2.ref > sample2.rb2 | ||
32 | ./bzip2 -3 < sample3.ref > sample3.rb2 | ||
33 | ./bzip2 -d < sample1.bz2 > sample1.tst | ||
34 | ./bzip2 -d < sample2.bz2 > sample2.tst | ||
35 | ./bzip2 -ds < sample3.bz2 > sample3.tst | ||
36 | @if cmp sample1.bz2 sample1.rb2; then echo "PASS: sample1 compress";\ | ||
37 | else echo "FAIL: sample1 compress"; fi | ||
38 | @if cmp sample2.bz2 sample2.rb2; then echo "PASS: sample2 compress";\ | ||
39 | else echo "FAIL: sample2 compress"; fi | ||
40 | @if cmp sample3.bz2 sample3.rb2; then echo "PASS: sample3 compress";\ | ||
41 | else echo "FAIL: sample3 compress"; fi | ||
42 | @if cmp sample1.tst sample1.ref; then echo "PASS: sample1 decompress";\ | ||
43 | else echo "FAIL: sample1 decompress"; fi | ||
44 | @if cmp sample2.tst sample2.ref; then echo "PASS: sample2 decompress";\ | ||
45 | else echo "FAIL: sample2 decompress"; fi | ||
46 | @if cmp sample3.tst sample3.ref; then echo "PASS: sample3 decompress";\ | ||
47 | else echo "FAIL: sample3 decompress"; fi | ||
48 | |||
49 | install-ptest: | ||
50 | cp $(srcdir)/Makefile $(DESTDIR)/ | ||
51 | cp $(srcdir)/sample1.ref $(DESTDIR)/ | ||
52 | cp $(srcdir)/sample2.ref $(DESTDIR)/ | ||
53 | cp $(srcdir)/sample3.ref $(DESTDIR)/ | ||
54 | cp $(srcdir)/sample1.bz2 $(DESTDIR)/ | ||
55 | cp $(srcdir)/sample2.bz2 $(DESTDIR)/ | ||
56 | cp $(srcdir)/sample3.bz2 $(DESTDIR)/ | ||
57 | ln -s $(bindir)/bzip2 $(DESTDIR)/bzip2 | ||
58 | |||
59 | install-exec-hook: | ||
60 | ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bunzip2$(EXEEXT) | ||
61 | ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bzcat$(EXEEXT) | ||
62 | ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzegrep$(EXEEXT) | ||
63 | ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzfgrep$(EXEEXT) | ||
64 | ln -s $(bindir)/bzmore$(EXEEXT) $(DESTDIR)$(bindir)/bzless$(EXEEXT) | ||
65 | ln -s $(bindir)/bzdiff$(EXEEXT) $(DESTDIR)$(bindir)/bzcmp$(EXEEXT) | ||
66 | |||
67 | install-data-hook: | ||
68 | echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzegrep.1 | ||
69 | echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzfgrep.1 | ||
70 | echo ".so man1/bzmore.1" > $(DESTDIR)$(mandir)/man1/bzless.1 | ||
71 | echo ".so man1/bzdiff.1" > $(DESTDIR)$(mandir)/man1/bzcmp.1 | ||