GrafX2: add dependency on lua
[aros:aros.git] / ports / graphics / grafx2 / mmakefile.src
1 # $Id$
2
3 include $(TOP)/config/make.cfg
4
5 #MM- ports-graphics : ports-graphics-grafx2
6
7 #MM  ports-graphics-grafx2 : includes linklibs contrib-sdl \
8 #MM    contrib-sdl-sdl-image contrib-sdl-sdl-ttf contrib-development-lua \
9 #MM    ports-graphics-grafx2-fetch ports-graphics-grafx2-docs \
10 #MM    ports-graphics-grafx2-data ports-graphics-grafx2-drawericon
11
12 #MM  ports-graphics-grafx2-docs : ports-graphics-grafx2-fetch
13
14 #MM  ports-graphics-grafx2-data : ports-graphics-grafx2-fetch
15
16 #MM  ports-graphics-grafx2-quick : ports-graphics-grafx2-fetch
17
18 REPOSITORIES := http://grafx2.googlecode.com/files
19 ARCHBASE     := grafx2-2.4.2035-src
20 TARGETDIR    := $(AROS_CONTRIB)/MultiMedia/Gfx/GrafX2
21 SDL_PREFIX   := $(AROS_DEVELOPMENT)
22 USER_CFLAGS  := $(shell $(SDL_PREFIX)/bin/sdl-config --prefix=$(SDL_PREFIX) --cflags) \
23     -I$(AROS_DEVELOPMENT)/include/lua \
24     -D__ENABLE_LUA__ -Wno-unused-but-set-variable \
25     
26
27 FILES := \
28         main \
29         init \
30         graph \
31         sdlscreen \
32         misc \
33         special \
34         buttons \
35         palette \
36         help \
37         operatio \
38         pages \
39         loadsave \
40         readline \
41         engine \
42         filesel \
43         op_c \
44         readini \
45         saveini \
46         shade \
47         keyboard \
48         io \
49         version \
50         text \
51         SFont \
52         setup \
53         pxsimple \
54         pxtall \
55         pxwide \
56         pxdouble \
57         pxtriple \
58         pxtall2 \
59         pxwide2 \
60         pxquad \
61         windows \
62         brush \
63         realpath \
64         mountlist \
65         input \
66         hotkeys \
67         transform \
68         pversion \
69         factory \
70         fileformats \
71         miscfileformats \
72         libraw2crtc \
73         brush_ops \
74         buttons_effects \
75         layers \
76         oldies \
77         tiles \
78         colorred
79
80 FILES := $(addprefix $(PORTSDIR)/grafx2/$(ARCHBASE)/grafx2/src/,$(FILES))
81
82 %build_prog mmake=ports-graphics-grafx2 progname=GrafX2 \
83     files=$(FILES) targetdir=$(TARGETDIR) \
84     uselibs="lua SDL_ttf SDL_image SDL GL jpeg png z freetype2"
85
86 ############################################################################################################
87
88 %fetch mmake=ports-graphics-grafx2-fetch archive=$(ARCHBASE) destination=$(PORTSDIR)/grafx2/$(ARCHBASE) \
89     location=$(PORTSSOURCEDIR) archive_origins=$(REPOSITORIES) suffixes="tgz" \
90     patches_specs=grafx2-2.4.2035-src.diff::-p1
91
92 ############################################################################################################
93
94 ICONS := GrafX2
95
96 %build_icons mmake=ports-graphics-grafx2-drawericon \
97         icons=$(ICONS) dir=$(TARGETDIR)/..
98
99 ############################################################################################################
100
101 %copy_dir_recursive mmake=ports-graphics-grafx2-docs src=$(PORTSDIR)/grafx2/$(ARCHBASE)/grafx2/doc \
102     dst=$(TARGETDIR)/doc
103
104 %copy_dir_recursive mmake=ports-graphics-grafx2-data src=$(PORTSDIR)/grafx2/$(ARCHBASE)/grafx2/share \
105     dst=$(TARGETDIR)/share
106
107 %common