Date:2011-06-13 13:24:32 (12 years 9 months ago)
Author:David Kühling
Commit:6829840993b593cbed8be455341045a7c7b1ba2d
Message:new package: ASE: allegro sprite editor, a generic drawing and animation program

Files: ase/Makefile (1 diff)
ase/patches/010-makefile.patch (1 diff)
ase/patches/030-pointer-casts.patch (1 diff)
ase/patches/050-gfx-mode.patch (1 diff)

Change Details

ase/Makefile
1#
2# Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de>
3#
4# OpenWRT package for ASEPrite -- the Allegro Sprite Editor
5#
6# License GPLv2 or later. NO WARRANTY.
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ase
11PKG_VERSION:=0.8.2
12PKG_RELEASE:=1
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
14PKG_SOURCE_URL:=http://aseprite.googlecode.com/files/
15PKG_MD5SUM:=ef941a91a05646c39005748b4d2178ed
16PKG_INSTALL:=1
17PKG_BUILD_PARALLEL:=1
18
19#PKG_BUILD_DEPENDS := liballegro
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/ase/Default
24  TITLE:=Allegro Sprite Aditor
25  SECTION:=utils
26  CATEGORY:=Utilities
27  URL:=http://www.aseprite.org/
28endef
29
30define Package/ase/Default/description
31ASE (now ASEPRITE, aka Allegro Sprite Editor) is an open source program to
32create animated sprites & pixel art. Sprites are little images that can be
33used in your website or in a video game. You can draw characters with
34movement, intros, textures, patterns, backgrounds, logos, color palettes,
35isometric levels, etc.
36endef
37
38define Package/ase
39$(call Package/ase/Default)
40  TITLE +=
41  DEPENDS:=+liballegro
42endef
43
44define Package/ase/description
45$(call Package/ase/Default/description)
46endef
47
48#TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib
49#TARGET_CPPFLAGS +=
50
51TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib -lalleg
52
53define Build/Install
54    $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{bin,share}
55$(call Build/Install/Default)
56endef
57
58MAKE_FLAGS += \
59    -f $(PKG_BUILD_DIR)/makefile.linux \
60    CONFIGURED=1 RELEASE=1 DEFAULT_PREFIX=/usr \
61    CPP="$(TARGET_CXX)" \
62    BUILD_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CFLAGS)"
63
64define Package/ase/install
65    $(INSTALL_DIR) $(1)/usr/{bin,share}
66    $(INSTALL_DIR) $(1)/etc
67    $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
68    $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
69endef
70
71$(eval $(call BuildPackage,ase))
72
73# The following comments configure the Emacs editor. Just ignore them.
74# Local Variables:
75# compile-command: "cd ~/src/nanonote/ase-0.8.2 && ~/bin/quilt-export target && make -C ~/h/src/qi/openwrt-xburst package/ase/compile -j2 V=99"
76# End:
ase/patches/010-makefile.patch
1Index: ase-0.8.2/makefile.gcc
2===================================================================
3--- ase-0.8.2.orig/makefile.gcc 2011-06-13 12:05:31.000000000 +0200
4@@ -21,15 +21,16 @@
5 LFLAGS += $(THIRD_PARTY_LIBS)
6
7 ifdef PROFILE
8- CFLAGS += -pg -O3 -DNDEBUG
9- LFLAGS += -pg -O3 -DNDEBUG
10+ CFLAGS += -pg -DNDEBUG
11+ LFLAGS += -pg -DNDEBUG
12 else
13 ifdef DEBUGMODE
14   CFLAGS += -g3 -DDEBUGMODE
15   LFLAGS += -g3
16 else
17- CFLAGS += -s -O3 -DNDEBUG
18- LFLAGS += -s -O3 -DNDEBUG
19+ # order of include dirs important, need to add BUILD_CFLAGS after -I above
20+ CFLAGS += -DNDEBUG $(BUILD_CFLAGS)
21+ LFLAGS += -DNDEBUG
22 endif
23 endif
24
25Index: ase-0.8.2/makefile.linux
26===================================================================
27--- ase-0.8.2.orig/makefile.linux 2011-06-13 12:05:31.000000000 +0200
28@@ -18,8 +18,8 @@
29 CFLAGS = `allegro-config --cflags debug`
30 LFLAGS = `allegro-config --libs debug`
31 else
32-CFLAGS = `allegro-config --cflags`
33-LFLAGS = `allegro-config --libs`
34+CFLAGS =
35+LFLAGS = $(LDFLAGS)
36 endif
37
38 ######################################################################
ase/patches/030-pointer-casts.patch
1Index: ase-0.8.2/src/widgets/groupbut.cpp
2===================================================================
3--- ase-0.8.2.orig/src/widgets/groupbut.cpp 2010-11-28 18:47:26.000000000 +0100
4@@ -101,7 +101,7 @@
5   JWidget sel = find_selected(group);
6
7   if (sel)
8- return (int)sel->user_data[1];
9+ return (long)sel->user_data[1];
10   else
11     return -1;
12 }
13@@ -110,7 +110,7 @@
14 {
15   JWidget sel = find_selected(group);
16
17- if (!sel || (int)sel->user_data[1] != index) {
18+ if (!sel || (long)sel->user_data[1] != index) {
19     sel->setSelected(false);
20     select_button(group, index);
21   }
22@@ -137,7 +137,7 @@
23   JLink link;
24
25   if (widget->type == JI_RADIO) {
26- if ((int)widget->user_data[1] == index) {
27+ if ((long)widget->user_data[1] == index) {
28       widget->setSelected(true);
29       return true;
30     }
ase/patches/050-gfx-mode.patch
1Index: ase-0.8.2/src/modules/gui.cpp
2===================================================================
3--- ase-0.8.2.orig/src/modules/gui.cpp 2011-06-13 13:08:58.000000000 +0200
4@@ -221,8 +221,8 @@
5     has_desktop = get_desktop_resolution(&dsk_w, &dsk_h) == 0;
6
7     /* we must extract some space for the windows borders */
8- dsk_w -= 16;
9- dsk_h -= 32;
10+ // dsk_w -= 16;
11+ // dsk_h -= 32;
12
13     /* try to get desktop resolution */
14     if (has_desktop) {
15@@ -397,7 +397,7 @@
16   w = get_config_int("GfxMode", "Width", 0);
17   h = get_config_int("GfxMode", "Height", 0);
18   bpp = get_config_int("GfxMode", "Depth", 0);
19- fullscreen = get_config_bool("GfxMode", "FullScreen", false);
20+ fullscreen = get_config_bool("GfxMode", "FullScreen", true);
21   screen_scaling = get_config_int("GfxMode", "Scale", 1);
22   screen_scaling = MID(1, screen_scaling, 4);
23

Archive Download the corresponding diff file



interactive