Merge pull request #7770 from jqqqqqqqqqq/master
[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.6
10 PKG_RELEASE:=4
11
12 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
13
14 PKG_LICENSE:=LGPLv2.1
15 PKG_LICENSE_FILES:=COPYING
16
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
18 PKG_SOURCE_URL:=@GNOME/grilo/0.3/
19 PKG_HASH:=1e65ca82dd58020451417fde79310d4b940adc3f63ab59997419c52ed3bc9c91
20
21 PKG_BUILD_PARALLEL:=1
22 PKG_INSTALL:=1
23 PKG_BUILD_DEPENDS:=vala/host
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/nls.mk
27
28 define Package/grilo
29 SECTION:=multimedia
30 CATEGORY:=Multimedia
31 TITLE:=grilo
32 URL:=https://wiki.gnome.org/Projects/Grilo
33 DEPENDS:=+glib2 +libsoup +libxml2
34 endef
35
36 define Package/grilo/decription
37 Grilo is a framework that provides access to different sources of
38 multimedia content, using a pluggable system.
39 endef
40
41 CONFIGURE_ARGS += \
42 --disable-compile-warnings \
43 --disable-debug \
44 --disable-gtk-doc-html \
45 --disable-introspection \
46 --disable-test-ui \
47 --disable-vala
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/
51 $(CP) \
52 $(PKG_INSTALL_DIR)/usr/include/grilo-0.3/ \
53 $(1)/usr/include/
54 $(INSTALL_DIR) $(1)/usr/lib/
55 $(CP) \
56 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
57 $(1)/usr/lib/
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
59 $(INSTALL_DATA) \
60 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
61 $(1)/usr/lib/pkgconfig/
62 $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-`$(STAGING_DIR_HOSTPKG)/bin/valac --api-version`/vapi/
63 # Note: this are compiled elsewhere because grilo refuses to
64 # generate VAPI files unless gobject-introspection exists;
65 # OpenWrt does not yet have a gobject-introspection package.
66 $(INSTALL_DATA) \
67 ./files/*.vapi \
68 $(STAGING_DIR_HOSTPKG)/share/vala-`$(STAGING_DIR_HOSTPKG)/bin/valac --api-version`/vapi
69 endef
70
71 define Package/grilo/install
72 $(INSTALL_DIR) $(1)/usr/lib/
73 $(CP) \
74 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
75 $(1)/usr/lib/
76 endef
77
78 $(eval $(call BuildPackage,grilo))