Root/libsdl-widgets/Makefile

Source at commit 1b3135c created 7 years 8 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libsdl-widgets
11PKG_VERSION:=0.4
12PKG_SOURCE:=SDL-widgets-$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=http://members.chello.nl/w.boeke/SDL-widgets/
14PKG_BUILD_DIR:=$(BUILD_DIR)/SDL-widgets-$(PKG_VERSION)
15
16PKG_RELEASE:=1
17PKG_INSTALL:=1
18
19include $(INCLUDE_DIR)/package.mk
20
21define 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
28endef
29
30define Package/libsdl-widgets/description
31SDL-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.
32endef
33
34TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL \
35    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
36
37define Build/Install
38endef
39
40define 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/
45endef
46
47define 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/
54endef
55
56$(eval $(call BuildPackage,libsdl-widgets))
57

Archive Download this file



interactive