Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=multilib.git;a=commitdiff;h=db96d7171c0b88cbc8f4b595b8fd4136a0d1b172

commit db96d7171c0b88cbc8f4b595b8fd4136a0d1b172
Author: crazy <[email protected]>
Date:   Sun Oct 23 13:31:43 2016 +0200

bzip2-1.0.6-10-x86_64
* fix 32bit stuff with an patch .. this Makefile is crap

diff --git a/source/base/bzip2/FrugalBuild b/source/base/bzip2/FrugalBuild
index 4ab1b00..00834e3 100644
--- a/source/base/bzip2/FrugalBuild
+++ b/source/base/bzip2/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=bzip2
pkgver=1.0.6
-pkgrel=9
+pkgrel=10
pkgdesc="A block-sorting file compressor"
url="http://www.bzip.org/";
depends=('glibc>=2.24-4' 'bash>=4.3_042-6')
@@ -12,10 +12,10 @@ groups=('base' 'chroot-core')
archs=('x86_64')
up2date="lynx -dump $url|grep current|sed 's/.*s \(.*\), .*/\1/'"
source=(http://www.bzip.org/$pkgver/$pkgname-$pkgver.tar.gz \
-       $pkgname-1.0.4-cflags.patch \
+       makefile.patch \
$pkgname-1.0.2-progress.patch)
sha1sums=('3f89f861209ce81a6bab1fd1998c0ef311712002' \
-          'ec378406d1451f8681163fdabe0c63c282f32f45' \
+          '1dea99748e0292a99cf015f897a2a78d440e8e55' \
'90a0032645886b633c9b730d0a1abb88c88a9873')

options+=('static')
@@ -26,8 +26,11 @@ subdepends=("glibc")
subgroups=('lib32-extra')
subarchs=('x86_64')

+Finclude cross32
+
build()
{
+       Fcd
Fpatchall
## 32-bit
Fcross32_prepare
@@ -38,6 +41,7 @@ build()
Fcprrel 'libbz2.so.*' /usr/lib32
Ffilerel libbz2.a /usr/lib32/libbz2.a
Fln  /usr/lib32/libbz2.so.${pkgver%.?} /usr/lib32/libbz2.so
+       Ffilerel bzlib.h /usr/$CHOST/include/bzlib.h

Fcross32_delete_empty
Fsplit "lib32-${pkgname}" /\*
diff --git a/source/base/bzip2/bzip2-1.0.4-cflags.patch 
b/source/base/bzip2/bzip2-1.0.4-cflags.patch
deleted file mode 100644
index cf48961..0000000
--- a/source/base/bzip2/bzip2-1.0.4-cflags.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -Naur bzip2-1.0.4.orig/Makefile bzip2-1.0.4/Makefile
---- bzip2-1.0.4.orig/Makefile  2007-01-03 04:49:21.000000000 +0100
-+++ bzip2-1.0.4/Makefile       2007-01-06 14:36:23.000000000 +0100
-@@ -21,7 +21,7 @@
- LDFLAGS=
-
- BIGFILES=-D_FILE_OFFSET_BITS=64
--CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
-+CFLAGS+=-Wall -Winline $(BIGFILES)
-
- # Where you want it installed when you do 'make install'
- PREFIX=/usr/local
-diff -Naur bzip2-1.0.4.orig/Makefile-libbz2_so bzip2-1.0.4/Makefile-libbz2_so
---- bzip2-1.0.4.orig/Makefile-libbz2_so        2007-01-03 03:00:55.000000000 
+0100
-+++ bzip2-1.0.4/Makefile-libbz2_so     2007-01-06 14:36:43.000000000 +0100
-@@ -24,7 +24,7 @@
- SHELL=/bin/sh
- CC=gcc
- BIGFILES=-D_FILE_OFFSET_BITS=64
--CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
-+CFLAGS+=-fpic -fPIC -Wall -Winline $(BIGFILES)
-
- OBJS= blocksort.o  \
-       huffman.o    \
diff --git a/source/base/bzip2/makefile.patch b/source/base/bzip2/makefile.patch
new file mode 100644
index 0000000..d116ac7
--- /dev/null
+++ b/source/base/bzip2/makefile.patch
@@ -0,0 +1,42 @@
+diff -Naur bzip2-1.0.6/Makefile bzip2-1.0.6-p/Makefile
+--- bzip2-1.0.6/Makefile       2010-09-11 00:46:02.000000000 +0200
++++ bzip2-1.0.6-p/Makefile     2016-10-23 13:20:13.253751080 +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 $(BIGFILES)
+
+ # Where you want it installed when you do 'make install'
+-PREFIX=/usr/local
++PREFIX=/usr
+
+
+ OBJS= blocksort.o  \
+diff -Naur bzip2-1.0.6/Makefile-libbz2_so bzip2-1.0.6-p/Makefile-libbz2_so
+--- bzip2-1.0.6/Makefile-libbz2_so     2010-09-11 01:07:52.000000000 +0200
++++ bzip2-1.0.6-p/Makefile-libbz2_so   2016-10-23 13:20:55.567751708 +0200
+@@ -22,9 +22,10 @@
+
+
+ SHELL=/bin/sh
+-CC=gcc
++CC ?= gcc
+ BIGFILES=-D_FILE_OFFSET_BITS=64
+-CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
++CFLAGS+=-fpic -fPIC -Wall -Winline $(BIGFILES)
++LDFLAGS+=
+
+ OBJS= blocksort.o  \
+       huffman.o    \
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to