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