OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
Source at commit 1b3135c created 12 years 5 months ago. By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries | |
---|---|
1 | # |
2 | # Copyright (c) 2010 wejp |
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:=gmu |
11 | PKG_VERSION:=0.7.2 |
12 | PKG_RELEASE:=3 |
13 | |
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
15 | PKG_SOURCE_URL:=http://wejp.k.vu/files/ |
16 | PKG_MD5SUM:=dea481ab0f8f9f10b38aa21605dbb18d |
17 | |
18 | include $(INCLUDE_DIR)/package.mk |
19 | |
20 | define Package/gmu |
21 | SECTION:=multimedia |
22 | CATEGORY:=Multimedia |
23 | TITLE:=Gmu Music Player |
24 | URL:=http://wejp.k.vu/projects/gmu/ |
25 | MENU:=1 |
26 | DEPENDS:=+libsdl +libsdl-image +libsdl-gfx +libmpcdec +libmikmod \ |
27 | +libvorbisidec +libspeex +libflac +libogg +BUILD_PATENTED:libmpg123 |
28 | endef |
29 | |
30 | define Package/gmu/description |
31 | A popular music player for various handheld devices. |
32 | It supports various file formats and comes with a |
33 | file browser and a playlist editor/viewer. |
34 | endef |
35 | |
36 | MAKE_VARS += TARGET=nanonote $(if $(CONFIG_BUILD_PATENTED),MORE_DECODERS="decoders/mpg123.so") |
37 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL |
38 | TARGET_LDFLAGS+= \ |
39 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ |
40 | -L$(STAGING_DIR)/usr/lib/SDL \ |
41 | |
42 | define Package/gmu/install |
43 | $(INSTALL_DIR) \ |
44 | $(1)/etc/gmu \ |
45 | $(1)/usr/bin \ |
46 | $(1)/usr/share/gmu \ |
47 | $(1)/usr/share/gmu/decoders \ |
48 | $(1)/usr/share/gmu/frontends \ |
49 | $(1)/usr/share/gmu/themes/default-modern |
50 | |
51 | $(INSTALL_BIN) \ |
52 | $(PKG_BUILD_DIR)/gmu \ |
53 | $(1)/usr/bin/gmu.bin |
54 | |
55 | $(INSTALL_BIN) \ |
56 | ./files/gmu \ |
57 | $(1)/usr/bin/ |
58 | |
59 | $(INSTALL_DATA) \ |
60 | $(PKG_BUILD_DIR)/*.conf \ |
61 | $(1)/etc/gmu/ |
62 | |
63 | $(INSTALL_DATA) \ |
64 | $(PKG_BUILD_DIR)/*.keymap \ |
65 | $(1)/etc/gmu/ |
66 | |
67 | $(INSTALL_BIN) \ |
68 | $(PKG_BUILD_DIR)/decoders/* \ |
69 | $(1)/usr/share/gmu/decoders/ |
70 | |
71 | $(INSTALL_BIN) \ |
72 | $(PKG_BUILD_DIR)/frontends/* \ |
73 | $(1)/usr/share/gmu/frontends/ |
74 | |
75 | $(INSTALL_DATA) \ |
76 | $(PKG_BUILD_DIR)/themes/default-modern/* \ |
77 | $(1)/usr/share/gmu/themes/default-modern/ |
78 | |
79 | $(INSTALL_DATA) \ |
80 | $(PKG_BUILD_DIR)/README.txt \ |
81 | $(1)/usr/share/gmu/ |
82 | endef |
83 | |
84 | $(eval $(call BuildPackage,gmu)) |
85 |