linux makefile patch

Everything related to MakeMKV
Post Reply
wberrier
Posts: 5
Joined: Fri May 16, 2014 8:25 pm

linux makefile patch

Post by wberrier » Fri Dec 19, 2014 4:20 am

Hello,

I'm wondering if the following patch could be applied?

It's typical for build systems on linux to allow PREFIX to be specified.

For some reason, I can't attach the file. This is going to be gross inline, but the idea of it should be pretty straight forward.

--------------------------------------------

--- makemkv-bin-1.9.0/Makefile.orig 2014-11-16 08:38:40.000000000 -0700
+++ makemkv-bin-1.9.0/Makefile 2014-12-18 21:00:27.735697665 -0700
@@ -1,6 +1,7 @@

ARCH=$(shell uname -m)
DESTDIR=
+PREFIX=/usr

ifeq ($(ARCH),i586)
ARCH=i386
@@ -33,26 +34,26 @@
@echo accepted > $@

install: tmp/eula_accepted bin/$(ARCH)/makemkvcon
- rm -f $(DESTDIR)/usr/bin/makemkvcon
- rm -f $(DESTDIR)/usr/bin/mmdtsdec
- rm -f $(DESTDIR)/usr/share/MakeMKV/*.mo.gz
- install -d $(DESTDIR)/usr/share/MakeMKV
- install -d $(DESTDIR)/usr/bin
- install -t $(DESTDIR)/usr/bin bin/$(ARCH)/makemkvcon
- install -t $(DESTDIR)/usr/bin bin/i386/mmdtsdec
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/default.mmcp.xml
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/flac.mmcp.xml
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/wdtv.mmcp.xml
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/aac-stereo.mmcp.xml
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_deu.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_jpn.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_spa.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_ptb.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_dut.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_swe.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_ita.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_chi.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_pol.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_dan.mo.gz
- install -m 644 -t $(DESTDIR)/usr/share/MakeMKV src/share/makemkv_fra.mo.gz
+ rm -f $(DESTDIR)$(PREFIX)/bin/makemkvcon
+ rm -f $(DESTDIR)$(PREFIX)/bin/mmdtsdec
+ rm -f $(DESTDIR)$(PREFIX)/share/MakeMKV/*.mo.gz
+ install -d $(DESTDIR)$(PREFIX)/share/MakeMKV
+ install -d $(DESTDIR)$(PREFIX)/bin
+ install -t $(DESTDIR)$(PREFIX)/bin bin/$(ARCH)/makemkvcon
+ install -t $(DESTDIR)$(PREFIX)/bin bin/i386/mmdtsdec
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/default.mmcp.xml
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/flac.mmcp.xml
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/wdtv.mmcp.xml
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/aac-stereo.mmcp.xml
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_deu.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_jpn.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_spa.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_ptb.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_dut.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_swe.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_ita.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_chi.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_pol.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_dan.mo.gz
+ install -m 644 -t $(DESTDIR)$(PREFIX)/share/MakeMKV src/share/makemkv_fra.mo.gz


----------------

it's basically a search and replace for /usr -> $(PREFIX).

Thanks for the great piece of software!

Wade

Post Reply