2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/xine
19 include $(INCLUDE_DIR)/package.mk
21 CONFIGURE_ARGS_XTRA+=--enable-static --disable-vcd --disable-imagemagick
23 define Package/xine-lib
28 DEPENDS:=+libX11 +alsa-lib +zlib +libfreetype
31 define Build/Configure
32 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
33 if [ -x $(CONFIGURE_CMD) ]; then \
34 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
37 $(CONFIGURE_ARGS_XTRA) \
44 $(MAKE) -C $(PKG_BUILD_DIR)/ all install DESTDIR=$(PKG_INSTALL_DIR)
47 define Build/InstallDev
49 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
50 $(SED) 's,-I$$$${prefix}/include,-I$(STAGING_DIR)/usr/include/,g' $(1)/usr/bin/xine-config
51 $(SED) 's,-L$$$${exec_prefix}/lib,-L$(STAGING_DIR)/usr/lib/,g' $(1)/usr/bin/xine-config
52 $(INSTALL_DIR) $(2)/bin
53 mv $(1)/usr/bin/xine-config $(2)/bin
56 define Package/xine-lib/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
61 $(eval $(call BuildPackage,xine-lib))