Root/gmu/Makefile

Source at commit b731d34ce1450e3c152ba4a7bddc8757dcd3fe36 created 7 years 4 months ago.
By kyak, gmu: update to 0.9.1
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.9.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://wejp.k.vu/files/
16PKG_MD5SUM:=b9beb8ae21828c637821fcc98b989603
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 \
28      +libncursesw
29endef
30
31define Package/gmu/description
32  A popular music player for various handheld devices.
33  It supports various file formats and comes with a
34  file browser and a playlist editor/viewer.
35endef
36
37MAKE_VARS += TARGET=nanonote $(if $(CONFIG_BUILD_PATENTED),MORE_DECODERS="decoders/mpg123.so")
38TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL -I$(STAGING_DIR)/usr/include/ncursesw
39TARGET_LDFLAGS+= \
40    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
41    -L$(STAGING_DIR)/usr/lib/SDL \
42
43define Package/gmu/install
44    $(INSTALL_DIR) \
45        $(1)/etc/gmu \
46        $(1)/usr/bin \
47        $(1)/usr/share/gmu \
48        $(1)/usr/share/gmu/decoders \
49        $(1)/usr/share/gmu/frontends \
50        $(1)/usr/share/gmu/themes/default-modern
51
52    $(INSTALL_BIN) \
53        $(PKG_BUILD_DIR)/{gmu.bin,gmuc} \
54        $(1)/usr/bin/
55
56    $(INSTALL_BIN) \
57        ./files/gmu \
58        $(1)/usr/bin/
59
60    $(INSTALL_DATA) \
61        $(PKG_BUILD_DIR)/*.conf \
62        $(1)/etc/gmu/
63
64    $(INSTALL_DATA) \
65        $(PKG_BUILD_DIR)/*.keymap \
66        $(1)/etc/gmu/
67
68    $(INSTALL_BIN) \
69        $(PKG_BUILD_DIR)/decoders/* \
70        $(1)/usr/share/gmu/decoders/
71
72    $(INSTALL_BIN) \
73        $(PKG_BUILD_DIR)/frontends/* \
74        $(1)/usr/share/gmu/frontends/
75
76    $(INSTALL_DATA) \
77        $(PKG_BUILD_DIR)/themes/default-modern/* \
78        $(1)/usr/share/gmu/themes/default-modern/
79
80    $(INSTALL_DATA) \
81        $(PKG_BUILD_DIR)/README.txt \
82        $(1)/usr/share/gmu/
83endef
84
85$(eval $(call BuildPackage,gmu))
86

Archive Download this file



interactive