0d6a4ea4530443a019d3509b277198c28b81324a
[openwrt/svn-archive/archive.git] / XOrg / app / xine-ui / Makefile
1 #
2 # Copyright (C) 2006 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-ui
12 PKG_VERSION:=0.99.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.sourceforge.net/xine/
17 PKG_FIXUP = libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 EXTRA_LDLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -lnotimpl
22
23 define Package/xine-ui
24 SECTION:=xorg-app
25 CATEGORY:=Xorg
26 SUBMENU:=app
27 TITLE:=xine user interface
28 DEPENDS:=+xine-lib +libpng +curl +libiconv +libXv +libICE +libXxf86vm
29 endef
30
31 CONFIGURE_VARS+= \
32 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
33
34 CONFIGURE_ARGS+=--without-aalib \
35 --without-libcaca \
36 --disable-lirc \
37 --without-readline
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
41 if [ -x $(CONFIGURE_CMD) ]; then \
42 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
43 $(CONFIGURE_VARS) \
44 $(CONFIGURE_CMD) \
45 $(CONFIGURE_ARGS_XTRA) \
46 $(CONFIGURE_ARGS) ;\
47 fi \
48 )
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) X_LIBS="-L$(STAGING_DIR)/usr/lib -lnotimpl -lfreetype"
53 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
54 endef
55
56 define Package/xine-ui/install
57 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/share/xine \
61 $(PKG_INSTALL_DIR)/usr/share/pixmaps \
62 $(1)/usr/share/
63 endef
64
65 $(eval $(call BuildPackage,xine-ui))