OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | include $(TOPDIR)/rules.mk |
2 | |
3 | PKG_NAME:=ascii-paint |
4 | PKG_REV:=13 |
5 | PKG_VERSION:=r$(PKG_REV) |
6 | PKG_RELEASE:=1 |
7 | |
8 | PKG_SOURCE_PROTO:=svn |
9 | PKG_SOURCE_VERSION:=$(PKG_REV) |
10 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
12 | PKG_SOURCE_URL:=http://ascii-paint.googlecode.com/svn/branches/nanonote/ |
13 | PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/ |
14 | |
15 | |
16 | include $(INCLUDE_DIR)/package.mk |
17 | include $(INCLUDE_DIR)/cmake.mk |
18 | |
19 | define Package/ascii-paint |
20 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
21 | SECTION:=libs |
22 | CATEGORY:=Libraries |
23 | TITLE:=Ascii-Paint |
24 | URL:=http://code.google.com/p/ascii-paint/ |
25 | DEPENDS:=+libtcod |
26 | endef |
27 | |
28 | define Package/ascii-paint/description |
29 | ASCII-Paint is a simple, open source painting program which uses ASCII characters instead of pixels to draw images. It was made to help rogue-like developers, though it can be used by anyone. |
30 | endef |
31 | |
32 | TARGET_CFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ |
33 | -L$(STAGING_DIR)/usr/lib |
34 | |
35 | CMAKE_OPTIONS+= -DCMAKE_C_COMPILER=$(TOOLCHAIN_DIR)/bin/$(TARGET_CC) \ |
36 | -DCMAKE_CXX_COMPILER=$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX) \ |
37 | -DQT_QMAKE_EXECUTABLE=$(STAGING_DIR_HOST)/bin/qmake \ |
38 | -DQT_MOC_EXECUTABLE=$(STAGING_DIR_HOST)/bin/moc \ |
39 | -DQT_UIC_EXECUTABLE=$(STAGING_DIR_HOST)/bin/uic \ |
40 | -DQT_RCC_EXECUTABLE=$(STAGING_DIR_HOST)/bin/rcc |
41 | |
42 | define Package/ascii-paint/install |
43 | $(INSTALL_DIR) $(1)/usr/lib/ascii-paint |
44 | $(CP) $(PKG_BUILD_DIR)/ascii-paint $(1)/usr/lib/ascii-paint |
45 | $(CP) $(PKG_BUILD_DIR)/ascii-paint.cfg $(1)/usr/lib/ascii-paint |
46 | $(CP) $(PKG_BUILD_DIR)/terminal.png $(1)/usr/lib/ascii-paint |
47 | endef |
48 | |
49 | $(eval $(call BuildPackage,ascii-paint)) |
50 |