[packages] Update dependencies on gtk to match
[openwrt/svn-archive/archive.git] / XOrg / app / xmms / Makefile
1 #
2 # Copyright (C) 2007-2008 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 PKG_FIXUP = libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/xmms
22 SECTION:=xorg-app
23 CATEGORY:=Xorg
24 SUBMENU:=app
25 DEPENDS:=+xorg-server-essentials +alsa-lib +gtk1 +libnotimpl
26 TITLE:=XMMS audio player
27 endef
28
29 define Package/xmms/description
30 Popular music player for X
31 endef
32
33 CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -lnotimpl" \
34 sys_lib_dlsearch_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
35 sys_lib_search_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
36 --disable-mikmod \
37 --disable-vorbis \
38 --disable-esd
39
40 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/gtk-1.2 -I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include
41 TARGET_LDFLAGS += -lgthread
42
43 define Build/Configure
44 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
45 if [ -x $(CONFIGURE_CMD) ]; then \
46 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
47 $(TARGET_CONFIGURE_OPTS) \
48 $(CONFIGURE_VARS) \
49 $(CONFIGURE_CMD) \
50 $(CONFIGURE_ARGS_XTRA) \
51 $(CONFIGURE_ARGS) ;\
52 fi \
53 )
54 endef
55
56 define Build/Compile
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR=$(PKG_INSTALL_DIR) \
59 LIBTOOL="libtool --tag=CC" \
60 all install
61 endef
62
63 define Package/xmms/install
64 $(call pkg_install_files,/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))
65 $(call pkg_install_bin,/usr/bin/xmms,$(PKG_INSTALL_DIR),$(1))
66 endef
67
68 $(eval $(call BuildPackage,xmms))