OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=ase |
| 11 | PKG_VERSION:=0.8.2 |
| 12 | PKG_RELEASE:=2 |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip |
| 14 | PKG_SOURCE_URL:=http://aseprite.googlecode.com/files/ |
| 15 | PKG_MD5SUM:=ef941a91a05646c39005748b4d2178ed |
| 16 | PKG_INSTALL:=1 |
| 17 | PKG_BUILD_PARALLEL:=1 |
| 18 | |
| 19 | #PKG_BUILD_DEPENDS := liballegro |
| 20 | |
| 21 | include $(INCLUDE_DIR)/package.mk |
| 22 | |
| 23 | define Package/ase/Default |
| 24 | TITLE:=Allegro Sprite Aditor |
| 25 | SECTION:=utils |
| 26 | CATEGORY:=Utilities |
| 27 | URL:=http://www.aseprite.org/ |
| 28 | endef |
| 29 | |
| 30 | define Package/ase/Default/description |
| 31 | ASE (now ASEPRITE, aka Allegro Sprite Editor) is an open source program to |
| 32 | create animated sprites & pixel art. Sprites are little images that can be |
| 33 | used in your website or in a video game. You can draw characters with |
| 34 | movement, intros, textures, patterns, backgrounds, logos, color palettes, |
| 35 | isometric levels, etc. |
| 36 | endef |
| 37 | |
| 38 | define Package/ase |
| 39 | $(call Package/ase/Default) |
| 40 | TITLE += |
| 41 | DEPENDS:=+liballegro +libpng +libjpeg +libgd +libfreetype |
| 42 | endef |
| 43 | |
| 44 | define Package/ase/description |
| 45 | $(call Package/ase/Default/description) |
| 46 | endef |
| 47 | |
| 48 | #TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib |
| 49 | TARGET_CPPFLAGS += -DNDEBUG |
| 50 | #TARGET_CPPFLAGS += -DDEBUGMODE |
| 51 | |
| 52 | TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib -lalleg |
| 53 | |
| 54 | define Build/Install |
| 55 | $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{bin,share} |
| 56 | $(call Build/Install/Default) |
| 57 | endef |
| 58 | |
| 59 | MAKE_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 | |
| 71 | define 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/ |
| 76 | endef |
| 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 |
