2007-09-26 15:08:36 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# 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:=xine-lib
|
|
|
|
PKG_VERSION:=1.1.1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://downloads.sourceforge.net/xine/
|
2007-12-27 02:12:26 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2007-09-26 15:08:36 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-05-04 09:20:51 +00:00
|
|
|
CONFIGURE_ARGS_XTRA+=--enable-static --disable-vcd --disable-imagemagick
|
2007-09-26 15:08:36 +00:00
|
|
|
|
|
|
|
define Package/xine-lib
|
|
|
|
SECTION:=xorg-lib
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=libraries
|
|
|
|
TITLE:=xine libraries
|
2008-11-16 19:31:42 +00:00
|
|
|
DEPENDS:=+libX11 +alsa-lib
|
2007-09-26 15:08:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
|
|
|
|
if [ -x $(CONFIGURE_CMD) ]; then \
|
|
|
|
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
|
|
|
|
$(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)/ all install DESTDIR=$(PKG_INSTALL_DIR)
|
2007-09-26 15:08:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-12-25 02:43:09 +00:00
|
|
|
$(INSTALL_DIR) $(1)
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
2007-12-27 02:12:26 +00:00
|
|
|
$(SED) 's,-I$$$${prefix}/include,-I$(STAGING_DIR)/usr/include/,g' $(1)/usr/bin/xine-config
|
|
|
|
$(SED) 's,-L$$$${exec_prefix}/lib,-L$(STAGING_DIR)/usr/lib/,g' $(1)/usr/bin/xine-config
|
2007-12-23 01:27:30 +00:00
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
|
|
mv $(1)/usr/bin/xine-config $(2)/bin
|
2007-09-26 15:08:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xine-lib/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,xine-lib))
|