91e2359bab0b6cea2f3cbefaa2f6762b07527aed
[openwrt/svn-archive/archive.git] / XOrg / app / xmms / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xmms
12 PKG_VERSION:=1.2.10
13 PKG_RELEASE:=1
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.xmms.org/files/1.2.x/
16 #PKG_INSTALL_MAN:=$(PKG_INSTALL_DIR)/usr/man
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/xmms
21 SECTION:=xorg-app
22 CATEGORY:=Xorg
23 SUBMENU:=app
24 DEPENDS:=+xorg-server-essentials +alsa-lib +gtk-1.2.10 +libnotimpl
25 TITLE:=XMMS audio player
26 endef
27
28 define Package/xmms/description
29 Popular music player for X
30 endef
31
32 CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -lnotimpl" \
33 sys_lib_dlsearch_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
34 sys_lib_search_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
35 --disable-mikmod \
36 --disable-vorbis \
37 --disable-esd
38
39 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/gtk-1.2
40
41 define Build/Configure
42 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
43 if [ -x $(CONFIGURE_CMD) ]; then \
44 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
45 $(TARGET_CONFIGURE_OPTS) \
46 $(CONFIGURE_VARS) \
47 $(CONFIGURE_CMD) \
48 $(CONFIGURE_ARGS_XTRA) \
49 $(CONFIGURE_ARGS) ;\
50 fi \
51 )
52 $(call libtool_disable_rpath)
53 endef
54
55 define Build/Compile
56 $(MAKE) -C $(PKG_BUILD_DIR)
57 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) install
58 endef
59
60 define Package/xmms/install
61 $(call pkg_install_files,/usr/bin/xmms /usr/lib/libxmms.so /usr/lib/libxmms.so.1 /usr/lib/libxmms.so.1.3.1 /usr/share/xmms/wmxmms.xpm,$(PKG_INSTALL_DIR),$(1))
62 endef
63
64 $(eval $(call BuildPackage,xmms))