You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

125 lines
4.8 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../bzip2/makefile.patch
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- bzip2-1.0.4/Makefile.orig 2007-01-03 05:49:21.000000000 +0200
+++ bzip2-1.0.4/Makefile 2007-03-11 23:30:56.781657750 +0200
@@ -24,8 +24,8 @@
CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
# Where you want it installed when you do 'make install'
-PREFIX=/usr/local
-
+PREFIX=/
+USRPREFIX=/usr
OBJS= blocksort.o \
huffman.o \
@@ -35,7 +35,7 @@
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
@@ -46,12 +46,7 @@
libbz2.a: $(OBJS)
rm -f libbz2.a
$(AR) cq libbz2.a $(OBJS)
- @if ( test -f $(RANLIB) -o -f /usr/bin/ranlib -o \
- -f /bin/ranlib -o -f /usr/ccs/bin/ranlib ) ; then \
- echo $(RANLIB) libbz2.a ; \
- $(RANLIB) libbz2.a ; \
- fi
-
+ $(RANLIB) libbz2.a
check: test
test: bzip2
@cat words1
@@ -71,42 +66,42 @@
install: bzip2 bzip2recover
if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
- if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
- if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
- if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
- if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
+ if ( test ! -d $(USRPREFIX)/lib ) ; then mkdir -p $(USRPREFIX)/lib ; fi
+ if ( test ! -d $(USRPREFIX)/man ) ; then mkdir -p $(USRPREFIX)/man ; fi
+ if ( test ! -d $(USRPREFIX)/man/man1 ) ; then mkdir -p $(USRPREFIX)/man/man1 ; fi
+ if ( test ! -d $(USRPREFIX)/include ) ; then mkdir -p $(USRPREFIX)/include ; fi
cp -f bzip2 $(PREFIX)/bin/bzip2
cp -f bzip2 $(PREFIX)/bin/bunzip2
cp -f bzip2 $(PREFIX)/bin/bzcat
- cp -f bzip2recover $(PREFIX)/bin/bzip2recover
+ cp -f bzip2recover $(USRPREFIX)/bin/bzip2recover
chmod a+x $(PREFIX)/bin/bzip2
chmod a+x $(PREFIX)/bin/bunzip2
chmod a+x $(PREFIX)/bin/bzcat
- chmod a+x $(PREFIX)/bin/bzip2recover
- cp -f bzip2.1 $(PREFIX)/man/man1
- chmod a+r $(PREFIX)/man/man1/bzip2.1
- cp -f bzlib.h $(PREFIX)/include
- chmod a+r $(PREFIX)/include/bzlib.h
- cp -f libbz2.a $(PREFIX)/lib
- chmod a+r $(PREFIX)/lib/libbz2.a
- cp -f bzgrep $(PREFIX)/bin/bzgrep
- ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
- ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
- chmod a+x $(PREFIX)/bin/bzgrep
- cp -f bzmore $(PREFIX)/bin/bzmore
- ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
- chmod a+x $(PREFIX)/bin/bzmore
- cp -f bzdiff $(PREFIX)/bin/bzdiff
- ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
- chmod a+x $(PREFIX)/bin/bzdiff
- cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
- chmod a+r $(PREFIX)/man/man1/bzgrep.1
- chmod a+r $(PREFIX)/man/man1/bzmore.1
- chmod a+r $(PREFIX)/man/man1/bzdiff.1
- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
- echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
- echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
+ chmod a+x $(USRPREFIX)/bin/bzip2recover
+ cp -f bzip2.1 $(USRPREFIX)/man/man1
+ chmod a+r $(USRPREFIX)/man/man1/bzip2.1
+ cp -f bzlib.h $(USRPREFIX)/include
+ chmod a+r $(USRPREFIX)/include/bzlib.h
+ cp -f libbz2.a $(USRPREFIX)/lib
+ chmod a+r $(USRPREFIX)/lib/libbz2.a
+ cp -f bzgrep $(USRPREFIX)/bin/bzgrep
+ ln -s -f $(USRPREFIX)/bin/bzgrep $(USRPREFIX)/bin/bzegrep
+ ln -s -f $(USRPREFIX)/bin/bzgrep $(USRPREFIX)/bin/bzfgrep
+ chmod a+x $(USRPREFIX)/bin/bzgrep
+ cp -f bzmore $(USRPREFIX)/bin/bzmore
+ ln -s -f $(USRPREFIX)/bin/bzmore $(USRPREFIX)/bin/bzless
+ chmod a+x $(USRPREFIX)/bin/bzmore
+ cp -f bzdiff $(USRPREFIX)/bin/bzdiff
+ ln -s -f $(USRPREFIX)/bin/bzdiff $(USRPREFIX)/bin/bzcmp
+ chmod a+x $(USRPREFIX)/bin/bzdiff
+ cp -f bzgrep.1 bzmore.1 bzdiff.1 $(USRPREFIX)/man/man1
+ chmod a+r $(USRPREFIX)/man/man1/bzgrep.1
+ chmod a+r $(USRPREFIX)/man/man1/bzmore.1
+ chmod a+r $(USRPREFIX)/man/man1/bzdiff.1
+ echo ".so man1/bzgrep.1" > $(USRPREFIX)/man/man1/bzegrep.1
+ echo ".so man1/bzgrep.1" > $(USRPREFIX)/man/man1/bzfgrep.1
+ echo ".so man1/bzmore.1" > $(USRPREFIX)/man/man1/bzless.1
+ echo ".so man1/bzdiff.1" > $(USRPREFIX)/man/man1/bzcmp.1
clean:
rm -f *.o libbz2.a bzip2 bzip2recover \