Ticket #15684: patch-Makefile.in

File patch-Makefile.in, 3.2 KB (added by mlund (Mikael Lund), 16 years ago)

Patch file

Line 
1--- Makefile.in.orig    2008-06-19 22:39:08.000000000 +0200
2+++ Makefile.in 2008-06-19 22:53:47.000000000 +0200
3@@ -34,40 +34,40 @@
4        $(MAKE) -C src
5 
6 uadecoreinstall:       $(UADECORE)
7-       mkdir -p "$(LIBDIR)" "$(PKGCONFIGDIR)"
8-       chmod og+rx "$(LIBDIR)"
9-       cp -f src/$(UADECORENAME) "$(LIBDIR)"/
10-       chmod og+rx "$(LIBDIR)/$(UADECORENAME)"
11-       install uade.pc $(PKGCONFIGDIR)/
12-       chmod og+rx $(PKGCONFIGDIR)
13-       chmod 644 $(PKGCONFIGDIR)/uade.pc
14+       mkdir -p "$(DESTDIR)$(LIBDIR)" "$(DESTDIR)$(PKGCONFIGDIR)"
15+       chmod og+rx "$(DESTDIR)$(LIBDIR)"
16+       cp -f src/$(UADECORENAME) "$(DESTDIR)$(LIBDIR)"/
17+       chmod og+rx "$(DESTDIR)$(LIBDIR)/$(UADECORENAME)"
18+       install uade.pc $(DESTDIR)$(PKGCONFIGDIR)/
19+       chmod og+rx $(DESTDIR)$(PKGCONFIGDIR)
20+       chmod 644 $(DESTDIR)$(PKGCONFIGDIR)/uade.pc
21 
22 uade123:       
23        $(MAKE) -C src/frontends/uade123
24 
25 uade123install:        $(UADE123)
26-       mkdir -p "$(BINDIR)" "$(MANDIR)"
27-       rm -f "$(BINDIR)/$(UADE123NAME)" || true
28-       cp -f src/frontends/uade123/$(UADE123NAME) "$(BINDIR)/" || true
29-       chmod og+rx "$(BINDIR)/$(UADE123NAME)"
30-       cp doc/uade123.1 "$(MANDIR)"/
31-       chmod og+r "$(MANDIR)"/uade123.1
32+       mkdir -p "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)"
33+       rm -f "$(DESTDIR)$(BINDIR)/$(UADE123NAME)" || true
34+       cp -f src/frontends/uade123/$(UADE123NAME) "$(DESTDIR)$(BINDIR)/" || true
35+       chmod og+rx "$(DESTDIR)$(BINDIR)/$(UADE123NAME)"
36+       cp doc/uade123.1 "$(DESTDIR)$(MANDIR)"/
37+       chmod og+r "$(DESTDIR)$(MANDIR)"/uade123.1
38 
39 xmmsplugin:   
40        $(MAKE) -C src/frontends/xmms
41 
42 xmmsplugininstall:     $(XMMSPLUGIN)
43-       mkdir -p "$(XMMSPLUGINDIR)" "$(BINDIR)"
44-       install src/frontends/xmms/libuade2.so "$(XMMSPLUGINDIR)"
45-       install contrib/uadexmmsadd "$(BINDIR)"/
46+       mkdir -p "$(DESTDIR)$(XMMSPLUGINDIR)" "$(DESTDIR)$(BINDIR)"
47+       install src/frontends/xmms/libuade2.so "$(DESTDIR)$(XMMSPLUGINDIR)"
48+       install contrib/uadexmmsadd "$(DESTDIR)$(BINDIR)"/
49 
50 audaciousplugin:       
51        $(MAKE) -C src/frontends/audacious
52 
53 audaciousplugininstall:        $(AUDACIOUSPLUGIN)
54-       mkdir -p "$(AUDACIOUSPLUGINDIR)" "$(BINDIR)"
55-       install src/frontends/audacious/libuade2.so "$(AUDACIOUSPLUGINDIR)"
56-       install contrib/uadexmmsadd "$(BINDIR)"/
57+       mkdir -p "$(DESTDIR)$(AUDACIOUSPLUGINDIR)" "$(DESTDIR)$(BINDIR)"
58+       install src/frontends/audacious/libuade2.so "$(DESTDIR)$(AUDACIOUSPLUGINDIR)"
59+       install contrib/uadexmmsadd "$(DESTDIR)$(BINDIR)"/
60 
61 src/include/uadeconfig.h:     
62        @echo ""
63@@ -82,14 +82,14 @@
64        src/frontends/uade123/$(UADE123NAME) --basedir=. -S amigasrc/score/score -P players/AbyssHighestExperience -m songs/AHX.Cruisin -u src/uadecore
65 
66 install:       
67-       mkdir -p "$(DATADIR)/players"
68-       test -e "$(DATADIR)/uade.conf" || cp -f uade.conf "$(DATADIR)/"
69-       cp -f amigasrc/score/score uaerc eagleplayer.conf "$(DATADIR)/"
70-       cp -rf players "$(DATADIR)/" || true
71-       chmod -R og+rX "$(DATADIR)"
72+       mkdir -p "$(DESTDIR)$(DATADIR)/players"
73+       test -e "$(DESTDIR)$(DATADIR)/uade.conf" || cp -f uade.conf "$(DESTDIR)$(DATADIR)/"
74+       cp -f amigasrc/score/score uaerc eagleplayer.conf "$(DESTDIR)$(DATADIR)/"
75+       cp -rf players "$(DESTDIR)$(DATADIR)/" || true
76+       chmod -R og+rX "$(DESTDIR)$(DATADIR)"
77        $(MAKE) installagain
78        $(MAKE) feinstall
79-       install src/frontends/mod2ogg/mod2ogg2.sh "$(BINDIR)/"
80+       install src/frontends/mod2ogg/mod2ogg2.sh "$(DESTDIR)$(BINDIR)/"
81 
82 installagain:  $(UADECOREINSTALL)
83        @true