616f34643fed348c06f0e319f71ad11d46f5be8e
[feed/packages.git] / multimedia / grilo-plugins / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=grilo-plugins
9 PKG_VERSION:=0.3.16
10 PKG_RELEASE:=2
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNOME/grilo-plugins/0.3/
14 PKG_HASH:=fe6f4dbe586c6b8ba2406394e202f22d009d642a96eb3a54f32f6a21d084cdcb
15
16 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
17 PKG_LICENSE:=LGPL-2.1-or-later
18 PKG_LICENSE_FILES:=COPYING
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22 include $(INCLUDE_DIR)/meson.mk
23
24 define Package/grilo-plugins/Default
25 SECTION:=multimedia
26 CATEGORY:=Multimedia
27 TITLE:=grilo-plugins
28 URL:=https://wiki.gnome.org/Projects/Grilo
29 endef
30
31 define Package/grilo-plugins
32 $(call Package/grilo-plugins/Default)
33 MENU:=1
34 DEPENDS:=+grilo $(ICONV_DEPENDS) $(INTL_DEPENDS)
35 TITLE:=Plugins for the Grilo framework
36 endef
37
38 define Package/grilo/decription
39 Grilo is a framework that provides access to different sources of
40 multimedia content, using a pluggable system. This package contains
41 plugins to get information from a number of sources.
42 endef
43
44 MESON_ARGS += \
45 -Denable-bookmarks=no \
46 -Denable-chromaprint=$(if $(CONFIG_PACKAGE_grilo-plugins-chromaprint),yes,no) \
47 -Denable-dleyna=$(if $(CONFIG_PACKAGE_grilo-plugins-dleyna),yes,no) \
48 -Denable-dmap=$(if $(CONFIG_PACKAGE_grilo-plugins-dmap),yes,no) \
49 -Denable-filesystem=no \
50 -Denable-flickr=no \
51 -Denable-freebox=no \
52 -Denable-gravatar=$(if $(CONFIG_PACKAGE_grilo-plugins-gravatar),yes,no) \
53 -Dhelp=no \
54 -Denable-local-metadata=no \
55 -Denable-lua-factory=no \
56 -Denable-magnatune=$(if $(CONFIG_PACKAGE_grilo-plugins-magnatune),yes,no) \
57 -Denable-metadata-store=$(if $(CONFIG_PACKAGE_grilo-plugins-metadata-store),yes,no) \
58 -Denable-optical-media=no \
59 -Denable-podcasts=no \
60 -Denable-raitv=$(if $(CONFIG_PACKAGE_grilo-plugins-raitv),yes,no) \
61 -Denable-shoutcast=$(if $(CONFIG_PACKAGE_grilo-plugins-shoutcast),yes,no) \
62 -Denable-thetvdb=no \
63 -Denable-tmdb=$(if $(CONFIG_PACKAGE_grilo-plugins-tmdb),yes,no) \
64 -Denable-tracker=no \
65 -Denable-tracker3=no \
66 -Denable-youtube=no \
67 --wrap-mode=nodownload
68
69 define Package/grilo-plugins/install
70 $(INSTALL_DIR) $(1)/usr/lib/grilo-0.3
71 endef
72
73 define BuildPlugin
74 define Package/grilo-plugins-$(1)
75 $(call Package/grilo-plugins/Default)
76 DEPENDS:=grilo-plugins
77 ifneq ($(4),)
78 DEPENDS+= $(4)
79 endif
80 TITLE:=$(2) plugin
81 endef
82
83 define Package/grilo-plugins-$(1)/install
84 $(INSTALL_DIR) $$(1)/usr/lib/grilo-0.3
85 for p in $(3); do \
86 $(CP) $(PKG_INSTALL_DIR)/usr/lib/grilo-0.3/libgrl$$$$$$$${p}.so $$(1)/usr/lib/grilo-0.3; \
87 done
88 endef
89
90 $$(eval $$(call BuildPackage,grilo-plugins-$(1)))
91 endef
92
93 $(eval $(call BuildPackage,grilo-plugins))
94
95 $(eval $(call BuildPlugin,chromaprint,Chromaprint,chromaprint,+libgstreamer1,30))
96 $(eval $(call BuildPlugin,dleyna,DLNA sharing,dleyna,,30))
97 $(eval $(call BuildPlugin,dmap,DAAP and DPAP sharing,daap dpap,libdmapsharing,30))
98 $(eval $(call BuildPlugin,gravatar,Gravatar provider,gravatar,,30))
99 $(eval $(call BuildPlugin,magnatune,Magnatune sharing,magnatune,,30))
100 $(eval $(call BuildPlugin,metadata-store,Metadata Store,metadatastore,,30))
101 $(eval $(call BuildPlugin,raitv,Rai.tv sharing,raitv,,30))
102 $(eval $(call BuildPlugin,shoutcast,SHOUTcast sharing,shoutcast,,30))
103 $(eval $(call BuildPlugin,tmdb,TMDb,tmdb,+json-glib,30))