Blame SOURCES/dvd+rw-tools-7.0.manpatch

d00ab9
diff -ur dvd+rw-tools-7.0/Makefile.m4 dvd+rw-tools-7.0-manpatch/Makefile.m4
d00ab9
--- dvd+rw-tools-7.0/Makefile.m4	2006-09-24 19:55:19.000000000 +0200
d00ab9
+++ dvd+rw-tools-7.0-manpatch/Makefile.m4	2006-10-09 10:44:31.000000000 +0200
d00ab9
@@ -191,7 +191,7 @@
d00ab9
 LINK.o	=$(LINK.cc)
d00ab9
 
d00ab9
 prefix?=/usr/local
d00ab9
-manprefix?=$(shell case $(prefix) in (*/usr/?*) echo $(prefix)/man ;; (*) echo $(prefix)/share/man ;; esac)
d00ab9
+mandir?=$(shell case $(prefix) in (*/usr/?*) echo $(prefix)/man ;; (*) echo $(prefix)/share/man ;; esac)
d00ab9
 
d00ab9
 bin_mode?=0755	# yes, default is *no* set-uid
d00ab9
 minus_o:=$(shell [[ `id -u` == 0 ]] && echo "-o root")
d00ab9
@@ -199,10 +199,10 @@
d00ab9
 install:	dvd+rw-tools
d00ab9
 	[[ -d $(prefix)/bin ]] || mkdir -p $(prefix)/bin
d00ab9
 	install $(minus_o) -m $(bin_mode) $(CHAIN) $(prefix)/bin
d00ab9
-	[[ -d $(manprefix)/man1 ]] || mkdir -p $(manprefix)/man1
d00ab9
-	install $(minus_o) -m 0644 growisofs.1 $(manprefix)/man1
d00ab9
-	-[[ -f rpl8 ]] && install $(minus_o) -m $(bin_mode) rpl8 $(prefix)/bin; :
d00ab9
-	-[[ -f btcflash ]] && install $(minus_o) -m $(bin_mode) btcflash $(prefix)/bin; :
d00ab9
+	[[ -d $(mandir)/man1 ]] || mkdir -p $(mandir)/man1
d00ab9
+	install $(minus_o) -m 0644 growisofs.1 $(mandir)/man1
d00ab9
+	-[[ -f rpl8 ]] && install $(minus_o) -m $(bin_mode) rpl8 $(prefix)/bin || :
d00ab9
+	-[[ -f btcflash ]] && install $(minus_o) -m $(bin_mode) btcflash $(prefix)/bin || :
d00ab9
 ])
d00ab9
 
d00ab9
 # common section