[packages] massive change: replace occurences of -I$(STAGING_DIR)/{include,usr/includ...
[openwrt/svn-archive/archive.git] / Xorg / app / xine-ui / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=2
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
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 EXTRA_LDFLAGS:=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
35
36 CONFIGURE_ARGS+=--without-aalib \
37 --without-libcaca \
38 --disable-lirc \
39 --without-readline
40
41 define Build/Configure
42 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
43 if [ -x $(CONFIGURE_CMD) ]; then \
44 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
45 $(CONFIGURE_VARS) \
46 $(CONFIGURE_CMD) \
47 $(CONFIGURE_ARGS_XTRA) \
48 $(CONFIGURE_ARGS) ;\
49 fi \
50 )
51 endef
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) X_LIBS="$(TARGET_LDFLAGS) -lfreetype"
55 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
56 endef
57
58 define Package/xine-ui/install
59 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
61 $(CP) \
62 $(PKG_INSTALL_DIR)/usr/share/xine \
63 $(PKG_INSTALL_DIR)/usr/share/pixmaps \
64 $(1)/usr/share/
65 endef
66
67 $(eval $(call BuildPackage,xine-ui))