Root/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:=2
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 +libpng +libjpeg +libgd +libfreetype
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
49TARGET_CPPFLAGS += -DNDEBUG
50#TARGET_CPPFLAGS += -DDEBUGMODE
51
52TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib -lalleg -lm -lpthread
53
54define Build/Install
55    $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{bin,share}
56$(call Build/Install/Default)
57endef
58
59MAKE_FLAGS += \
60    -f $(PKG_BUILD_DIR)/makefile.linux \
61    CONFIGURED=1 RELEASE=1 DEFAULT_PREFIX=/usr \
62    CPP="$(TARGET_CXX)" \
63    BUILD_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CFLAGS)" \
64    LIBFREETYPE_DIR=$(STAGING_DIR)/usr/include/freetype2 \
65    LIBGD_DIR=$(STAGING_DIR)/usr/include/ \
66    LIBJPEG_DIR=$(STAGING_DIR)/usr/include/ \
67    LIBPNG_DIR=$(STAGING_DIR)/usr/include/ \
68    ZLIB_DIR=$(STAGING_DIR)/usr/include/
69
70
71define Package/ase/install
72    $(INSTALL_DIR) $(1)/usr/{bin,share}
73    $(INSTALL_DIR) $(1)/etc
74    $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
75    $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
76endef
77
78$(eval $(call BuildPackage,ase))
79
80# The following comments configure the Emacs editor. Just ignore them.
81# Local Variables:
82# 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"
83# End:
84

Archive Download this file



interactive