c8727745363a7a0f59e4a0e85866fed02ce185a9
[openwrt/svn-archive/archive.git] / Xorg / lib / xine-lib / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=xine-lib
12 PKG_VERSION:=1.1.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/xine
17 PKG_MD5SUM:=b1f42602c776bb93e3cbf127e220cbfd
18
19 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 CONFIGURE_ARGS_XTRA+=--enable-static --disable-vcd --disable-imagemagick
24
25 define Package/xine-lib
26 SECTION:=xorg-libraries
27 CATEGORY:=Xorg
28 SUBMENU:=libraries
29 TITLE:=xine libraries
30 DEPENDS:=+libX11 +alsa-lib +zlib +libfreetype
31 URL:=http://www.xine-project.org/
32 endef
33
34 define Build/Configure
35 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
36 if [ -x $(CONFIGURE_CMD) ]; then \
37 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
38 $(CONFIGURE_VARS) \
39 $(CONFIGURE_CMD) \
40 $(CONFIGURE_ARGS_XTRA) \
41 $(CONFIGURE_ARGS) ;\
42 fi \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR)/ all install DESTDIR=$(PKG_INSTALL_DIR)
48 endef
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)
52 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
53 $(SED) 's,-I$$$${prefix}/include,-I$(STAGING_DIR)/usr/include/,g' $(1)/usr/bin/xine-config
54 $(SED) 's,-L$$$${exec_prefix}/lib,-L$(STAGING_DIR)/usr/lib/,g' $(1)/usr/bin/xine-config
55 $(INSTALL_DIR) $(2)/bin
56 mv $(1)/usr/bin/xine-config $(2)/bin
57 endef
58
59 define Package/xine-lib/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,xine-lib))