summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/bzip2
diff options
context:
space:
mode:
authorChris Lord <chris@openedhand.com>2005-10-28 17:17:56 +0000
committerChris Lord <chris@openedhand.com>2005-10-28 17:17:56 +0000
commitd1dae06dc1edb0bd3ae82104e35699e800384ab8 (patch)
treeb66d6a2a18fb62fddb69eb521bd06dd26f92d88b /openembedded/packages/bzip2
parent9ad36d44f008862cefa1a19f4f5690cf9706effe (diff)
downloadpoky-d1dae06dc1edb0bd3ae82104e35699e800384ab8.tar.gz
Add gnome-vfs-dbus (builds correctly, but untested)
git-svn-id: https://svn.o-hand.com/repos/poky@147 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/bzip2')
-rw-r--r--openembedded/packages/bzip2/bzip2-1.0.2/installpaths.patch103
-rw-r--r--openembedded/packages/bzip2/bzip2_1.0.2.bb41
2 files changed, 144 insertions, 0 deletions
diff --git a/openembedded/packages/bzip2/bzip2-1.0.2/installpaths.patch b/openembedded/packages/bzip2/bzip2-1.0.2/installpaths.patch
new file mode 100644
index 0000000000..e7d09a71c5
--- /dev/null
+++ b/openembedded/packages/bzip2/bzip2-1.0.2/installpaths.patch
@@ -0,0 +1,103 @@
1
2#
3# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4#
5
6--- bzip2-1.0.2/Makefile~installpaths
7+++ bzip2-1.0.2/Makefile
8@@ -12,8 +12,12 @@
9 CFLAGS=-Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
10
11 # Where you want it installed when you do 'make install'
12-PREFIX=/usr
13-
14+DESTDIR=
15+prefix=/usr
16+bindir=$(prefix)/bin
17+mandir=$(prefix)/man
18+includedir=$(prefix)/include
19+libdir=$(prefix)/lib
20
21 OBJS= blocksort.o \
22 huffman.o \
23@@ -58,43 +62,43 @@
24 @cat words3
25
26 install: bzip2 bzip2recover
27- if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
28- if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
29- if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
30- if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
31- if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
32- cp -f bzip2 $(PREFIX)/bin/bzip2
33- cp -f bzip2 $(PREFIX)/bin/bunzip2
34- cp -f bzip2 $(PREFIX)/bin/bzcat
35- cp -f bzip2recover $(PREFIX)/bin/bzip2recover
36- chmod a+x $(PREFIX)/bin/bzip2
37- chmod a+x $(PREFIX)/bin/bunzip2
38- chmod a+x $(PREFIX)/bin/bzcat
39- chmod a+x $(PREFIX)/bin/bzip2recover
40- cp -f bzip2.1 $(PREFIX)/man/man1
41- chmod a+r $(PREFIX)/man/man1/bzip2.1
42- cp -f bzlib.h $(PREFIX)/include
43- chmod a+r $(PREFIX)/include/bzlib.h
44- cp -f libbz2.a $(PREFIX)/lib
45- chmod a+r $(PREFIX)/lib/libbz2.a
46- cp -f bzgrep $(PREFIX)/bin/bzgrep
47- ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
48- ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
49- chmod a+x $(PREFIX)/bin/bzgrep
50- cp -f bzmore $(PREFIX)/bin/bzmore
51- ln $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
52- chmod a+x $(PREFIX)/bin/bzmore
53- cp -f bzdiff $(PREFIX)/bin/bzdiff
54- ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
55- chmod a+x $(PREFIX)/bin/bzdiff
56- cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
57- chmod a+r $(PREFIX)/man/man1/bzgrep.1
58- chmod a+r $(PREFIX)/man/man1/bzmore.1
59- chmod a+r $(PREFIX)/man/man1/bzdiff.1
60- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
61- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
62- echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
63- echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
64+ if ( test ! -d $(DESTDIR)$(bindir) ) ; then mkdir -p $(DESTDIR)$(bindir) ; fi
65+ if ( test ! -d $(DESTDIR)$(libdir) ) ; then mkdir -p $(DESTDIR)$(libdir) ; fi
66+ if ( test ! -d $(DESTDIR)$(mandir) ) ; then mkdir -p $(DESTDIR)$(mandir) ; fi
67+ if ( test ! -d $(DESTDIR)$(mandir)/man1 ) ; then mkdir -p $(DESTDIR)$(mandir)/man1 ; fi
68+ if ( test ! -d $(DESTDIR)$(includedir) ) ; then mkdir -p $(DESTDIR)$(includedir) ; fi
69+ cp -f bzip2 $(DESTDIR)$(bindir)/bzip2
70+ cp -f bzip2 $(DESTDIR)$(bindir)/bunzip2
71+ cp -f bzip2 $(DESTDIR)$(bindir)/bzcat
72+ cp -f bzip2recover $(DESTDIR)$(bindir)/bzip2recover
73+ chmod a+x $(DESTDIR)$(bindir)/bzip2
74+ chmod a+x $(DESTDIR)$(bindir)/bunzip2
75+ chmod a+x $(DESTDIR)$(bindir)/bzcat
76+ chmod a+x $(DESTDIR)$(bindir)/bzip2recover
77+ cp -f bzip2.1 $(DESTDIR)$(mandir)/man1
78+ chmod a+r $(DESTDIR)$(mandir)/man1/bzip2.1
79+ cp -f bzlib.h $(DESTDIR)$(includedir)
80+ chmod a+r $(DESTDIR)$(includedir)/bzlib.h
81+ cp -f libbz2.a $(DESTDIR)$(libdir)
82+ chmod a+r $(DESTDIR)$(libdir)/libbz2.a
83+ cp -f bzgrep $(DESTDIR)$(bindir)/bzgrep
84+ ln $(DESTDIR)$(bindir)/bzgrep $(DESTDIR)$(bindir)/bzegrep
85+ ln $(DESTDIR)$(bindir)/bzgrep $(DESTDIR)$(bindir)/bzfgrep
86+ chmod a+x $(DESTDIR)$(bindir)/bzgrep
87+ cp -f bzmore $(DESTDIR)$(bindir)/bzmore
88+ ln $(DESTDIR)$(bindir)/bzmore $(DESTDIR)$(bindir)/bzless
89+ chmod a+x $(DESTDIR)$(bindir)/bzmore
90+ cp -f bzdiff $(DESTDIR)$(bindir)/bzdiff
91+ ln $(DESTDIR)$(bindir)/bzdiff $(DESTDIR)$(bindir)/bzcmp
92+ chmod a+x $(DESTDIR)$(bindir)/bzdiff
93+ cp -f bzgrep.1 bzmore.1 bzdiff.1 $(DESTDIR)$(mandir)/man1
94+ chmod a+r $(DESTDIR)$(mandir)/man1/bzgrep.1
95+ chmod a+r $(DESTDIR)$(mandir)/man1/bzmore.1
96+ chmod a+r $(DESTDIR)$(mandir)/man1/bzdiff.1
97+ echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzegrep.1
98+ echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzfgrep.1
99+ echo ".so man1/bzmore.1" > $(DESTDIR)$(mandir)/man1/bzless.1
100+ echo ".so man1/bzdiff.1" > $(DESTDIR)$(mandir)/man1/bzcmp.1
101
102 distclean: clean
103 clean:
diff --git a/openembedded/packages/bzip2/bzip2_1.0.2.bb b/openembedded/packages/bzip2/bzip2_1.0.2.bb
new file mode 100644
index 0000000000..1e1cb8e539
--- /dev/null
+++ b/openembedded/packages/bzip2/bzip2_1.0.2.bb
@@ -0,0 +1,41 @@
1DESCRIPTION = "Very high-quality data compression program."
2SECTION = "console/utils"
3PR = "r1"
4
5LICENSE = "bzip2"
6SRC_URI = "ftp://sources.redhat.com/pub/bzip2/v102/bzip2-${PV}.tar.gz \
7 file://installpaths.patch;patch=1"
8
9CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64"
10
11do_compile () {
12 oe_runmake -f Makefile-libbz2_so
13 ln -sf libbz2.so.1.0.2 libbz2.so.1.0
14 ln -sf libbz2.so.1.0.2 libbz2.so.1
15 ln -sf libbz2.so.1.0.2 libbz2.so
16 oe_runmake libbz2.a bzip2 bzip2recover
17}
18
19do_stage () {
20 install -m 0644 bzlib.h ${STAGING_INCDIR}/
21 oe_libinstall -a -so libbz2 ${STAGING_LIBDIR}
22}
23
24do_install () {
25 oe_runmake 'DESTDIR=${D}' install
26 oe_libinstall -a -so libbz2 ${D}${libdir}
27 mv ${D}${bindir}/bunzip2 ${D}${bindir}/bunzip2.${PN}
28 mv ${D}${bindir}/bzcat ${D}${bindir}/bzcat.${PN}
29}
30
31
32pkg_postinst_${PN} () {
33 update-alternatives --install ${bindir}/bunzip2 bunzip2 bunzip2.${PN} 100
34 update-alternatives --install ${bindir}/bzcat bzcat bzcat.${PN} 100
35}
36
37
38pkg_prerm_${PN} () {
39 update-alternatives --remove bunzip2 bunzip2.${PN}
40 update-alternatives --remove bzcat bzcat.${PN}
41}