updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / milena / makefile.patch
blob10990a7ce98dff5d1c1944a7ae9084fb887fa4c6
1 --- Makefile.orig 2011-11-17 13:15:45.000000000 +0100
2 +++ Makefile 2011-11-17 13:18:58.000000000 +0100
3 @@ -1,7 +1,6 @@
5 -export prefix=/usr/local
6 +export prefix ?= /usr/local
7 export milena_dir=$(prefix)/share/milena
8 -export doc_dir=$(prefix)/share/doc/milena
9 +export doc_dir=$(DESTDIR)$(prefix)/share/doc/milena
10 export speechd_dir=$(shell ./find_speechd)
11 export distro=$(shell uname -o)
12 export mbrola=$(shell if [ -f ./config.dat ] ; then cat ./config.dat | awk -F= '/mbrola=/ {print $$2}'; fi)
13 @@ -11,7 +10,6 @@
15 all: config.dat
16 make -C src all
17 - make -C data all
18 make -C utils all
19 make -C speechd all
20 make -C milena_ws all
21 @@ -24,7 +22,6 @@
22 clean:
23 rm -f config.dat
24 make -C src clean
25 - make -C data clean
26 make -C utils clean
27 make -C speechd clean
28 make -C milena_ws clean
29 @@ -32,10 +29,8 @@
31 install:
32 make -C src install
33 - ldconfig
34 mkdir -p $(doc_dir)
35 install -m 644 README* $(doc_dir)
36 - make -C data install
37 make -C utils install
38 make -C milena_ws install
39 make -C subplayer install
40 @@ -44,8 +39,6 @@
41 for i in README*;do rm -f $(doc_dir)/"$$i";done
42 if [ -d $(doc_dir) ] ; then rmdir --ignore-fail-on-non-empty $(doc_dir);fi
43 make -C src uninstall
44 - ldconfig
45 - make -C data uninstall
46 make -C utils uninstall
47 make -C milena_ws uninstall
48 make -C subplayer uninstall
49 --- src/Makefile.orig 2011-11-17 13:29:29.000000000 +0100
50 +++ src/Makefile 2011-11-17 13:32:29.000000000 +0100
51 @@ -57,10 +57,13 @@
52 rm -f *~ *.o *.so milena milena.h milena.pc milena_cyrillic.h
54 install: milena
55 + install -dm 0755 $(DESTDIR)$(prefix)/bin
56 + install -dm 0755 $(DESTDIR)$(LIBDIR)/pkgconfig
57 + install -dm 0755 $(DESTDIR)$(prefix)/include
58 install -m 0755 milena $(DESTDIR)$(prefix)/bin
59 install -m 0755 libmilena.so libmilena_mbrola.so $(DESTDIR)$(LIBDIR)
60 install -m 0644 milena.h milena_mbrola.h $(DESTDIR)$(prefix)/include/
61 - if [ -d $(LIBDIR)/pkgconfig ] ; then install -m 0644 milena.pc $(DESTDIR)$(LIBDIR)/pkgconfig; fi
62 + if [ -d $(LIBDIR)/pkgconfig ] ; then install -m 0644 milena.pc $(DESTDIR)$(LIBDIR)/pkgconfig/milena.pc; fi
64 uninstall:
65 rm -f $(DESTDIR)$(prefix)/bin/milena