summaryrefslogtreecommitdiff
path: root/package/bzip2
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-08-24 19:17:51 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-08-24 19:17:51 +0200
commit0f8469e5c7f3477b3c521fb7f672fca8c294c0f3 (patch)
treecbfe4e4615efcaf6c401e63d6b180459a448afd9 /package/bzip2
parentd50d57eada12d4a6eb4dfd7130fb6f56cb784431 (diff)
some work on lemote
- add new package bzip2 - make subpackage libblkid needed for swapon utility - enable hibernation on lemote
Diffstat (limited to 'package/bzip2')
-rw-r--r--package/bzip2/Config.in6
-rw-r--r--package/bzip2/Makefile27
-rw-r--r--package/bzip2/patches/patch-Makefile34
-rw-r--r--package/bzip2/patches/patch-Makefile.orig34
4 files changed, 101 insertions, 0 deletions
diff --git a/package/bzip2/Config.in b/package/bzip2/Config.in
new file mode 100644
index 000000000..713b79569
--- /dev/null
+++ b/package/bzip2/Config.in
@@ -0,0 +1,6 @@
+config ADK_PACKAGE_BZIP2
+ prompt "bzip2.............................. bzip2 compression utility"
+ tristate
+ default n
+ help
+ http://www.bzip.org
diff --git a/package/bzip2/Makefile b/package/bzip2/Makefile
new file mode 100644
index 000000000..e5c690ea7
--- /dev/null
+++ b/package/bzip2/Makefile
@@ -0,0 +1,27 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= bzip2
+PKG_VERSION:= 1.0.5
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 3c15a0c8d1d3ee1c46a1634d00617b1a
+PKG_DESCR:= bzip2 compression utility
+PKG_SECTION:= utils
+PKG_URL:= http://www.bzip.org
+PKG_SITES:= http://www.bzip.org/1.0.5/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,BZIP2,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+XAKE_FLAGS+= PREFIX=${WRKINST}/usr
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_BZIP2}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/bzip2 ${IDIR_BZIP2}/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/bzip2/patches/patch-Makefile b/package/bzip2/patches/patch-Makefile
new file mode 100644
index 000000000..0d15eab68
--- /dev/null
+++ b/package/bzip2/patches/patch-Makefile
@@ -0,0 +1,34 @@
+--- bzip2-1.0.5.orig/Makefile 2008-02-14 13:39:18.000000000 +0100
++++ bzip2-1.0.5/Makefile 2009-08-23 20:18:12.000000000 +0200
+@@ -15,16 +15,16 @@
+ SHELL=/bin/sh
+
+ # To assist in cross-compiling
+-CC=gcc
+-AR=ar
+-RANLIB=ranlib
+-LDFLAGS=
++CC?=gcc
++AR?=ar
++RANLIB?=ranlib
++LDFLAGS?=
+
+ BIGFILES=-D_FILE_OFFSET_BITS=64
+-CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
++CFLAGS?=-Wall -Winline -O2 -g $(BIGFILES)
+
+ # Where you want it installed when you do 'make install'
+-PREFIX=/usr/local
++PREFIX?=/usr
+
+
+ OBJS= blocksort.o \
+@@ -35,7 +35,7 @@ OBJS= blocksort.o \
+ decompress.o \
+ bzlib.o
+
+-all: libbz2.a bzip2 bzip2recover test
++all: libbz2.a bzip2 bzip2recover
+
+ bzip2: libbz2.a bzip2.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
diff --git a/package/bzip2/patches/patch-Makefile.orig b/package/bzip2/patches/patch-Makefile.orig
new file mode 100644
index 000000000..4884c38ee
--- /dev/null
+++ b/package/bzip2/patches/patch-Makefile.orig
@@ -0,0 +1,34 @@
+--- bzip2-1.0.5.orig/Makefile 2008-02-14 13:39:18.000000000 +0100
++++ bzip2-1.0.5/Makefile 2009-08-23 20:16:24.000000000 +0200
+@@ -15,16 +15,16 @@
+ SHELL=/bin/sh
+
+ # To assist in cross-compiling
+-CC=gcc
+-AR=ar
+-RANLIB=ranlib
+-LDFLAGS=
++CC?=gcc
++AR?=ar
++RANLIB?=ranlib
++LDFLAGS?=
+
+ BIGFILES=-D_FILE_OFFSET_BITS=64
+-CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
++CFLAGS?=-Wall -Winline -O2 -g $(BIGFILES)
+
+ # Where you want it installed when you do 'make install'
+-PREFIX=/usr/local
++PREFIX=/usr
+
+
+ OBJS= blocksort.o \
+@@ -35,7 +35,7 @@ OBJS= blocksort.o \
+ decompress.o \
+ bzlib.o
+
+-all: libbz2.a bzip2 bzip2recover test
++all: libbz2.a bzip2 bzip2recover
+
+ bzip2: libbz2.a bzip2.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2