openexr: make architecture independent
[oi-userland.git] / components / encumbered / vobcopy / patches / makefile.patch
blobabcb0ebc4282123062c9cd94ee4bb5381584416b
1 --- vobcopy-1.2.0/Makefile.orig 2016-09-10 00:22:09.805469536 +0200
2 +++ vobcopy-1.2.0/Makefile 2016-09-10 00:22:13.741619295 +0200
3 @@ -4,16 +4,13 @@
4 #stuff places.
5 DESTDIR =
6 CC ?= gcc
7 -#PREFIX += /usr/local
8 -#BINDIR = ${PREFIX}/bin
9 -#MANDIR = ${PREFIX}/man
10 -PREFIX += /usr/local
11 -BINDIR = ${PREFIX}/bin
12 -MANDIR = ${PREFIX}/man
13 -DOCDIR = ${PREFIX}/share/doc/vobcopy
14 -LFS = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
15 -CFLAGS += -I/usr/local//include
16 -LDFLAGS += -ldvdread -L/usr/local//lib
17 +PREFIX ?= /usr/local
18 +BINDIR ?= ${PREFIX}/bin
19 +MANDIR ?= ${PREFIX}/man
20 +DOCDIR ?= ${PREFIX}/share/doc
21 +LFS = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
22 +CFLAGS += -I/usr/include
23 +LDFLAGS+= -ldvdread
25 #This specifies the conversion from .c to .o
26 .c.o:
27 @@ -34,12 +31,6 @@
28 $(CC) -c dvd.c -Wall -ggdb -pedantic $(CFLAGS) $(LFS)
29 $(CC) -o vobcopy vobcopy.o dvd.o -ldvdread
31 -deb:
33 - echo "this here is really really experimental..."
34 - dpkg-buildpackage -rfakeroot -us -uc -tc
37 clean :
38 rm -f vobcopy vobcopy.o dvd.o
40 @@ -47,17 +38,14 @@
41 rm -f vobcopy.o dvd.o *~
43 install:
44 -# mkdir -p $(MANDIR)/man1
45 -# cp vobcopy $(BINDIR)/vobcopy
46 -# cp vobcopy.1 $(MANDIR)/man1/vobcopy.1
47 install -d -m 755 $(DESTDIR)/$(BINDIR)
48 install -d -m 755 $(DESTDIR)/$(MANDIR)/man1
49 install -d -m 755 $(DESTDIR)/$(MANDIR)/de/man1
50 - install -d -m 755 $(DESTDIR)/$(DOCDIR)
51 + install -d -m 755 $(DESTDIR)/$(DOCDIR)/vobcopy
52 install -m 755 vobcopy $(DESTDIR)/$(BINDIR)/vobcopy
53 install -m 644 vobcopy.1 $(DESTDIR)/$(MANDIR)/man1/vobcopy.1
54 install -m 644 vobcopy.1.de $(DESTDIR)/$(MANDIR)/de/man1/vobcopy.1
55 - install -m 644 COPYING Changelog README Release-Notes TODO $(DESTDIR)/$(DOCDIR)
56 + install -m 644 COPYING Changelog README Release-Notes TODO $(DESTDIR)/$(DOCDIR)/vobcopy
58 uninstall:
59 rm -f $(DESTDIR)/$(BINDIR)/vobcopy