exec.library: Make semaphore functions use spinlocks
[aros:aros.git] / ports / graphics / lunapaint / mmakefile.src
1 # $Id$
2
3 include $(TOP)/config/make.cfg
4
5 ##MM- ports-graphics : ports-graphics-$(AROS_TARGET_CPU)
6
7 ##MM- ports-graphics-i386 : ports-graphics-lunapaint
8 ##MM- ports-graphics-arm : ports-graphics-lunapaint
9
10 #MM  ports-graphics-lunapaint : includes linklibs workbench-libs-freetype-linklib ports-graphics-lunapaint-fetch \
11 #MM  ports-graphics-lunapaint-data ports-graphics-lunapaint-drawericon \
12 #MM  ports-graphics-lunapaint-cpy \
13 #MM  ports-graphics-lunapaint-catalogs \
14 #MM  ports-graphics-lunapaint-deficon
15
16 #MM  ports-graphics-lunapaint-data : ports-graphics-lunapaint-fetch
17
18 #MM  ports-graphics-lunapaint-quick : ports-graphics-lunapaint-fetch
19
20 REPOSITORIES := http://download.berlios.de/lunapaintami
21 ARCHBASE     := lunapaint-0.5
22 TARGETDIR    := $(AROS_CONTRIB)/MultiMedia/Gfx/Lunapaint
23 DEFICON      := def_Lunapaint
24
25 # Next version of Lunapaint shouldn't need -fgnu89-inline anymore
26 USER_CFLAGS  := -fgnu89-inline -fno-strict-aliasing
27 USER_INCLUDES:= -I$(PORTSDIR)/lunapaint/$(ARCHBASE)/src
28
29 FILES := \
30         src/main \
31         src/math/math \
32         src/app/events \
33         src/app/gui \
34         src/app/text_to_brush \
35         src/app/toolbox \
36         src/app/preferences \
37         src/app/new_image \
38         src/app/layers \
39         src/app/parts \
40         src/app/canvas \
41         src/app/export_import \
42         src/app/project \
43         src/app/animation \
44         src/app/about_window \
45         src/app/palette_editor \
46         src/app/locale \
47         src/core/effects \
48         src/core/color \
49         src/core/drawtools \
50         src/core/canvas \
51         src/core/tools
52 FILES := $(addprefix $(PORTSDIR)/lunapaint/$(ARCHBASE)/,$(FILES))
53
54 %build_prog mmake=ports-graphics-lunapaint progname=Lunapaint \
55     files=$(FILES) targetdir=$(TARGETDIR) \
56     uselibs="mui png z freetype2"
57
58
59 %fetch mmake=ports-graphics-lunapaint-fetch archive=$(ARCHBASE) destination=$(PORTSDIR)/lunapaint \
60     patches_specs=lunapaint-0.5.patch:lunapaint-0.5:-p1 \
61     location=$(PORTSSOURCEDIR) archive_origins=$(REPOSITORIES) suffixes="tar.bz2"
62
63
64 ICONS := Lunapaint
65
66 %build_icons mmake=ports-graphics-lunapaint-drawericon \
67     icons=$(ICONS) dir=$(TARGETDIR)/..
68
69 %build_icons mmake=ports-graphics-lunapaint-deficon \
70     icons=$(DEFICON) dir=$(AROS_ENVARC)/SYS
71
72 %copy_dir_recursive mmake=ports-graphics-lunapaint-data src=$(PORTSDIR)/lunapaint/$(ARCHBASE)/data \
73 dst=$(TARGETDIR)/data
74
75
76 CPFILES := BUGS Changelog COPYING default.palette Lunapaint.info lunapaint.prefs README TODO
77
78 %copy_files_q mmake=ports-graphics-lunapaint-cpy files=$(CPFILES) src=$(PORTSDIR)/lunapaint/$(ARCHBASE) \
79     dst=$(TARGETDIR)
80
81 %build_catalogs mmake=ports-graphics-lunapaint-catalogs \
82                 name=Lunapaint subdir= \
83                 source=$(PORTSDIR)/lunapaint/$(ARCHBASE)/src/app/strings.h \
84                 srcdir=$(PORTSDIR)/lunapaint/$(ARCHBASE)/src/app/catalogs \
85                 dir=$(TARGETDIR)/Catalogs
86
87 %common