2008-06-23 08:29:13 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2008 OpenWrt.org
|
2007-10-07 01:04:53 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# blogic@openwrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xmms
|
|
|
|
PKG_VERSION:=1.2.10
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://www.xmms.org/files/1.2.x/
|
2007-10-07 12:56:56 +00:00
|
|
|
#PKG_INSTALL_MAN:=$(PKG_INSTALL_DIR)/usr/man
|
2007-12-27 02:12:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
2007-10-07 01:04:53 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/xmms
|
|
|
|
SECTION:=xorg-app
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=app
|
2008-06-23 08:29:13 +00:00
|
|
|
DEPENDS:=+xorg-server-essentials +alsa-lib +gtk1 +libnotimpl
|
2007-10-07 01:04:53 +00:00
|
|
|
TITLE:=XMMS audio player
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xmms/description
|
|
|
|
Popular music player for X
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -lnotimpl" \
|
|
|
|
sys_lib_dlsearch_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
|
|
|
|
sys_lib_search_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
|
|
|
|
--disable-mikmod \
|
2007-12-16 01:50:06 +00:00
|
|
|
--disable-vorbis \
|
|
|
|
--disable-esd
|
|
|
|
|
2007-12-27 02:12:26 +00:00
|
|
|
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
|
|
|
|
TARGET_LDFLAGS += -lgthread
|
2007-10-07 01:04:53 +00:00
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
|
|
|
|
if [ -x $(CONFIGURE_CMD) ]; then \
|
|
|
|
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(CONFIGURE_VARS) \
|
|
|
|
$(CONFIGURE_CMD) \
|
|
|
|
$(CONFIGURE_ARGS_XTRA) \
|
|
|
|
$(CONFIGURE_ARGS) ;\
|
|
|
|
fi \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-12-27 02:12:26 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR=$(PKG_INSTALL_DIR) \
|
|
|
|
LIBTOOL="libtool --tag=CC" \
|
2008-06-23 08:29:13 +00:00
|
|
|
all install
|
2007-10-07 01:04:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xmms/install
|
2007-12-17 22:28:41 +00:00
|
|
|
$(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))
|
|
|
|
$(call pkg_install_bin,/usr/bin/xmms,$(PKG_INSTALL_DIR),$(1))
|
2007-10-07 01:04:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,xmms))
|