2010-02-19 01:20:44 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-09-26 15:08:36 +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:=xine-lib
|
|
|
|
PKG_VERSION:=1.1.1
|
2010-10-28 12:43:19 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-09-26 15:08:36 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-06-13 17:01:55 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/xine
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_MD5SUM:=b1f42602c776bb93e3cbf127e220cbfd
|
|
|
|
|
2007-12-27 02:12:26 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-10-16 14:08:11 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2007-09-26 15:08:36 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-10-16 14:08:11 +00:00
|
|
|
CONFIGURE_ARGS+=\
|
|
|
|
--enable-static \
|
|
|
|
--disable-vcd \
|
|
|
|
--disable-imagemagick \
|
|
|
|
--disable-flac
|
|
|
|
|
|
|
|
XINE_LIB_FLAGS:=\
|
|
|
|
LIBFLAC_CFLAGS="" \
|
|
|
|
LIBFLAC_LIBS="" \
|
|
|
|
X_CFLAGS="" \
|
|
|
|
X_LIBS="" \
|
|
|
|
XINE_ACFLAGS="" \
|
|
|
|
CXXFLAGS="$(TARGET_CFLAGS)"
|
|
|
|
|
|
|
|
CONFIGURE_VARS+=$(XINE_LIB_FLAGS)
|
2007-09-26 15:08:36 +00:00
|
|
|
|
|
|
|
define Package/xine-lib
|
2010-03-28 06:27:01 +00:00
|
|
|
SECTION:=xorg-libraries
|
2007-09-26 15:08:36 +00:00
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=libraries
|
|
|
|
TITLE:=xine libraries
|
2010-10-28 12:43:19 +00:00
|
|
|
DEPENDS:=+libX11 +libXext +alsa-lib +zlib +libfreetype
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://www.xine-project.org/
|
2007-09-26 15:08:36 +00:00
|
|
|
endef
|
|
|
|
|
2010-10-16 14:08:11 +00:00
|
|
|
MAKE_FLAGS+=$(XINE_LIB_FLAGS)
|
2007-09-26 15:08:36 +00:00
|
|
|
|
|
|
|
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))
|