3 include $(TOP)/config/make.cfg
5 #MM- ports-graphics : ports-graphics-grafx2
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
12 #MM ports-graphics-grafx2-docs : ports-graphics-grafx2-fetch
14 #MM ports-graphics-grafx2-data : ports-graphics-grafx2-fetch
16 #MM ports-graphics-grafx2-quick : ports-graphics-grafx2-fetch
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 \
80 FILES := $(addprefix $(PORTSDIR)/grafx2/$(ARCHBASE)/grafx2/src/,$(FILES))
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"
86 ############################################################################################################
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
92 ############################################################################################################
96 %build_icons mmake=ports-graphics-grafx2-drawericon \
97 icons=$(ICONS) dir=$(TARGETDIR)/..
99 ############################################################################################################
101 %copy_dir_recursive mmake=ports-graphics-grafx2-docs src=$(PORTSDIR)/grafx2/$(ARCHBASE)/grafx2/doc \
104 %copy_dir_recursive mmake=ports-graphics-grafx2-data src=$(PORTSDIR)/grafx2/$(ARCHBASE)/grafx2/share \
105 dst=$(TARGETDIR)/share