4fab78435fecb07c8f91b70af13a0017e1782225
[feed/packages.git] / multimedia / grilo / 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
9 PKG_VERSION:=0.3.13
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNOME/grilo/0.3/
14 PKG_HASH:=d14837f22341943ed8a189d9f0827a17016b802d18d0ed080e1413de0fdc927b
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 PKG_INSTALL:=1
21 PKG_BUILD_DEPENDS:=vala/host
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/nls.mk
25 include $(INCLUDE_DIR)/meson.mk
26
27 define Package/grilo
28 SECTION:=multimedia
29 CATEGORY:=Multimedia
30 TITLE:=grilo
31 URL:=https://wiki.gnome.org/Projects/Grilo
32 DEPENDS:=+glib2 +libsoup +libxml2
33 endef
34
35 define Package/grilo/decription
36 Grilo is a framework that provides access to different sources of
37 multimedia content, using a pluggable system.
38 endef
39
40 MESON_ARGS += \
41 -Denable-grl-net=true \
42 -Denable-grl-pls=false \
43 -Denable-gtk-doc=false \
44 -Denable-introspection=false \
45 -Denable-test-ui=false \
46 -Denable-vala=false
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include/
50 $(CP) \
51 $(PKG_INSTALL_DIR)/usr/include/grilo-0.3/ \
52 $(1)/usr/include/
53 $(INSTALL_DIR) $(1)/usr/lib/
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
56 $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
58 $(INSTALL_DATA) \
59 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
60 $(1)/usr/lib/pkgconfig/
61 $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-`$(STAGING_DIR_HOSTPKG)/bin/valac --api-version`/vapi/
62 # Note: this are compiled elsewhere because grilo refuses to
63 # generate VAPI files unless gobject-introspection exists;
64 # OpenWrt does not yet have a gobject-introspection package.
65 $(INSTALL_DATA) \
66 ./files/*.vapi \
67 $(STAGING_DIR_HOSTPKG)/share/vala-`$(STAGING_DIR_HOSTPKG)/bin/valac --api-version`/vapi
68 endef
69
70 define Package/grilo/install
71 $(INSTALL_DIR) $(1)/usr/lib/
72 $(CP) \
73 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
74 $(1)/usr/lib/
75 endef
76
77 $(eval $(call BuildPackage,grilo))