Don't copy the makefiles.
[aros:aros.git] / ports / game / circuslinux / mmakefile.src
1 # $Id$
2
3 include $(TOP)/config/make.cfg
4
5 #MM- ports-game : ports-game-circuslinux
6
7 #MM  ports-game-circuslinux : includes linklibs contrib-sdl \
8 #MM    contrib-sdl-sdl-image \
9 #MM    ports-game-circuslinux-data ports-game-circuslinux-cpy \
10 #MM    ports-game-circuslinux-drawericon ports-game-circuslinux-fetch
11
12 #MM  ports-game-circuslinux-data : ports-game-circuslinux-fetch
13
14 #MM  ports-game-circuslinux-quick : ports-game-circuslinux-fetch
15
16 REPOSITORIES := ftp://ftp.tuxpaint.org/unix/x/circus-linux/src
17 ARCHBASE     := circuslinux-1.0.3
18 TARGETDIR    := $(AROS_CONTRIB)/Games/CircusLinux
19 SDL_PREFIX   := $(AROS_DEVELOPMENT)
20 USER_CFLAGS  := $(shell $(SDL_PREFIX)/bin/sdl-config --prefix=$(SDL_PREFIX) --cflags) \
21                 -DDATA_PREFIX=\"PROGDIR:data/\" -DJOY_YES -DNOSOUND -DVERSION=\"1.0.3\"
22
23 # sound disabled because it crashes
24
25 FILES := $(PORTSDIR)/circuslinux/$(ARCHBASE)/circuslinux
26
27 %build_prog mmake=ports-game-circuslinux progname=CircusLinux \
28     files=$(FILES) targetdir=$(TARGETDIR) \
29     uselibs="SDL_image png jpeg SDL GL z"
30
31 %fetch mmake=ports-game-circuslinux-fetch archive=$(ARCHBASE) destination=$(PORTSDIR)/circuslinux \
32     location=$(PORTSSOURCEDIR) archive_origins=$(REPOSITORIES) suffixes="tar.gz" \
33     patches_specs=circuslinux-1.0.3-aros.diff:$(ARCHBASE):-p1
34
35 ICONS := CircusLinux
36
37 %build_icons mmake=ports-game-circuslinux-drawericon \
38         icons=$(ICONS) dir=$(TARGETDIR)/..
39
40 %copy_dir_recursive mmake=ports-game-circuslinux-data src=$(PORTSDIR)/circuslinux/$(ARCHBASE)/data \
41     dst=$(TARGETDIR)/data excludefiles="Makefile.in Makefile.am"
42
43 CPYFILES := CHANGES.txt COPYING.txt FAQ.txt README.txt
44
45 %copy_files_q mmake=ports-game-circuslinux-cpy files=$(CPYFILES) src=$(PORTSDIR)/circuslinux/$(ARCHBASE) \
46     dst=$(TARGETDIR)
47
48 %common