Update xfce packages to 4.6.0
[openwrt/svn-archive/feeds.git] / xfce / app / xfmedia / Makefile
1 #
2 # Copyright (C) 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xfmedia
12 PKG_VERSION:=0.9.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://spuriousinterrupt.org/files/xfmedia/
17 PKG_MD5SUM:=6eb8bd1f67201f829e0f45e733c02bd5
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24
25 TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include/
26
27 TARGET_LDFLAGS+= \
28 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
29 -Wl,-rpath=/usr/lib \
30 -L$(STAGING_DIR)/usr/lib/libintl/lib
31
32 define Package/xfmedia
33 SECTION:=xorg-app
34 CATEGORY:=Xorg
35 SUBMENU:=app
36 TITLE:=xfmedia
37 DEPENDS:=+libxfcegui4 +xine-lib +dbus +taglib
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 )
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include}
47 $(INSTALL_DATA) \
48 $(PKG_INSTALL_DIR)/usr/include/* \
49 $(1)/usr/include/
50 $(INSTALL_DATA) \
51 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \
52 $(1)/usr/lib/
53 $(INSTALL_DATA) \
54 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
55 $(1)/usr/lib/pkgconfig/
56 endef
57
58 define Package/xfmedia/install
59 $(INSTALL_DIR) $(1)/usr/lib/
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
62 $(1)/usr/lib/
63
64 $(INSTALL_DIR) $(1)/usr/bin/
65 $(INSTALL_BIN) \
66 $(PKG_INSTALL_DIR)/usr/bin/* \
67 $(1)/usr/bin/
68
69 $(INSTALL_DIR) $(1)/usr/share/icons/hicolor/48x48/apps
70 $(INSTALL_DATA) \
71 $(PKG_INSTALL_DIR)/usr/share/icons/hicolor/48x48/apps/* \
72 $(1)/usr/share/icons/hicolor/48x48/apps/
73
74 $(INSTALL_DIR) $(1)/usr/share/applications
75 $(INSTALL_DATA) \
76 $(PKG_INSTALL_DIR)/usr/share/applications/* \
77 $(1)/usr/share/applications
78 endef
79
80 $(eval $(call BuildPackage,xfmedia))