Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
pbzip2
pbzip2-makefile.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pbzip2-makefile.patch of Package pbzip2
Index: Makefile =================================================================== --- Makefile.orig +++ Makefile @@ -17,7 +17,7 @@ LDLIBS_PTHREAD = -lpthread # Optimization flags -CXXFLAGS = -O2 +CXXFLAGS = $(OPTFLAGS) #CXXFLAGS += -g -Wall #CXXFLAGS += -ansi @@ -60,6 +60,9 @@ LDLIBS += $(LDLIBS_PTHREAD) # Where you want pbzip2 installed when you do 'make install' PREFIX = /usr +DESTDIR= +BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/man all: pbzip2 @@ -74,16 +77,10 @@ pbzip2-static: pbzip2.cpp BZ2StreamScann # Install the binary pbzip2 program and man page install: pbzip2 - if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi - if ( test ! -d $(PREFIX)/share ) ; then mkdir -p $(PREFIX)/share ; fi - if ( test ! -d $(PREFIX)/share/man ) ; then mkdir -p $(PREFIX)/share/man ; fi - if ( test ! -d $(PREFIX)/share/man/man1 ) ; then mkdir -p $(PREFIX)/share/man/man1 ; fi - cp -f pbzip2 $(PREFIX)/bin/pbzip2 - chmod a+x $(PREFIX)/bin/pbzip2 - ln -s -f pbzip2 $(PREFIX)/bin/pbunzip2 - ln -s -f pbzip2 $(PREFIX)/bin/pbzcat - cp -f pbzip2.1 $(PREFIX)/share/man/man1 - chmod a+r $(PREFIX)/share/man/man1/pbzip2.1 + install -D -m0755 pbzip2 $(DESTDIR)$(BINDIR)/pbzip2 + ln -s -f pbzip2 $(DESTDIR)$(BINDIR)/pbunzip2 + ln -s -f pbzip2 $(DESTDIR)$(BINDIR)/pbzcat + install -D -m0644 pbzip2.1 $(DESTDIR)$(MANDIR)/man1/pbzip2.1 clean: rm -f *.o pbzip2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor