OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2011 Xiangfu Liu <xiangfu@sharism.cc> |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=libsdl-widgets |
| 11 | PKG_VERSION:=0.4 |
| 12 | PKG_SOURCE:=SDL-widgets-$(PKG_VERSION).tar.gz |
| 13 | PKG_SOURCE_URL:=http://members.chello.nl/w.boeke/SDL-widgets/ |
| 14 | PKG_BUILD_DIR:=$(BUILD_DIR)/SDL-widgets-$(PKG_VERSION) |
| 15 | |
| 16 | PKG_RELEASE:=1 |
| 17 | PKG_INSTALL:=1 |
| 18 | |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | |
| 21 | define Package/libsdl-widgets |
| 22 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
| 23 | SECTION:=libs |
| 24 | CATEGORY:=Libraries |
| 25 | TITLE:=SDL-widgets |
| 26 | URL:=http://members.chello.nl/w.boeke/SDL-widgets/index.html |
| 27 | DEPENDS:=+libsdl-gfx +libsdl-ttf +dejavu-fonts-ttf-DejaVuSans +dejavu-fonts-ttf-DejaVuSans-Bold |
| 28 | endef |
| 29 | |
| 30 | define Package/libsdl-widgets/description |
| 31 | SDL-widgets is a GUI toolkit on top of the SDL libraries. It is written in C++. It's not especially intended for games, more for normal applications. This implicates: a possibly complicated SDL_Surface hierarchy, where surfaces can be hidden or shown, with sliders, menus, text areas, etc. Threads are supported, they may communicate via messages. |
| 32 | endef |
| 33 | |
| 34 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL \ |
| 35 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
| 36 | |
| 37 | define Build/Install |
| 38 | endef |
| 39 | |
| 40 | define Build/InstallDev |
| 41 | mkdir -p $(1)/usr/include |
| 42 | mkdir -p $(1)/usr/lib |
| 43 | $(CP) $(PKG_BUILD_DIR)/sdl-widgets.h $(1)/usr/include/ |
| 44 | $(CP) $(PKG_BUILD_DIR)/sdl-widgets.o $(1)/usr/lib/ |
| 45 | endef |
| 46 | |
| 47 | define Package/libsdl-widgets/install |
| 48 | $(INSTALL_DIR) $(1)/usr/share/sdl-widgets/ |
| 49 | $(CP) $(PKG_BUILD_DIR)/testsw $(1)/usr/share/sdl-widgets/ |
| 50 | $(CP) $(PKG_BUILD_DIR)/hello/hello $(1)/usr/share/sdl-widgets/ |
| 51 | $(CP) $(PKG_BUILD_DIR)/make-waves/make-waves $(1)/usr/share/sdl-widgets/ |
| 52 | $(CP) $(PKG_BUILD_DIR)/bouncy-tune/bouncy-tune $(1)/usr/share/sdl-widgets/ |
| 53 | $(CP) $(PKG_BUILD_DIR)/bouncy-tune/rising.bcy $(1)/usr/share/sdl-widgets/ |
| 54 | endef |
| 55 | |
| 56 | $(eval $(call BuildPackage,libsdl-widgets)) |
| 57 |
