Root/alfilesel/Makefile

1#
2# Copyright (C) 2012 David Kuehling <dvdkhlng TA gmx TOD de>
3#
4# License GPLv2 or later. NO WARRANTY.
5#
6# OpenWRT package that compile a simple allegro game library file dialog
7# helper application.
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=alfilesel
12PKG_VERSION:=0.1.0
13PKG_RELEASE:=3
14#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15#PKG_SOURCE_URL:=@SF/forth-brainless
16#PKG_MD5SUM:=ed4a4cbbe23628b17edc5aa01f32f7fb
17#PKG_INSTALL:=1
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/alfilesel
22  SECTION:=utilities
23  CATEGORY:=Utilities
24  MAINTAINER:="David Kuehling" <dvdkhlng TA gmx TOD de>
25  TITLE:=Graphical file selector app to use in shell scripts
26  DEPENDS:=+liballegro +liballegro-jpeg +liballegro-png
27endef
28
29define Package/alfilesel/description
30A graphical file selector dialog using the allegro game library. Use it
31to make allow gmenu2x shortcuts start applications that don\'t provide a menu
32themselves (such as mplayer).
33endef
34
35define Build/Configure
36
37endef
38
39TARGET_LDFLAGS += -ljpgalleg -lloadpng -lalleg -lpng -lz -lm -lpthread -lrt
40
41define Build/Configure
42    $(CP) ./files/alfilesel.c $(PKG_BUILD_DIR)/
43endef
44
45define Build/Compile
46    $(call Build/Compile/Default, alfilesel)
47endef
48
49define Package/alfilesel/install
50    $(INSTALL_DIR) $(1)/usr/bin
51    $(INSTALL_BIN) $(PKG_BUILD_DIR)/alfilesel $(1)/usr/bin/
52endef
53
54$(eval $(call BuildPackage,alfilesel))
55
56# The following comments configure the Emacs editor. Just ignore them.
57# Local Variables:
58# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/alfilesel/compile -j2 V=99"
59# End:
60

Archive Download this file



interactive