1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2025-04-21 12:27:27 +03:00

liballegro: fix fbdev driver, also package examples

This commit is contained in:
David Kühling
2011-05-31 17:14:29 +02:00
parent e7f7d81bc0
commit 2e457ea3d0
3 changed files with 94 additions and 3 deletions

View File

@@ -5,6 +5,17 @@
#
# OpenWRT package for the Allegro game and multimedia library
# todo:
#
# * GFX_SAFE has a problem switching to 32bpp mode (maybe it falsely
# attempts switching to 24bpp mode?), so it fails. doing a
# set_color_depth(32) and GFX_AUTODETECT works.
#
# * both shooter and skater try to load a demo.dat from /usr/bin. hack them to
# use usr/share subdirs?
#
# * similar problem with setup?
#
include $(TOPDIR)/rules.mk
PKG_NAME:=liballegro
@@ -84,6 +95,17 @@ $(call Package/liballegro/Default/description)
This package contains the Allegro setup program
endef
define Package/liballegro-examples
$(call Package/liballegro/Default)
TITLE+= (examples)
DEPENDS:=+liballegro
endef
define Package/liballegro-examples/description
$(call Package/liballegro/Default/description)
This package contains the Allegro example programs named "ex*"
endef
define Package/liballegro-utils
$(call Package/liballegro/Default)
TITLE+= (utils)
@@ -231,6 +253,13 @@ define Package/liballegro-setup/install
$(CP) $(PKG_BUILD_DIR)/setup/setup.dat $(1)/usr/share/allegro/
endef
define Package/liballegro-examples/install
$(INSTALL_DIR) $(1)/usr/bin/allegro
$(CP) $(PKG_BUILD_DIR)/examples/* $(1)/usr/bin/allegro/
rm $(1)/usr/bin/allegro/{*.c,*.h,*.txt,*.cmake}
rm -r $(1)/usr/bin/allegro/CMakeFiles
endef
define Package/liballegro-utils/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin $(1)/usr
@@ -242,6 +271,7 @@ $(eval $(call BuildPackage,liballegro))
#$(eval $(call BuildPackage,liballegro-data))
$(eval $(call BuildPackage,liballegro-demo))
$(eval $(call BuildPackage,liballegro-setup))
$(eval $(call BuildPackage,liballegro-examples))
$(eval $(call BuildPackage,liballegro-utils))