Root/gmu/Makefile

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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=gmu
11PKG_VERSION:=0.7.2
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://wejp.k.vu/files/
16PKG_MD5SUM:=dea481ab0f8f9f10b38aa21605dbb18d
17
18include $(INCLUDE_DIR)/package.mk
19
20define 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
28endef
29
30define 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.
34endef
35
36MAKE_VARS += TARGET=nanonote $(if $(CONFIG_BUILD_PATENTED),MORE_DECODERS="decoders/mpg123.so")
37TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
38TARGET_LDFLAGS+= \
39    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
40    -L$(STAGING_DIR)/usr/lib/SDL \
41
42define 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/
82endef
83
84$(eval $(call BuildPackage,gmu))
85

Archive Download this file



interactive