Desktop: Kinetic scrolling and finger friendly UI
[gpodder.git] / data / osx / Makefile
blob16959725e861e1008f16475941245cd42f4115a3
2 # gPodder - A media aggregator and podcast client
3 # Copyright (c) 2005-2010 Thomas Perl and the gPodder Team
5 # gPodder is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # gPodder is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # the installed path of the gpodder script
20 GPODDERSCRIPT=/Users/elelay/misc/macports/svnlocal_dports/gnome/gpodder/gpodder/bin/gpodder
21 # the /Applications directory
22 APPLICATIONSDIR=/tmp/Applications
23 APPDIR=$(APPLICATIONSDIR)/gPodder.app
24 BINDIR=$(APPDIR)/Contents/MacOS
25 RESOURCESDIR=$(APPDIR)/Contents/Resources
26 # current version of gPodder
27 VERSION=2.3
29 # set OSXVERSION to darwin8 to get the Mac OS X Tiger version of the plist.
30 OSXVERSION=darwin8
31 ifeq ($(OSXVERSION),darwin8)
32 PLIST=Info-10.4.plist
33 else
34 PLIST=Info.plist
35 endif
37 all:$(BINDIR)/gpodder\
38 $(RESOURCESDIR)/icon.icns\
39 $(APPDIR)/Contents/PkgInfo\
40 $(APPDIR)/Contents/Info.plist
42 $(BINDIR):
43 mkdir -p $(BINDIR)
45 $(RESOURCESDIR):
46 mkdir -p $(RESOURCESDIR)
48 $(BINDIR)/gpodder: ../../bin/gpodder $(BINDIR)
49 ln -s $(GPODDERSCRIPT) $@
51 $(RESOURCESDIR)/icon.icns: icon.icns $(RESOURCESDIR)
52 install $< $@
54 $(APPDIR)/Contents/PkgInfo: PkgInfo $(RESOURCESDIR)
55 install $< $@
57 $(APPDIR)/Contents/Info.plist: $(PLIST) $(APPDIR)/Contents
58 sed "s|__VERSION__|$(VERSION)|g" $< > $@
60 clean:
61 rm -rf $(APPDIR)
63 .PHONY: all clean dirs