source: packages/Xorg/app/xine-ui/Makefile @ 20398

Last change on this file since 20398 was 20398, checked in by swalker, 7 years ago

[packages] add missing & update current urls

File size: 1.6 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=xine-ui
12PKG_VERSION:=0.99.4
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@SF/xine
17PKG_MD5SUM:=90ea1f76747e9788a30a73e7f4a76cf6
18
19PKG_FIXUP:=libtool
20
21include $(INCLUDE_DIR)/package.mk
22
23EXTRA_LDLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
24
25define Package/xine-ui
26  SECTION:=xorg-app
27  CATEGORY:=Xorg
28  SUBMENU:=app
29  TITLE:=xine user interface
30  DEPENDS:=+xine-lib +libpng +curl +libiconv +libXv +libICE +libXxf86vm
31  URL:=http://www.xine-project.org/
32endef
33
34CONFIGURE_VARS+= \
35        PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
36
37EXTRA_LDFLAGS:=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
38
39CONFIGURE_ARGS+=--without-aalib \
40                        --without-libcaca \
41                        --disable-lirc \
42                        --without-readline
43
44define Build/Configure
45        (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
46                if [ -x $(CONFIGURE_CMD) ]; then \
47                        $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
48                        $(CONFIGURE_VARS) \
49                        $(CONFIGURE_CMD) \
50                        $(CONFIGURE_ARGS_XTRA) \
51                        $(CONFIGURE_ARGS) ;\
52                fi \
53        )
54endef
55
56define Build/Compile
57        $(MAKE) -C $(PKG_BUILD_DIR) X_LIBS="$(TARGET_LDFLAGS) -lfreetype"
58        $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
59endef
60
61define Package/xine-ui/install
62        $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share
63        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
64        $(CP) \
65                $(PKG_INSTALL_DIR)/usr/share/xine \
66                $(PKG_INSTALL_DIR)/usr/share/pixmaps \
67                $(1)/usr/share/
68endef
69
70$(eval $(call BuildPackage,xine-ui))
Note: See TracBrowser for help on using the repository browser.