updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / jomar3d / Makefile.diff
blob10e04d4233b58239ea503fbba1cd4a5a639d7f87
1 --- Makefile.orig 2008-09-23 11:49:43.000000000 -0400
2 +++ Makefile 2009-04-17 20:50:07.640427365 -0400
3 @@ -17,7 +17,7 @@
4 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
5 ##
7 -APP = jomar3D
8 +APP = jomar3d
9 APPVERSION=1.1b
11 EXEC = $(APP)
12 @@ -32,20 +32,20 @@
13 VERSION=$(APPVERSION)$(SVNREV)
15 DESTDIR =
16 -BASEDIR = $(DESTDIR)/usr/local
17 -BINDIR = $(BASEDIR)/games
18 -DATADIR = $(BASEDIR)/share/games/$(APP)
19 +BASEDIR = $(DESTDIR)/usr
20 +BINDIR = $(BASEDIR)/bin
21 +DATADIR = $(BASEDIR)/share/$(APP)
22 #DATADIR = .
24 SOUNDDIR = $(DATADIR)/sound
25 MUSICDIR = $(DATADIR)/music
26 SKINDIR = $(DATADIR)/skin
27 LANGDIR = $(DATADIR)/lang
28 -SCOREDIR = $(DESTDIR)/var/games
29 +SCOREDIR = ${pkgdir}/var/games
30 #SCOREDIR = .
32 -DESKTOPDIR = $(BASEDIR)/share/applications
33 -ICONDIR = $(BASEDIR)/share/pixmaps
34 +DESKTOPDIR = ${pkgdir}/$(BASEDIR)/share/applications
35 +ICONDIR = ${pkgdir}/$(BASEDIR)/share/pixmaps
37 SCOREFILE = $(SCOREDIR)/$(APP)-scores
38 DESKTOPFILE = $(DESKTOPDIR)/$(APP).desktop
39 @@ -130,48 +130,48 @@
40 run: $(EXEC)
41 ./"$(EXEC)"
43 -install: install-bin install-data install-skins install-score verif_path #list-files
44 +install: install-bin install-icon verif_path #list-files
46 install-bin:
47 install -d "$(BINDIR)"
48 install -m 2755 -g games "$(EXEC)" "$(BINDIR)"
50 -install-data:
51 - install -d "$(DATADIR)"
52 - install -d "$(MUSICDIR)"
53 - install -m 644 music/* "$(MUSICDIR)"
54 - install -d "$(SOUNDDIR)"
55 - install -m 644 sound/* "$(SOUNDDIR)"
56 - install -d "$(LANGDIR)"
57 - install -m 644 lang/*.jlg "$(LANGDIR)"
58 +#install-data:
59 +# install -d "$(DATADIR)"
60 +# install -d "$(MUSICDIR)"
61 +# install -m 644 music/* "$(MUSICDIR)"
62 +# install -d "$(SOUNDDIR)"
63 +# install -m 644 sound/* "$(SOUNDDIR)"
64 +# install -d "$(LANGDIR)"
65 +# install -m 644 lang/*.jlg "$(LANGDIR)"
67 -install-desktop: install-icon
68 - TEMPFILE=`tempfile`; \
69 - cat "$(APP).desktop" \
70 - | sed 's#$${EXEC}#$(BINDIR)/$(EXEC)#g' \
71 - | sed 's#$${DATADIR}#$(DATADIR)#g' \
72 - > $$TEMPFILE; \
73 - install -d "$(DESKTOPDIR)"; \
74 - install -m 644 $$TEMPFILE "$(DESKTOPFILE)"; \
75 - rm -f $$TEMPFILE
76 +#install-desktop: install-icon
77 +# TEMPFILE=`tempfile`; \
78 +# cat "$(APP).desktop" \
79 +# | sed 's#$${EXEC}#$(BINDIR)/$(EXEC)#g' \
80 +# | sed 's#$${DATADIR}#$(DATADIR)#g' \
81 +# > $$TEMPFILE; \
82 +# install -d "$(DESKTOPDIR)"; \
83 +# install -m 644 $$TEMPFILE "$(DESKTOPFILE)"; \
84 +# rm -f $$TEMPFILE
86 install-icon:
87 install -d "$(ICONDIR)"
88 install -m 644 "$(APP).svg" "$(ICONFILE)"
90 -install-skins: install-data
91 - install -d "$(SKINDIR)"
92 - cd skin && \
93 - for skin in *.jsk; do \
94 - install -d "$(SKINDIR)"/$$skin; \
95 - install -m 644 $$skin/* "$(SKINDIR)"/$$skin; \
96 - done
97 +#install-skins: install-data
98 +# install -d "$(SKINDIR)"
99 +# cd skin && \
100 +# for skin in *.jsk; do \
101 +# install -d "$(SKINDIR)"/$$skin; \
102 +# install -m 644 $$skin/* "$(SKINDIR)"/$$skin; \
103 +# done
105 -install-score:
106 - install -d "$(SCOREDIR)"
107 - touch "$(SCOREFILE)" && \
108 - chgrp games "$(SCOREFILE)" && \
109 - chmod 664 "$(SCOREFILE)"
110 +#install-score:
111 +# install -d "$(SCOREDIR)"
112 +# touch "$(SCOREFILE)" && \
113 +# chgrp games "$(SCOREFILE)" && \
114 +# chmod 664 "$(SCOREFILE)"
116 # check if the istallation directory is in the user's PATH
117 verif_path: