2011-03-10 05:11:03 +00:00
|
|
|
class DvdxrwTools < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "DVD+-RW/R tools"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://fy.chalmers.se/~appro/linux/DVD+RW/"
|
|
|
|
url "http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-7.1.tar.gz"
|
|
|
|
sha256 "f8d60f822e914128bcbc5f64fbe3ed131cbff9045dca7e12c5b77b26edde72ca"
|
2010-06-16 15:12:36 +00:00
|
|
|
|
2012-02-22 04:48:36 +00:00
|
|
|
# Respect $PREFIX
|
2014-03-18 17:13:32 +00:00
|
|
|
patch :DATA
|
2010-06-16 15:12:36 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-22 04:48:36 +00:00
|
|
|
bin.mkpath
|
2010-06-16 15:12:36 +00:00
|
|
|
man1.mkpath
|
2012-02-22 04:48:36 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2010-06-16 15:12:36 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/Makefile.m4 b/Makefile.m4
|
|
|
|
index a6a100b..bf7c041 100644
|
|
|
|
--- a/Makefile.m4
|
|
|
|
+++ b/Makefile.m4
|
|
|
|
@@ -30,8 +30,8 @@ LINK.o =$(LINK.cc)
|
|
|
|
# to install set-root-uid, `make BIN_MODE=04755 install'...
|
|
|
|
BIN_MODE?=0755
|
|
|
|
install: dvd+rw-tools
|
|
|
|
- install -o root -m $(BIN_MODE) $(CHAIN) /usr/bin
|
|
|
|
- install -o root -m 0644 growisofs.1 /usr/share/man/man1
|
|
|
|
+ install -m $(BIN_MODE) $(CHAIN) $(PREFIX)/bin
|
|
|
|
+ install -m 0644 growisofs.1 $(PREFIX)/share/man/man1
|
|
|
|
])
|
|
|
|
|
|
|
|
ifelse(OS,MINGW32,[
|