1 --- Makefile.orig 2008-09-23 11:49:43.000000000 -0400
2 +++ Makefile 2009-04-17 20:50:07.640427365 -0400
4 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
13 VERSION=$(APPVERSION)$(SVNREV)
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)
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
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
43 -install: install-bin install-data install-skins install-score verif_path #list-files
44 +install: install-bin install-icon verif_path #list-files
47 install -d "$(BINDIR)"
48 install -m 2755 -g games "$(EXEC)" "$(BINDIR)"
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)"
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' \
73 - install -d "$(DESKTOPDIR)"; \
74 - install -m 644 $$TEMPFILE "$(DESKTOPFILE)"; \
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' \
82 +# install -d "$(DESKTOPDIR)"; \
83 +# install -m 644 $$TEMPFILE "$(DESKTOPFILE)"; \
87 install -d "$(ICONDIR)"
88 install -m 644 "$(APP).svg" "$(ICONFILE)"
90 -install-skins: install-data
91 - install -d "$(SKINDIR)"
93 - for skin in *.jsk; do \
94 - install -d "$(SKINDIR)"/$$skin; \
95 - install -m 644 $$skin/* "$(SKINDIR)"/$$skin; \
97 +#install-skins: install-data
98 +# install -d "$(SKINDIR)"
100 +# for skin in *.jsk; do \
101 +# install -d "$(SKINDIR)"/$$skin; \
102 +# install -m 644 $$skin/* "$(SKINDIR)"/$$skin; \
106 - install -d "$(SCOREDIR)"
107 - touch "$(SCOREFILE)" && \
108 - chgrp games "$(SCOREFILE)" && \
109 - chmod 664 "$(SCOREFILE)"
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